Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Allow using multiple sidebars in the sidebar config file when using --sidebar/-sb flag #22

Open
lmpham1 opened this issue Oct 29, 2021 · 0 comments

Comments

@lmpham1
Copy link
Owner

lmpham1 commented Oct 29, 2021

Currently, the program only supports one sidebar object per config file, i.e.:

{
    "sidebar": {
        "type": "pages",
        "title": "sample stories",
        "items": "./sample"
    }
}

The program should be to support multiple sidebars in the config file, similar to how Docusaurus does it:

module.exports = {
  mySidebar: [
    {
      type: 'category',
      label: 'Getting Started',
      items: ['doc1'],
    },
    {
      type: 'category',
      label: 'Docusaurus',
      items: ['doc2', 'doc3'],
    },
  ],
};

Note that they have an array of two sidebars in the snippet above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant