Conversation
|
Deploy preview for docusaurus-2 ready! Built with commit 147b304 |
|
@yangshun what do you think of this feature? Actually, it did not take a lot of code to implement it, but it seems to me that this will be a useful feature for our users. Moreover, that is good from the point of view of UX. |
|
Hi, The feature looks a good idea to me, but I'm not a fan of having the collapsed sidebar still being visible (a matter of taste, but I see some apps do that as well). This feature is mostly useful on medium screens, what about making the sidebar totally disappear, with an ability to toggle/pin it? If we keep current designs, some details:
|
I like it, thanks for adding it! It's a nice addition
Agreed, the current design works but can be made more aesthetically pleasing. Some ideas: VisibleHidden |
|
Let's revisit this in future if/when Alexey is back. This was never published and it has a ton of merge conflicts now. |



Motivation
This PR allows you to hide the doc sidebar along with increasing content column width.
This is useful when there is a lot of long content on the page and you want to focus on it. This feature can also be actively used on medium screens (e.g. on tablets).
GitBook and GitLab docs have a similar feature in, but there the content column width does not increase, which loses the meaning of this feature, in my view.
As a result, the user has the opportunity to expand the content area width by 300px (this is sidebar width) if they hides the sidebar (see screenshots below).
I would even recommend turning it on by default, because in reality few docs generators have this functionality, this will be our just one more advantage.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Preview.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)