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
Custom sidebar. If it's set, the TOC will be disabled. Bind global variables on the `data-sidebar`.
169
221
@@ -187,7 +239,13 @@ Custom sidebar. If it's set, the TOC will be disabled. Bind global variables on
187
239
```
188
240
189
241
190
-
#### load-sidebar
242
+
```js
243
+
window.$docsify= {
244
+
sidebar:'sidebar'
245
+
}
246
+
```
247
+
248
+
### load-sidebar
191
249
192
250
Load sidebar markdown file. If it is configured, load the current directory `_sidebar.md` by default. If the file isn't exist, sidebar will appear as a TOC.
193
251
** you should add `.nojekyll` into docs folder to prevent GitHub Pages from ignoring the `_sidebar.md`**
`README.md` will be rendered as a homepage for your website in the docs folder, but sometimes we want to specify another file as a homepage, or even use the `README.md` in your repo. We can use (need `data-router`):
283
365
@@ -288,7 +370,14 @@ Scroll to the top on changing hash.
288
370
```
289
371
290
372
291
-
#### basePath
373
+
```js
374
+
window.$docsify= {
375
+
homepage:true
376
+
}
377
+
```
378
+
379
+
380
+
### basePath
292
381
293
382
If your HTML entry file and the markdown files are in different directories, we can use:
294
383
@@ -300,12 +389,25 @@ If your HTML entry file and the markdown files are in different directories, we
0 commit comments