Introduction
This is a template for SRO projects to simply create a Docusaurus website which publishes some Markdown (or MDX) files to a website.
Installation
Setup is very easy. Run the following command and a my_website folder will be created which contains everything you need.
npx create-docusaurus@latest my_website https://github.com/roboticsoutreach/docusaurus-template.git
Setup
You will first want to update docusaurus.config.ts to contain a correct title, tagline, URL, repository configuration and navbar.
You should change README.md and at least remove the part at the top about setting up the template itself.
You should also view the LICENSE and at the least ensure it is appropriate to your project.
You could also:
- change the
sidebars.tsfile to modify the sidebar to the left - update the navbar in the Docusaurus config
- update the footer in the Docusaurus config
Finally, you'll also eventually want to replace this page with something more useful.
Deployment
The template comes with some GitHub Actions templates to deploy the site to GitHub Pages.
In the repisitory Settings > GitHub Pages, make sure the build source is set to GitHub Actions, and configure a custom domain if you want.