mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
66 lines
1.9 KiB
JavaScript
66 lines
1.9 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
|
|
// import apiSidebar from './docs/API-docs/sidebar.ts';
|
|
import apiV1Sidebar from './docs/API-docs/v1/sidebar.ts';
|
|
import apiV11Sidebar from './docs/API-docs/v1.1/sidebar.ts';
|
|
import apiV12Sidebar from './docs/API-docs/v1.2/sidebar.ts';
|
|
|
|
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
|
const sidebars = {
|
|
// By default, Docusaurus generates a sidebar from the docs folder structure
|
|
tutorialSidebar: [{type: 'autogenerated', dirName: 'help'}],
|
|
selfhostSidebar: [{type: 'autogenerated', dirName: 'self-host'}],
|
|
contributeSidebar: [{type: 'autogenerated', dirName: 'contribute'}],
|
|
// apiSidebar: apiSidebar,
|
|
// Single API sidebar containing two top-level categories
|
|
apiSidebar: [
|
|
{
|
|
type: 'category',
|
|
label: 'v1.2',
|
|
link: { type: 'generated-index', title: 'OpenSign API v1.2', slug: '/API-docs/v1.2' },
|
|
collapsed: false,
|
|
items: apiV12Sidebar,
|
|
},
|
|
{
|
|
type: 'category',
|
|
label: 'v1.1',
|
|
link: { type: 'generated-index', title: 'OpenSign API v1.1', slug: '/API-docs/v1.1' },
|
|
collapsed: false,
|
|
items: apiV11Sidebar,
|
|
},
|
|
{
|
|
type: 'category',
|
|
label: 'v1',
|
|
// Optional: clicking the category label goes to a “generated index”
|
|
link: { type: 'generated-index', title: 'OpenSign API v1', slug: '/API-docs/v1' },
|
|
collapsed: true,
|
|
items: apiV1Sidebar,
|
|
}
|
|
],
|
|
|
|
// But you can create a sidebar manually
|
|
/*
|
|
tutorialSidebar: [
|
|
'intro',
|
|
'hello',
|
|
{
|
|
type: 'category',
|
|
label: 'Tutorial',
|
|
items: ['tutorial-basics/create-a-document'],
|
|
},
|
|
],
|
|
*/
|
|
};
|
|
|
|
export default sidebars;
|