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.

Feature request

What problem does this feature solve?

Some sub sections of my website don’t need navbar at all. I created a new project with the init command and all I have is this:

    window.$docsify = {
      name: '',
      repo: ''

but the navbar is showing. I don’t need navbar for every section of my website.

What does the proposed API look like?

I don’t know. This might be a bug or I just don’t know how to use the existing API

How should this be implemented in your opinion?

Not sure

Are you willing to work on this yourself?

Depends on the complexity

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
trusktrcommented, Jan 1, 2020

Then why is there a side nav shown by default, and why doesn’t sideBar: “mysidebar.md”do anything?

There might be bugs that we should fix. We’re in the process of adding unit tests, so hopefully any regressions won’t happen in the future. We’re not the original authors, so we’re not 100% aware of any regressions, if any, but if you see anything, please do open an issue. That’d help a lot!

2reactions
orencommented, Jul 4, 2019

I worked around it by hiding and showing the icon based on the location.hash. Dirty but works:

      window.addEventListener('hashchange', hashHandler, false);

      function hashHandler() {
        if(location.hash.startsWith("#/surf/")) {
          document.getElementsByClassName("sidebar-toggle-button")[0].style.display = "block";
        } else {
          document.getElementsByClassName("sidebar-toggle-button")[0].style.display = "none";
        }
      }
Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Hide Menu on Scroll - W3Schools
This example demonstrates how to hide a navbar when the user starts to scroll the page. Scroll down this frame to see the...
Read more >
Hide the navigation bar - Android Developers
This lesson describes how to hide the navigation bar, which was introduced in Android 4.0 (API level 14). Even though this lesson focuses...
Read more >
Hide Navigation Bar - Apps on Google Play
Unsupported as of Android 11. This is app does not work on Android 11 and above because Google removed the ability for apps...
Read more >
How to Hide a Navigation Bar When Scrolling Down - YouTube
CSS TUTORIALS. How to Hide a Navigation Bar When Scrolling Down - HTML, CSS & JavaScript Web Design Tutorial.
Read more >
Show / Hide Navigation - HTML Dog
As an extra bell and/or whistle, it includes “show” and “hide” icons made from CSS gradients instead of images. These techniques demonstrate a...
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