Nervos CKB is a public permissionless blockchain and the layer 1 of Nervos.
CKB generates trust and extends this trust to upper layers, making Nervos a trust network. It's also the value store of the Nervos network, providing public, secure and censorship-resistant custody services for assets, identities and other common knowledge created in the network. We will also vigorously develop the developer community and aim to offer blockchain developers exciting new capabilities.
If you run into an issue on our documentation website you can contact us on Nervos talk or Discord.
- production branch: master
- latest developing branch: develop
- Live Preview: https://nervos-ckb-docs-git-develop-cryptape.vercel.app/
website
: The doc site is built with docusaurus and under thewebsite
folder.examples
: Theexamples
folder contains full tutorial codes you can clone.
git clone https://github.com/nervosnetwork/docs.nervos.org.git
cd docs.nervos.org
cd website
Install yarn.
In website
folder:
yarn install
In website
folder:
yarn start
[INFO] Starting the development server...
[SUCCESS] Docusaurus website is running at: http://localhost:3000/
You can check out the website at http://localhost:3000/ in your browser now.
In website
folder:
yarn build
The key-terms.json
file is generated from the glossary in the docs/tech-explanation/glossary.md
file. This file is used by the Tooltip component to provide definitions and links to key terms throughout the documentation.
Once you have updates in glossary.md
, please remember to run the following command in the website
folder to re-generate the key-terms.json
file:
yarn gen-terms
After running the command, you can navigate to src/components/Tooltip
to verify that the key-terms.json
file has been generated successfully.
Use ./scripts/check-urls.sh
to scan for dead links.
How to Use
- Install lychee.
- Build the website:
cd website && yarn build
. - Run the script:
./scripts/check-urls.sh
.
The script prints any links that fail the check.
Notes
- A cache file
./website/.lycheecache
will be created. For local development, the cache TTL is 30 days; you can changemax_cache_age
inwebsite/.lychee.toml
. - Because the docs contain many GitHub links, requests are routed via
api.github.com
. Providing a GitHub token increases the rate limit. - For this reason, the check is not integrated into CI at the moment.