How to Docusaurus
#
Adding new documentation pagesTo add a new page simply create a new markdown file (.md or .mdx) in ./docs/* or respective category folder
#
Creating categoriesTo create a category create a folder with the desired group name e.g 'tutorial', then place your new files in this folder
#
Arranging the sidebar#
PagesAt the top it is possible to place the following options inside the 'front matter' ("markdown header")
----<options here>----
(... rest of markdown ...)
All of it can be found here: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs#markdown-frontmatter
Here are the two most important ones for our docs.
#
Sidebar PositionMoves the item to the specified position in the sidebar (starting from 1).
sidebar_position: <number>
#
Sidebar LabelOverwrites the label / name in the sidebar to the given label
sidebar_label: <string>
#
CategoriesTo arrange the categories in the sidebar simply add a number in front of the name e.g. "1. name". This is equivalent to the front matter option "sidebar_position: 1"