Qubic's Docs are built using Docusaurus 3 with pnpm
.
To set up the Qubic Docs site locally:
- copy the repo using
git clone [email protected]:qubic/docs.git
- install dependencies using
pnpm install
- make your changes and updates as needed
- run the local development server using
pnpm start
to test site - build locally via
pnpm 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:
- Navigate to https://github.com/qubic/docs
- Click the "Fork" button at the top right
-
Clone Your Forked Repository:
git clone [email protected]:your-username/docs.git cd docs
-
Update or Add .md Files:
- Navigate to the appropriate directory (e.g.,
cd docs/your-section
) - Replace or add .md files as needed
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.
- Navigate to the appropriate directory (e.g.,
-
Update the Sidebars (if necessary):
- Open
sidebars.js
- Update the relevant sidebar section to include new .md files. For example:
const sidebars = { // ... other sidebars ... exampleSidebar: [ { type: 'category', label: 'Your Section', items: [ 'your-section/file1', 'your-section/file2', // ... other files ... ], }, ], // ... other sidebars ... };
- Open
-
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]
- Go to your repository on GitHub
- Click on "Compare & pull request"
- Add a title and description
- Click "Create pull request"
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.