| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /**
- * 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
- learnSidebar: [{ type: 'autogenerated', dirName: 'guides' }],
- referenceSidebar: [
- {
- type: 'category',
- label: 'TypeScript API',
- items: [{ type: 'autogenerated', dirName: 'reference/typescript-api' }],
- },
- {
- type: 'category',
- label: 'GraphQL API',
- items: [
- {
- type: 'category',
- label: 'Admin API',
- items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/admin' }],
- },
- {
- type: 'category',
- label: 'Shop API',
- items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/shop' }],
- },
- ],
- },
- {
- type: 'category',
- label: 'Admin UI API',
- items: [{ type: 'autogenerated', dirName: 'reference/admin-ui-api' }],
- },
- ],
- // But you can create a sidebar manually
- /*
- tutorialSidebar: [
- 'intro',
- 'hello',
- {
- type: 'category',
- label: 'Tutorial',
- items: ['tutorial-basics/create-a-document'],
- },
- ],
- */
- };
- module.exports = sidebars;
|