Files
docs/sidebars.js
2025-03-21 14:48:28 +08:00

90 lines
2.0 KiB
JavaScript

/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
//tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
TestSidebar: [
{
type: 'category',
label: '这是一个测试',
items: ['hello', 'intro'],
},
{
type: 'category',
label: '高精度模组',
items: [
// 文章文件名为 getting-started.md
'tutorial-basics/create-a-page',
'tutorial-basics/create-a-document',
],
},
],
FindCMSidebar: [
{
type: 'doc',
id: 'findcm/intro',
label: '产品介绍' // 可选,用于自定义侧边栏显示的文本
},
{
type: 'category',
label: '账号体系',
items: [
'dummy'
],
},
{
type: 'category',
label: '终端集成',
items: [
'dummy',
// 文章文件名为 getting-started.md
//'tutorial-basics/create-a-page',
],
},
],
RchipSidebar: [
{
type: 'doc',
id: 'rchip/intro',
label: '产品介绍' // 可选,用于自定义侧边栏显示的文本
},
{
type: 'doc',
id: 'rchip/qa',
label: '常见问题' // 可选,用于自定义侧边栏显示的文本
},
// {
// type: 'category',
// label: 'Rchip',
// items: ['intro'],
// },
// {
// type: 'category',
// label: '短报文通信模组',
// items: [
// // 文章文件名为 getting-started.md
// 'tutorial-basics/create-a-page',
// ],
// },
],
};
module.exports = sidebars;