docsifyjs/docsify

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

Open

#1.249 geöffnet am 26. Juni 2020

Auf GitHub ansehen
 (0 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)JavaScript (5.630 Forks)batch import
enhancementgood first Issuepr welcomesemver-minor

Repository-Metriken

Stars
 (26.454 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 18T 16h) (9 gemergte PRs in 30 T)

Beschreibung

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
}

Contributor Guide