docsifyjs/docsify

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

Open

#1249 aperta il 26 giu 2020

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

Metriche repository

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

Descrizione

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
}

Guida contributor