|
6 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
7 | 7 | <meta name="description" content="Description">
|
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
9 |
| - <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css"> --> |
10 |
| - <!-- 主题 --> |
11 |
| - <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/buble.css"> --> |
12 |
| - <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/dark.css"> --> |
13 |
| - <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/pure.css"> --> |
14 |
| - <!-- https://docsify-darklight-theme.boopathikumar.me/#/installation --> |
15 |
| - <!-- https://osiris-ui.github.io/osiris/#/quick-start --> |
16 |
| - |
| 9 | + <!-- 官方主题 --> |
| 10 | + <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"> --> |
| 11 | + <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css"> --> |
| 12 | + <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css"> --> |
| 13 | + <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css"> --> |
| 14 | + <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dolphin.css"> --> |
| 15 | + <!-- https://github.com/boopathikumar018/docsify-darklight-theme --> |
17 | 16 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css" title="docsify-darklight-theme" type="text/css" />
|
| 17 | + <!-- https://github.com/jhildenbiddle/docsify-themeable --> |
| 18 | + <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css"> --> |
18 | 19 | </head>
|
19 | 20 | <body>
|
20 | 21 | <div id="app"></div>
|
|
28 | 29 | basePath: "https://lorchr.github.io/light-docsify/",
|
29 | 30 | // 加载 _sidebar.md 侧边导航栏
|
30 | 31 | loadSidebar: true,
|
31 |
| - maxLevel: 2, |
32 |
| - subMaxLevel: 2, |
| 32 | + maxLevel: 2, // 默认情况下会抓取文档中所有标题渲染成目录,可配置最大支持渲染的标题层级。 |
| 33 | + subMaxLevel: 2, // 生成目录的最大层级 |
| 34 | + mergeNavbar: true, // 小屏设备下合并导航栏到侧边栏 |
33 | 35 | alias: {
|
34 |
| - // '/.*/_sidebar.md': '/_sidebar.md', //防止意外回退 |
35 |
| - '/.*/_navbar.md': '/_navbar.md' //防止意外回退 |
| 36 | + // '/.*/_sidebar.md': '/_sidebar.md', // 防止意外回退,多个文档目录独立的导航栏时,不需要此项 |
| 37 | + '/.*/_navbar.md': '/_navbar.md' // 防止意外回退 |
36 | 38 | },
|
37 | 39 | // 加载 _navbar.md 顶部导航栏
|
38 | 40 | loadNavbar: true,
|
|
50 | 52 | depth: 3,
|
51 | 53 | hideOtherSidebarContent: false,
|
52 | 54 | notice: 'Docsify-Guide'
|
53 |
| - } |
| 55 | + }, |
| 56 | + // 分页导航,在文档的最下方会展示上一个文档和下一个文档。 |
| 57 | + pagination: { |
| 58 | + previousText: '上一章节', |
| 59 | + nextText: '下一章节', |
| 60 | + crossChapter: true, |
| 61 | + crossChapterText: false, |
| 62 | + }, |
| 63 | + // 设置路由模式,默认为hash, |
| 64 | + // 设置为 history 后,浏览器链接里不会出现 #,可能会对 SEO 更友好, |
| 65 | + routerMode: 'history', |
54 | 66 | }
|
55 | 67 | </script>
|
56 | 68 | <!-- Docsify v4 -->
|
|
63 | 75 | <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
|
64 | 76 | <!--复制到剪切板-->
|
65 | 77 | <script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
|
| 78 | + <!-- 分页导航 --> |
| 79 | + <script src="//cdn.jsdelivr.net/npm/docsify-pagination@2/dist/docsify-pagination.min.js"></script> |
66 | 80 | <!-- 代码高亮 -->
|
67 | 81 | <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
|
68 | 82 | <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-http.min.js"></script>
|
|
0 commit comments