We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ab3d4 commit 7be6baaCopy full SHA for 7be6baa
src/index.js
@@ -1,5 +1,5 @@
1
import { load, camel2kebab, isNil, getRoute } from './util'
2
-import { scrollIntoView } from './event'
+import { scrollIntoView, activeLink } from './event'
3
import * as render from './render'
4
5
const OPTIONS = {
@@ -92,7 +92,10 @@ const Docsify = function () {
92
const dom = document.querySelector(OPTIONS.el) || document.body
93
const replace = dom !== document.body
94
const main = function () {
95
- mainRender(_ => scrollIntoView())
+ mainRender(_ => {
96
+ scrollIntoView()
97
+ activeLink('nav')
98
+ })
99
}
100
101
// Render app
0 commit comments