mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
add ignore
This commit is contained in:
parent
e6ef1317c8
commit
76ed1f2c65
1
.eslintignore
Normal file
1
.eslintignore
Normal file
@ -0,0 +1 @@
|
||||
test/docsify.js
|
||||
@ -1,5 +1,5 @@
|
||||
# docsify [WIP]
|
||||
[](https://travis-ci.org/QingWei-Li/docsify)
|
||||
[](https://travis-ci.org/QingWei-Li/docwsify)
|
||||
[](https://www.npmjs.com/package/docsify)
|
||||
|
||||
>🃏 A magical documentation site generator.
|
||||
|
||||
@ -1,12 +1,3 @@
|
||||
function activeSidebar () {
|
||||
document.addEventListener('click', ({ target }) => {
|
||||
if (target.classList.contains('section-link') && target.nodeName === 'A') {
|
||||
[].slice.call(document.querySelectorAll('.sidebar li')).forEach(node => node.classList.remove('active'))
|
||||
target.parentNode.classList.toggle('active')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function scrollActiveSidebar () {
|
||||
if (/mobile/i.test(navigator.userAgent)) return
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user