Skip to content

plugin-pages: menus are always expanded #100

Description

@FlorianCassayre

The plugin-pages does not appear to work correctly on simple non-monorepositories.

Following the example shown on this page:

pages: [
  { title: 'Getting started', source: 'getting-started.md', children: [
    { title: 'Configuration', source: 'configuration.md' },
  ] },
  { title: 'Additional resources', childrenDir: 'additional-resources', children: [
    { title: 'Some cool docs', source: 'some-cool-docs.md' },
  ] },
],

I obtain the following tree structure:

image

I observe that:

  • The menus are always expanded, regardless the currently selected page
  • The second menu is represented by an attribute-less <a>...</a> tag

I tested other combinations of parameters but couldn't make it work correctly. I haven't tested on a mono-repository but by looking at the configuration of this very repository and seeing the result I'm assuming it works correctly in that case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions