Skip to content

Instead of specifying the path of the sidebar.md file in loadSideBar, is it possible to statically declare the contents of the sidebar md file? #2521

Open
@shlee1223

Description

@shlee1223

Feature request

Problem or desire

Instead of specifying the path of the sidebar.md file in loadSideBar, is it possible to statically declare the contents of the sidebar md file?

For example,

  loadSidebar: true,
  loadSidebar: '_sidebar.md'

==>

  loadSidebar: true,
  loadSidebar: function() {
    return `
    - [Introduction](README.md)
    - [Guide](guide.md)
    - [API Reference](api.md)
    `;
   }

I have tested the above method and similar methods, but they all failed. Is there any workaround, even if it is a different method?

I look forward to your help. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions