This documentations is the English version of documents of NKN. You can read it at NKN Docs.
fork nknorg/documentations to your own github account.
$ git clone https://github.com/<YOUR NAME>/documentations.git$ cd website
$ yarn install$ cd website
$ yarn run start$ git add --all
$ git commit -s
$ git push origin mastercreate a pull request to remote repository.
Your project file structure should look something like this
documentations/
docs/
home.md
get-start.md
jsonrpc-api-reference.md
website/
core/
node_modules/
pages/
static/
css/
img/
package.json
sidebar.json
siteConfig.js
Edit docs by navigating to docs/ and editing the corresponding document:
docs/jsonrpc-api-reference.md
---id: jsonrpc-api-referencetitle: JsonRPC API Reference---- Create the doc as a new markdown file in
/docs, exampledocs/jsonrpc-api-reference.md:
---id: jsonrpc-api-referencetitle: JsonRPC API Reference---- Refer to that doc's ID in an existing sidebar in
website/sidebar.json:
// Add newly-created-doc to the API Reference category of docs{"docs": {"API Reference": ["quick-start","jsonrpc-api-reference"// new doc here],
...
},
...
}- Add links to docs, custom pages or external links by editing the headerLinks field of
website/siteConfig.js:
website/siteConfig.js
{headerLinks: [
...
/* you can add docs */{doc: 'my-examples',label: 'Examples'},/* you can add custom pages */{page: 'help',label: 'Help'},/* you can add external links */{href: 'https://nkn.org',label: 'NKN'},
...
],
...
}