Repository navigation
feat: docs plugin options sidebarCollapsible + sidebarCollapsed - #5203
Conversation
Signed-off-by: Josh-Cena <[email protected]>
Signed-off-by: Josh-Cena <[email protected]>
Signed-off-by: Josh-Cena <[email protected]>
fe06d41 to
e61d6ae
Compare
Signed-off-by: Josh-Cena <[email protected]>
|
✔️ [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 <[email protected]>
|
✔️ [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 |
Signed-off-by: Josh-Cena <[email protected]>
Signed-off-by: Josh-Cena <[email protected]>
Signed-off-by: Josh-Cena <[email protected]>
|
@slorber I've created two config options: |
Signed-off-by: Josh-Cena <[email protected]>
… for versioned sites, as "collapsed" is already persisted in sidebar json files
…#5203) * Add prop Signed-off-by: Josh-Cena <[email protected]> * Add `collapsible` option to sidebar item Signed-off-by: Josh-Cena <[email protected]> * Add eslint-ignore Signed-off-by: Josh-Cena <[email protected]> * Move new page Signed-off-by: Josh-Cena <[email protected]> * Allow in autogenerated Signed-off-by: Josh-Cena <[email protected]> * Fix tests Signed-off-by: Josh-Cena <[email protected]> * Move config options to plugin-docs Signed-off-by: Josh-Cena <[email protected]> * Make non-collapsible items always expanded Signed-off-by: Josh-Cena <[email protected]> * docs versioning cli should receive a single options object * Update cli.test.ts * revert validateCategoryMetadataFile change * remove theme usage of themeConfig.sidebarCollapsible * better handling of sidebar item category inconsistencies + add warning message * Update snapshot Signed-off-by: Josh-Cena <[email protected]> * Handle plugin option inconsistencies * improve doc for new sidebarCollapsible doc options * remove warning in fixSidebarItemInconsistencies as it will be annoyed for versioned sites, as "collapsed" is already persisted in sidebar json files Co-authored-by: slorber <[email protected]>
Breaking changes
themeConfig.sidebarCollapsibleis moved to docs pluginoptions.sidebarCollapsibleMotivation
Resolve #4966.
Add a docs
options.sidebarCollapsedplugin 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/