This is the Nervos CKB documentation website.
It is built with docusaurus.
git clone https://github.com/nervosnetwork/docs.git && \
cd docs && \
cd websiteInstall yarn.
In website folder:
yarn installIn website folder:
yarn startThen you should be able to preview the website at http://localhost:3000/ in your browser.
In website folder:
yarn buildThe generated static files will be in website/build.
Just serve the generated static files in website/build.
All the documents go into the docs folder. All the images should be in the docs/assets folder.
To add a document:
- add the the document to
docs - add header to the document (id and title is required)
- add the path of the folder to the
website/sidebars.jsonfile