docsifyjs/docsify

option to put sidebar on the right

Open

#1282 aperta il 13 lug 2020

Vedi su GitHub
 (14 commenti) (4 reazioni) (0 assegnatari)JavaScript (5630 fork)batch import
enhancementgood first Issuepr welcomeready to implementsemver-minor

Metriche repository

Star
 (26.454 star)
Metriche merge PR
 (Merge medio 18g 16h) (9 PR mergiate in 30 g)

Descrizione

Feature request

An option to put the sidebar on the right instead of the left

What problem does this feature solve?

Sometimes people want it on the other side (maybe they embed Docsify somewhere that already has a sidebar on the left, or maybe they have a custom landing page with a custom menu on the right and when they click the link to go to documentation they'd also want the docs to have the sidebar on the same side).

What does the proposed API look like?

rightSidebar: true // or false

or

sidebarPosition: 'right' // or 'left'

How should this be implemented in your opinion?

I think we might be able to achieve this just with CSS, leaving the markup alone.

cc @jhildenbiddle for CSS expertise here.

Are you willing to work on this yourself?

Of course (if/when I get the time)!

Guida contributor