This website is built using Docusaurus 2, a modern static website generator.
This documentation assumes that you run all scripts within the docs folder.
cd docs
npm install
npm start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
https://docusaurus.io/docs/versioning
You can use the version script to create a new documentation version based on the latest content in the ./preview
directory. That specific set of documentation will then be preserved and accessible even as the documentation in the docs directory changes moving forward.
./preview
directory is ready to be frozen as a version. A version always should be based from master.npm run docusaurus docs:version v1.1.0
When tagging a new version, the document versioning mechanism will:
./preview
folder contents into a new versioned_docs/version-<version>/
folder.versioned_sidebars/version-<version>-sidebars.json
.versions.json
.To have syntax highlighting within the codeblocks you have to use one of the prism supported languages:
https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js
https://docusaurus.io/docs/deployment#deploying-to-netlify