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.

Docz sidebar no longer displays subheaders and closes on click

See original GitHub issue

I upgraded docz and docz-theme-default recently and the sidebar has since stopped working as it used to.

This is how it looked before:

Image

Now subheaders in the markdown no longer create submenu entries, and additionally, when you click on an item, the whole parent menu closes.

It looks like this:

Image

My docz dependencies are:

    "docz": "^0.13.7",
    "docz-plugin-css": "^0.11.0",
    "docz-theme-default": "^0.13.7",

It’s basically the same as #247.

The solution there was to use yarn…Surely I don’t have to use yarn just to make docz work?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ejuocommented, Feb 4, 2019

I also encountered this problem when I built the example from the repository without using symlinks (everything is OK with it). Having drunk a fair amount of cups of tea, I discovered the problem in the way to the path-to-regexp library. In one case, the paths went to node_modules/path-to-regexp (0.1.7), and in the other, node_modules/react-router/node_modules/path-to-regexp (1.7.0). I have a suspicion that using symlinks changes the work of the rezolver (https://github.com/pedronauck/docz/blob/master/packages/docz-core/src/webpack/config.ts#L117).

0reactions
fi3eworkcommented, Apr 17, 2019

@akharkhonov Have a try of docz 1.0. Does this bug still exist in 1.0?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Looks like sidebar navigation was broken · Issue #247 · doczjs/docz ...
So it works well in v0.8.0: But after v0.9.0 it does not work:... ... Docz sidebar no longer displays subheaders and closes on...
Read more >
st.sidebar - Streamlit Docs
st.sidebar displays items in a sidebar. ... Not only can you add interactivity to your app with widgets, you can organize them into...
Read more >
Add a title, heading, or table of contents in a document
Make a title or heading · On your computer, open a document in Google Docs. · Select the text you want to change....
Read more >
Master the Docs Outline Tool | Workspace Tips
On the left side of the document next to "Document outline," click Close . The outline will stay closed until you open it...
Read more >
How do I restore missing Finder sidebar? - Apple Community
Haha hopefully this solves your problem too. Close all finder windows so when you click the finder icon it opens a new finder...
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