Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve Docusaurus build #1351

Merged
merged 6 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: docusaurus build
on:
pull_request:
paths:
- "docs/**"
push:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'latest'

- name: Install Docusaurus Dependencies
run: |
cd misc/docusaurus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, we can set the working_directory

yarn install

- name: Build Docusaurus Docs
run: |
cd misc/docusaurus
yarn build
zivkovicmilos marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions docs/explanation/gnovm.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ This enables non-web3 developers to contribute without requiring an understandin

## Getting started

Install [`gno`](./cmd/gno) and refer to the [`examples`](../examples) folder to start developing contracts.
Install [`gno`](../getting-started//local-setup.md) and refer to the [`examples`](https://github.com/gnolang/gno/tree/master/examples) folder to start developing contracts.
zivkovicmilos marked this conversation as resolved.
Show resolved Hide resolved

Check the [Makefile](./Makefile) to enhance GnoVM, Gnolang, and stdlibs.
Check the [Makefile](https://github.com/gnolang/gno/blob/master/gnovm/Makefile) to enhance GnoVM, Gnolang, and stdlibs.
4 changes: 2 additions & 2 deletions docs/how-to-guides/creating-grc20.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Our _GRC20_ Realm will have the following functionality:

## Prerequisites

We will proceed using the typical directory structure for a Realm found within the [simple-contract guide](simple-contract.md). It is also worthwhile to consult the [GRC20 interface](../../examples/gno.land/p/demo/grc/grc20/igrc20.gno) which we will be importing and utilizing within this guide.
We will proceed using the typical directory structure for a Realm found within the [simple-contract guide](simple-contract.md). It is also worthwhile to consult the [GRC20 interface](https://github.com/gnolang/gno/blob/master/examples/gno.land/p/demo/grc/grc20/igrc20.gno) which we will be importing and utilizing within this guide.

## 1. Importing token package
For this realm, we'll want to import the `grc20` package as this will include the main functionality of our token factory realm.
Expand Down Expand Up @@ -54,7 +54,7 @@ In this code preview, we have:

## 2. Adding token functionality

The following section will be about introducing Public functions to expose functionality imported from the [grc20 package](../../examples/gno.land/p/demo/grc/grc20).
The following section will be about introducing Public functions to expose functionality imported from the [grc20 package](https://github.com/gnolang/gno/tree/master/examples/gno.land/p/demo/grc/grc20).

[embedmd]:# (../assets/how-to-guides/creating-grc20/mytoken-2.gno go)
```go
Expand Down
4 changes: 2 additions & 2 deletions docs/how-to-guides/creating-grc721.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Our _GRC721_ Realm will have the following functionality:

We will proceed using the typical directory structure for a Realm found within
the [simple-contract guide](simple-contract.md). It is also worthwhile to consult
the [GRC721 interface](../../examples/gno.land/p/demo/grc/grc721/igrc721.gno) which we will be borrowing from within
the [GRC721 interface](https://github.com/gnolang/gno/blob/master/examples/gno.land/p/demo/grc/grc721/igrc721.gno) which we will be borrowing from within
this guide.

## 1. Importing token package
Expand Down Expand Up @@ -59,7 +59,7 @@ In this code preview, we have:
## 2. Adding token functionality

The following section will be about introducing Public functions to expose functionality imported from
the [grc721 package](../../examples/gno.land/p/demo/grc/grc721).
the [grc721 package](https://github.com/gnolang/gno/tree/master/examples/gno.land/p/demo/grc/grc721).

[embedmd]:# (../assets/how-to-guides/creating-grc721/mynonfungibletoken-2.gno go)
```go
Expand Down
Loading
Loading