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

feat: add array sidebar support #35

Merged
merged 3 commits into from
Jul 2, 2020

Conversation

kiaking
Copy link
Member

@kiaking kiaking commented Jul 2, 2020

This PR adds array type sidebar support. It only supports this syntax.

{
  sidebar: [
    {
      text: 'Getting Started',
      link: 'getting-started',
      children: [...]
    }
  ]
}
  • You can't do sidebar: ['getting-started'].
  • "Depth" option not supported. The items are always fully shown.
  • Sidebar Groups works too, and header links works as well.
  • Basic stylings applied, but not responsive design (not collapsable on mobile view).

Screen Shot 2020-07-02 at 23 29 53

@yyx990803
Copy link
Member

Very niiice. I tweaked the font size a little bit.

@yyx990803 yyx990803 merged commit 4a8388e into vuejs:master Jul 2, 2020
@kiaking kiaking deleted the array-sidebar-support branch July 3, 2020 00:30
veaba pushed a commit to veaba/vitepress that referenced this pull request Jul 17, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants