First off, thanks for taking the time to contribute. 👍
This guide uses Docusaurus 2
for building the guide itself, and pre-commit
for various formatting/cleanup tasks - running content through prettier, formatting Python codeblocks and samples, etc.
To get started with contributing to this guide, follow these steps:
cd guide
as this is our docusaurus directory.- Install dependencies:
npm install
.- Note: Node version 16.14 or higher is required for Docusaurus 2.
- Build using
Docusaurus
.- To build the documentation once, use
npm run build
and openbuild/index.html
in your browser - Alternatively, if you want to see your changes to the content in real-time, use
npm run start
to start an autoreloading server on localhost.
- To build the documentation once, use
- Run
pre-commit
.- If you want to install the pre-commit hooks to automatically run before every commit, use
pre-commit install
- Otherwise, use
pre-commit run --all-files
to run all checks once.
- If you want to install the pre-commit hooks to automatically run before every commit, use
Note
Before contributing new content, please consider checking if there is already an issue about the topic. If not, it would be advisable to create one first, in case you start working on something that may not end up being accepted.