-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[v2.alpha.62] sidebars.json is required after upgrading from alpha.61 to alpha.62 #3366
Comments
Thanks, this is related to a big docs plugin refactor here: #3245 Will make the sidebars optional again in next release |
BTW as a side note, instead of your "sites" docs instance without any sidebar, you could also try to use Markdown Pages, released recently. What's the motivation to use docs plugin for the sites URLs like https://mateuszdabrowski.pl/sites/my-toolset on your site? (this probably make sense, just curious to see if we could improve md pages to support better this usecase) |
Will be fixed in #3376 Still kept a yellow warning as using docs without sidebar is probably a niche usecase |
Ahoj @slorber, As for /sites path and my-toolset - I opted for making it a docs page because of the markdown support and built-in table of contents (could have swizzled it, but wanted to wait to post-alpha stage with swizzling). Same for pages like http://localhost:3000/sites/privacy or http://localhost:3000/sites/licence As for yellow warning - I would say that if the docusarus config links to a custom sidebar, it should not trigger a warning, as it shows purposeful omission of the default approach. |
Released alpha 63 🎊 please spread the word 🙏 |
Confirmed! The label also disappeared from the pages :) |
FYI soon a site without sidebars.json will have its sidebar autogenerated by default. |
we are doing changes so that the empty sidebar file is not required anymore. Please subscribe to #4775 and let me know if this still works fine for you when we merge those changes |
🐛 Bug Report
After update from alpha.61 to alpha.62 I'm not able to start a server with my website due to a missing 'sidebars.json' file. It was not required previously. I'm using custom sidebar js files for multiple doc roots: https://github.com/MateuszDabrowski/mateuszdabrowski.pl (one in /docs, one in /ideas)
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
Expected behavior
The website should compile without the need for sidebars.json if there are custom sidebars assigned in docusaurus config.
Actual Behavior
The compile breaks with error:
Adding sidebars.json file with
{}
content solves this issue.Might be connected to #3362
Your Environment
Reproducible Demo
https://github.com/MateuszDabrowski/mateuszdabrowski.pl/tree/772446b0b3a84c69d02cf18c290248818501151b + bump the version of docusaurus to alpha.62
The text was updated successfully, but these errors were encountered: