strapi/docs/sidebars.js

68 lines
1.5 KiB
JavaScript
Raw Normal View History

2022-07-06 21:04:48 +02:00
/**
* 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
2022-08-26 18:41:48 +02:00
docs: [
'index',
{
type: 'category',
label: 'Core',
link: {
type: 'generated-index',
},
collapsible: false,
items: [
{
type: 'category',
label: 'Content Manager',
link: {
type: 'doc',
id: 'core/content-manager/intro',
},
items: [
{
type: 'doc',
label: 'Relations',
id: 'core/content-manager/relations',
},
],
2022-08-26 18:41:48 +02:00
},
{
type: 'category',
label: 'Content Type Builder',
link: {
type: 'doc',
id: 'core/content-type-builder/intro',
},
items: ['example'],
},
],
},
2022-11-10 12:10:20 +01:00
{
type: 'category',
label: 'Custom Fields',
link: {
type: 'doc',
id: 'custom-fields',
},
items: [],
},
2022-08-26 18:41:48 +02:00
],
2022-07-06 21:04:48 +02:00
api: [{ type: 'autogenerated', dirName: 'api' }],
2022-09-13 17:09:54 +02:00
community: [{ type: 'autogenerated', dirName: 'community' }],
2022-07-06 21:04:48 +02:00
};
module.exports = sidebars;