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

No index entry generated for custom categories specified in sidebars.js #343

Open
kdb13 opened this issue Jun 21, 2023 · 0 comments
Open

Comments

@kdb13
Copy link

kdb13 commented Jun 21, 2023

I'm using the sidebars.js file to use separate sidebars with their individual autogenerated indexes. The following code shows an example:

howtos: [
    {
      type: 'category',
      label: 'HowTos',
      link: {
        type: 'generated-index',
        title: 'HowTos',
        slug: '/how-tos'
      },
      items: [{type: 'autogenerated', dirName: 'how-tos'}]
    }
  ],

When I use the docusaurus-search-local plugin and build my project, I'm only able to search for the pages which are present within the howtos category but I cannot search for the autogenerated index page for howtos itself.

Example

Suppose there is a page such as howtos/vpn.md. Then I can search for the VPN page but not for the root howtos page which when manually accessed from URL shows the autogenerated index cards.

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