Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation: Add keyboard shortcut to documentation to toggle sidebar navigation #3538
Comments
|
did you zoom-out or its the default behavior of showing that sponsor banner.? |
I think the sponsor thing should not be there. !!!!! even toggling sidebar seems fine enhancement !! cc @montogeek |
I don't think removing the sponsors is a good idea. Unsure about removing sidebar too. |
yeah...even I thought about the sponsor and it seems it should be there |
|
No comments on the Sponsors logo being there. The default behaviour can stay as it is. Just a feature enhancement to make the docs more accessible to read. A keyboard shortcut which toggles between existing view and the Medium like, distraction free view. |



Feature request
In the official documentation, it would be great to add keyboard shortcut which toggles sidebar navigation and helps people like me who get distracted easily from following existing view:

to this:
using:
document.querySelector('.sponsors').style.display = 'none'
and
document.querySelector('.sidebar.site__sidebar').style.display = 'none'
What is the expected behavior?
Suggested screen-shot added above
What is motivation or use case for adding/changing the behavior?
To help people which get distracted easily
How should this be implemented in your opinion?
Add a keyboard shortcut in docs to listen to say
Alt+Zto toggle left navigationAre you willing to work on this yourself?
yes, given some helping hand on my first PR for Webpack