parent
8b4f99c87f
commit
8225174cb5
1 changed files with 11 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
|||
export function toc() {
|
||||
if (document.querySelector('#core-wrapper h2,#core-wrapper h3')) {
|
||||
// see: https://github.com/tscanlin/tocbot#usage
|
||||
tocbot.init({
|
||||
tocSelector: '#toc',
|
||||
|
@ -8,4 +9,5 @@ export function toc() {
|
|||
orderedList: false,
|
||||
scrollSmooth: false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue