Qubic's Docs are built using Docusaurus 3 with pnpm
.
To set up the Qubic Docs site locally:
git clone git@github.com:qubic/docs.git
pnpm install
pnpm start
to test sitepnpm build
Note: After cloning the repo to your local machine, all the local development commands are run from within this
docs.qubic.org
directory.
Anyone who wants to update the documentation can open a pull request for the Qubic team to review. Here's a guide on how to do that:
Fork the Repository:
Clone Your Forked Repository:
git clone git@github.com:your-username/docs.git
cd docs
Update or Add .md Files:
cd docs/your-section
)Note: The 'overview' directory mentioned in the sidebar example is just that - an example. Your changes may be in a different section of the documentation.
Update the Sidebars (if necessary):
sidebars.js
const sidebars = {
// ... other sidebars ...
exampleSidebar: [
{
type: 'category',
label: 'Your Section',
items: [
'your-section/file1',
'your-section/file2',
// ... other files ...
],
},
],
// ... other sidebars ...
};
Create a Pull Request:
git add .
git commit -m "Update documentation for [your section]"
git checkout -b update-docs-[your-section]
git push origin update-docs-[your-section]
Disclaimer: All pull requests will be reviewed by the Qubic team before being merged. We appreciate your contributions to improving our documentation!
For deployment a push to github is sufficient. A build is automatically initiated. If the build succeeds, the project is deployed to the qubic.org server.