Docusaurus and Deployment
Tl;dr
- Create a new markdown file with the following header in the appropriate /docs/* directory.
---id: docusaurustitle: Docusaurussidebar_label: Docusaurus---
Add your new page to its appropriate location in
sidebar.js
Submit PR
Editing the Documentation
This documentation was built using Docusaurus. Complete documentation on how to use the documentation is there.
tip
Some examples of how to style docusaurus, use markdown, and use MDX are in the Using Docusaurus folder!
If you would like to edit the documentation or report an error, please open an issue on GitHub and submit a pull request! We would appreciate the fixing of any errors we may have made.
As for running the documentation, you may use npm run docs:start
to start running the docs on localhost:3000.
Deploying the Documentation
Our documentation is hosted in multiple places. One of them is on ZEIT Now, and the other one is on Netlify.
ZEIT Now
- From the directory that the documentation is hosted in, type
now --prod
to deploy the documentation to production. Currently, this deployment is hosted at https://vaken-docs.now.sh/. - Alternatively, running
npm run docs:deploy
from the root directory of this repository will run the same thing.
Netlify
- This documentation is also automatically deployed on Netlify to https://vaken-docs.netlify.app/ and to https://vaken-docs.vandyhacks.org/.
- This is trigger on every
git push
.