-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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: docs plugin options sidebarCollapsible + sidebarCollapsed #5203
Conversation
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
fe06d41
to
e61d6ae
Compare
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
✔️ [V2] 🔨 Explore the source changes: fe06d41 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60f91e46c1554600081fba99 😎 Browse the preview: https://deploy-preview-5203--docusaurus-2.netlify.app |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-5203--docusaurus-2.netlify.app/ |
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
✔️ [V2] 🔨 Explore the source changes: 369a2e6 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60f91ef3df2acf0008b839f8 😎 Browse the preview: https://deploy-preview-5203--docusaurus-2.netlify.app |
✔️ [V2] 🔨 Explore the source changes: e0dcfa1 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60fab15b82a0520007e3f6f2 😎 Browse the preview: https://deploy-preview-5203--docusaurus-2.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks, overall LGTM
packages/docusaurus-plugin-content-docs/src/sidebarItemsGenerator.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
@slorber I've created two config options: |
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
… for versioned sites, as "collapsed" is already persisted in sidebar json files
Breaking changes
themeConfig.sidebarCollapsible
is moved to docs pluginoptions.sidebarCollapsible
Motivation
Resolve #4966.
Add a docs
options.sidebarCollapsed
plugin config.Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
tests + https://deploy-preview-5203--docusaurus-2.netlify.app/tests/docs/more-test/