The Golioth documentation website is built using Docusaurus 2.
Click the Gitpod badge to open a contributor workspace instance
npm install
npm start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
npm run build:dev (or :prod)
This command generates static content into the build
directory and can be served using any static contents hosting service.
The device catalog is automatically generated. To update it, run this command from the project root directory:
npm run build-device-catalog
Quickstart guides can be added in the docs/hardware/6-catalog/quickstart
directory and enabled by adding a node in the scripts/device-catalog/support.json
file.
Documentation on automatic generation and adding customized pages for supported boards can be found in the device catalog README.
Deploy to Golioth Docs Dev site
npm run fb-deploy-dev
Deploy to Golioth Docs Prod Site
npm run fb-deploy-prod
Maintainers of the Golioth docs merging into the main
branch will also automatically deploy to production (based on the CI system setup)
In Ubuntu, the default npm install will not be up to date with the required npm packages. Consider using nvm to choose an LTS solution that will work better with Docusaurus V2.