Improve documentation
Want to help improve this documentation? Thank you for your interest in making it better!
Here’s a quick overview to get you started.
Fix typo and/or complete an existing page
Each pages of the Guide including this one provides a link at its whole bottom:
- Simply click over this link, it will allow you to edit via GitHub UI directly, the content of the page.
- Update the content using Markdown in the editor.
- Check that it renders well using the Preview tab
- Click on the button Commit changes...
- Click on the button Create pull request
- Bingo, you did your first contribution, it will be available as soon as the project maintainers reviewed your changes.
Create a new page
-
Fork the project
-
Create a new file ending with
.md
withindocs/docs/
directory. -
Your file content should follow the following structure:
---
title: <page title>
sidebar_position: <order in sidebar menu>
---
# <page title>
<your content> -
You can, make use of MDX components (rich UI components) by importing them within the pages. Have a look at this to learn more: https://docusaurus.io/docs/markdown-features.
-
Optionally, you might also want to use specific widgets created for this project. They are documented here: custom widgets
Customize sidebar menu
Edit docs/src/sidebars.ts
const sidebars: SidebarsConfig = {
mainSidebar: [
{
type: 'category',
label: 'Getting started',
items: [
'getting-started/pre-requisites',
'getting-started/supported-devices',
'getting-started/flash-nspanel',
{
type: 'category',
label: 'Install NSPanel Manager',
items: [
{
type: 'autogenerated',
dirName: 'getting-started/install',
},
],
},
'getting-started/configuration',
]
},
'web-interface',
'panel-functions',
{
type: 'category',
label: 'Advanced topics',
items: [
{
type: 'autogenerated',
dirName: 'advanced',
},
]
},
{
type: 'category',
label: 'Contribute',
items: [
{
type: 'autogenerated',
dirName: 'contribute',
},
]
},
],
};
More help is available on docusaurus: https://docusaurus.io/docs/sidebar