-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Remove blank in the sidebar for headings linking to other pages #4
Comments
It's just a toc, I do not think it can be used as navigation. Maybe you can override style. |
Maybe we can support custom sidebar, what do you think? such as <aside>
<ul>
<li>
<a href="/Getting Started">Getting Started</a>
</li>
<li>
<ul>
<li><a href="/Getting-Started#snip">Snip</a></li>
</ul>
</li>
</ul>
</aside> Or global variables <script>
window.Docsify.sidebar = [
{ path: '/xxx', name: 'xxx', children: [] }
]
</script> If we do this, it will lose the toc feature. |
I think the current top navbar is very good for language switching. Adding other menu items seems not suitable. However, it would be very nice it if the drop-down list feature can be added on it. Oh, while I'm writing this, I see your updates... |
The dropdown list can be achieved purely through CSS, maybe the users to achieve better. |
OK. I will try that. Thanks! |
When I use
an unwanted blank line appears in the side bar:
It corresponds to
<a class="section-link" href="#snip"></a>
, which I think should be removed.Also, I am wondering if there is any way that I can hide certain headings in the content but keep them visible in the sidebar. The reason is that I have multiple pages and I would like to keep a consistent sidebar for all pages, while the content of each page stays clean and will not show the headings linking to other pages.
The text was updated successfully, but these errors were encountered: