docsifyjs/docsify

option to put sidebar on the right

已关闭

#1,282 创建于 2020年7月13日

 (14 条评论) (4 个反应) (0 位负责人)JavaScript (5,630 个派生)batch import
enhancementgood first Issuepr welcomeready to implementsemver-minor

仓库指标

星标
 (26,454 个星标)
PR 合并指标
 (平均合并 10天 13小时) (30 天内合并 9 个 PR)

描述

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)!

贡献者指南