You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Configuration
2
2
3
-
You can configure the `window.$docsify`.
3
+
You can configure Docsify by defining `window.$docsify` as an object:
4
4
5
5
```html
6
6
<script>
@@ -12,6 +12,24 @@ You can configure the `window.$docsify`.
12
12
</script>
13
13
```
14
14
15
+
The config can also be defined as a function, in which case the first arg is the Docsify `vm` instance. The function should return a config object. This can be useful for referencing `vm` in places like the markdown configuration:
0 commit comments