Site content
You manage the content on your site by authoring Markdown files and editing the sidebars.js
file.
#
Creating contentYou add content by developing Markdown files.
- Navigate to your site directory.
- In the
docs/
directory, create a Markdown (MD) file.
Example:Installing my solution
- Open the MD file and create a front matter.
For more information about front matters, see Docusaurus - Docs introduction.
Example:
- Below the header, add your MD content.
For more information about authoring in Markdown, see the Markdown Style Guide and MDX. - Save the MD file.
#
Linking to content in the sidebarYou add links to the pane on the left by referring to the Markdown (MD) files IDs.
- Navigate to your site directory.
- In the
docs
directory, open the MD file that you want to link in the sidebar. - From the MD file front matter, copy the
id
value.
Example:
- In the root directory of your site, open the
sidebars.js
file. - In a relevant place, paste the
id
value.
For more information, see Docusaurus - Linking to a doc page. - Save the
sidebars.js
file.