File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -306,19 +306,35 @@ For available parameters, these are documented on the _Docsify_ [Configuration](
306
306
307
307
For defaults - see _Docsify_ [config.js](https://github.com/docsifyjs/docsify/blob/develop/src/core/config.js) script.
308
308
309
- For some values to look at (provided here with defaults):
309
+ See some values below which are worth considering for the siderbar.
310
310
311
311
` ` ` js
312
312
window.$docsify = {
313
- // ...
314
-
315
- // Maximum Table of content level.
313
+ // Maximum Table of Contents (TOC) level. Default value shown here.
316
314
maxLevel: 6,
317
- // Add table of contents (TOC) in custom sidebar. Try value of 2.
315
+
316
+ // Add table of contents (TOC) in custom sidebar. Default value shown here. Try a value of 2.
318
317
subMaxLevel: 0,
318
+
319
+ logo: ' /_media/icon.svg' ,
320
+
321
+ name: ' docsify'
319
322
}
320
323
` ` `
321
324
325
+ Change the homepage. These recommendations come from the docs.
326
+
327
+ ` ` ` js
328
+ window.$docsify = {
329
+ // Change to /home.md
330
+ homepage: ' home.md' ,
331
+
332
+ // Or use the readme in your repo
333
+ homepage: ' https://raw.githubusercontent.com/docsifyjs/docsify/master/README.md'
334
+ };
335
+ ` ` `
336
+
337
+
322
338
See also the [Google Analytics tracking](https://docsify.js.org/# /plugins?id=google-analytics) section which needs a plugin script to be loaded.
323
339
324
340
# ### Favicon
You can’t perform that action at this time.
0 commit comments