question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot link directly to doc in sidebar

See original GitHub issue

🐛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:)

  1. Add doc link in sidebars.js code
module.exports = {
  docs: [
    {
      type: "category",
      label: "Get Started",
      items: ["get_started"]
    },
    { 
     type: "doc",
     id: "api"
    }
  ]
};
  1. Run npm 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"}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
endilieycommented, Nov 23, 2019
1reaction
endilieycommented, Nov 14, 2019

Thank you. We’ll warn it to user better in #1994

Read more comments on GitHub >

github_iconTop Results From Across the Web

Document Library URL Links not working
I tried adding new links to this document library and they won't open, but If I add a new document library and add...
Read more >
[TW5] How to link to the sidebar? [Resolved] - Google Groups
What I'd like to do is to be able to link directly from my task tiddler to the report, so that it opens...
Read more >
Google Apps Script: open sidebar directly when clicking on ...
Opening a sidebar with a click on the menu name is not possible, as it's not possible to assign a function to the...
Read more >
Use sidebars in Pages on Mac - Apple Support
Open and close sidebars​​ Right sidebar: Click Format or Document in the toolbar to open the sidebar and show the controls. To close...
Read more >
Sidebar - Docusaurus
Pass this object into the @docusaurus/plugin-docs plugin directly or via ... A sidebar at its crux is a hierarchy of categories, doc links, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found