-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Cannot link directly to doc in sidebar #1993
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
Comments
You can't do that. First level of a sidebar name // sidebars.js
module.exports = {
docs: [
{
type: 'category',
label: 'Getting Started',
items: ['greeting'],
},
{
type: 'category',
label: 'Docusaurus',
items: ['doc1'],
},
],
}; We should update the docs or at least do better in the error handling i guess |
Oh OK, thanks for clarifying! |
Thank you. We'll warn it to user better in #1994 |
Appreciate the quick follow up 🎉 |
See #2032 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
🐛Cannot link directly to doc in sidebar
I am trying to link to a doc directly in the sidebar per the v2 documentation.
To Reproduce
(Write your steps here:)
sidebars.js
codenpm run start
Expected behavior
No compile errors, we see the link directly to the doc in the sidebar.
Actual Behavior
It will not compile, see this error in console:
Error: Unknown sidebar item keys: id. Item: {"type":"doc","id":"api"}
The text was updated successfully, but these errors were encountered: