mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-22 15:42:31 +02:00
Update sidebars.js
This commit is contained in:
+18
-4
@@ -21,10 +21,24 @@ const sidebars = {
|
||||
selfhostSidebar: [{type: 'autogenerated', dirName: 'self-host'}],
|
||||
contributeSidebar: [{type: 'autogenerated', dirName: 'contribute'}],
|
||||
// apiSidebar: apiSidebar,
|
||||
|
||||
// Separate sidebars per API version
|
||||
apiV1Sidebar: apiV1Sidebar,
|
||||
apiV11Sidebar: apiV11Sidebar,
|
||||
// Single API sidebar containing two top-level categories
|
||||
apiSidebar: [
|
||||
{
|
||||
type: 'category',
|
||||
label: 'v1',
|
||||
// Optional: clicking the category label goes to a “generated index”
|
||||
link: { type: 'generated-index', title: 'OpenSign API v1', slug: '/api/v1' },
|
||||
collapsed: false,
|
||||
items: apiV1Sidebar,
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'v1.1',
|
||||
link: { type: 'generated-index', title: 'OpenSign API v1.1', slug: '/api/v1.1' },
|
||||
collapsed: false,
|
||||
items: apiV11Sidebar,
|
||||
},
|
||||
],
|
||||
|
||||
// But you can create a sidebar manually
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user