feat: Add hideOtherSidebarContent option (#661)

Allow user to configure whether or not to hide other sidebar content while showing searching results.

Related issue: https://github.com/docsifyjs/docsify/issues/535
This commit is contained in:
程康 2018-10-31 12:43:46 +00:00 • committed by qingwei.li
commit 4a23c4acf2
4 changed files with 31 additions and 5 deletions

View file

@ -36,7 +36,7 @@ export function main(config) {
'</button>' +
'<aside class="sidebar">' +
(config.name ?
`<h1><a class="app-name-link" data-nosearch>${
`<h1 class="app-name"><a class="app-name-link" data-nosearch>${
config.logo ?
`<img alt=${config.name} src=${config.logo}>` :
config.name