docsifyjs/docsify

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

Fechada

#1.249 aberto em 26 de jun. de 2020

 (0 comentário) (4 reações) (0 responsável)JavaScript (5.630 forks)batch import
enhancementgood first Issuepr welcomesemver-minor

Métricas do repositório

Stars
 (26.454 estrelas)
Métricas de merge de PR
 (Mesclagem média 10d 13h) (9 fundiu PRs em 30d)

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
}

Guia do colaborador