-
-
Notifications
You must be signed in to change notification settings - Fork 635
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
Upgrade Docusaurus v2 + try to fix Prism #730
Conversation
Note, it's actually upgrading the dependency from 1.1.0 to 1.1.1 that seems to break the highlighting, so I forced the former using:
You likely upgraded without knowing as it's a minor semver range |
Thanks for digging! It seems to work with Docs or with docs. |
Ah, docs plugin is actually what I am using for versioning. Related : in this, the npm command is not working. |
We want to support multiple instances of docs plugin at the same time in the future. This part is not the most robust or easy to understand with things hardcoded here and there. You should rather use
It seems to work for me (using "docs" at least) |
You don't need to match the sidebar to the label of this link. Actually the sidebar attribute name "docs" or "Docs" is more like an idea than a label displayed anywhere. For example, take a look at Docusaurus 2 website, using 2 different sidebars: |
Holy shit, I never thought you could have two different sidebars. this is awesome. |
Unfortunately, this banner is something we added recently and I think there's currently no way to disable it. If you would open an issue so we don't forget. (related facebook/docusaurus#2916) In a more general way, there's also a feature that has been quite requested to make "next" the "current version". Yes, 2 different sidebars, and soon we also plan to work on multiple instances (like for example ios sdk vs android sdk, when both don't have different versioning lifecycles) |
This has not been a big deal to me, when I want people to start using the next version in earnest I will cut a version. [
"0.11",
"next"
] VS: [
"next",
"0.11"
]
very nice. |
Motivation
Attempt to fix highlighting for python
see facebook/docusaurus#3004
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
No
http://localhost:3000/docs/next/tutorials/structured_config/minimal_example
http://localhost:3000/docs/next/tutorials/structured_config/nesting
(the imports have the class "keyword", it's just not styled by the theme, so you could improve that).