docsifyjs/docsify

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

Open

#1 249 ouverte le 26 juin 2020

Voir sur GitHub
 (0 commentaires) (4 réactions) (0 assignés)JavaScript (5 630 forks)batch import
enhancementgood first Issuepr welcomesemver-minor

Métriques du dépôt

Stars
 (26 454 stars)
Métriques de merge PR
 (Merge moyen 18j 16h) (9 PRs mergées en 30 j)

Description

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
}

Guide contributeur