-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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(v2): provide doc sidebar_label through sidebars.js #4500
Conversation
[pull] master from facebook:master
[pull] master from facebook:master
[pull] master from facebook:master
[pull] master from facebook:master
[pull] master from facebook:master
[V1] Deploy preview failure Built without sensitive environment variables with commit 3723ff0 https://app.netlify.com/sites/docusaurus-1/deploys/605ca3e5bc5a2e0007dabc71 |
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 3723ff0 |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4500--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 @besemuna , the feature is working great and as I expected.
To be complete we need:
- doc
- unit tests (particularly showing that
sidebarLabel
is used in priority overitem.label
) - dogfooding on Docusaurus site itself
I suggest you refactor the i18n docs to declare the sidebar label to use through the sidebars.js
file (using this new feature) instead of using frontmatter sidebar_label: xyz
.
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
can you please remove the doc backport to older versions, apply my suggestion and add some tests?
website/versioned_docs/version-2.0.0-alpha.71/guides/docs/sidebar.md
Outdated
Show resolved
Hide resolved
website/versioned_docs/version-2.0.0-alpha.72/guides/docs/sidebar.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
…docusaurus into besemuna/iss4314
Thanks, that looks great 👍 |
Motivation
Attempt to fix #4314. These are the changes I've made
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)