docsifyjs/docsify

when onlyCover is true, also provide an option to show the menu.

Open

#1,249 opened on 2020年6月26日

GitHub で見る
 (0 comments) (4 reactions) (0 assignees)JavaScript (5,630 forks)batch import
enhancementgood first Issuepr welcomesemver-minor

Repository metrics

Stars
 (26,454 stars)
PR merge metrics
 (平均マージ 10d 13h) (30d で 9 merged PRs)

説明

Continuing from https://github.com/docsifyjs/docsify/issues/1173#event-3485443350

Feature request

When only onlyCover is true, it would be great to have an option to show the menu (and of course the menu should not be empty).

What problem does this feature solve?

Allows people to skip to content faster.

What does the proposed API look like?

window.$docsify = {
  onlyCover: true,
  onlyCoverShowMenu: true, // false by default
}

コントリビューターガイド