index.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!--
  2. * @Description:
  3. * @Autor: lin
  4. * @Date: 2025-01-06 17:16:32
  5. * @LastEditors: lin
  6. * @LastEditTime: 2025-01-07 15:38:07
  7. -->
  8. <!DOCTYPE html>
  9. <html lang="en">
  10. <head>
  11. <meta charset="UTF-8">
  12. <title>Document-new</title>
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  14. <meta name="description" content="Description">
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  16. <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
  17. <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar.min.css" />
  18. </head>
  19. <style>
  20. .active > p > a{
  21. color: #42b983 !important;
  22. }
  23. </style>
  24. <body>
  25. <nav>
  26. <a href="#/">EN</a>
  27. <a href="#/zh-cn/">中文</a>
  28. </nav>
  29. <div id="app"></div>
  30. <!-- Docsify v4 -->
  31. <script>
  32. window.$docsify = {
  33. loadSidebar: true,
  34. // alias: {
  35. // '/.*/_sidebar.md': '/_sidebar.md',
  36. // },
  37. subMaxLevel: 4, // 设置子目录的最大显示级别(可选)
  38. sidebarDisplayLevel: 0,
  39. coverpage: true,
  40. loadNavbar: true,
  41. maxAge: 1000, // 过期时间,单位毫秒,默认一天
  42. search: 'auto', // 默认值
  43. // 支持本地化
  44. placeholder: {
  45. '/zh-cn/': '搜索',
  46. '/': '搜索'
  47. },
  48. // noData: '找不到结果',
  49. // // 搜索标题的最大层级, 1 - 6
  50. // depth: 2,
  51. // hideOtherSidebarContent: true, // 是否隐藏其他侧边栏内容
  52. // 避免搜索索引冲突
  53. // 同一域下的多个网站之间
  54. namespace: 'website-1',
  55. // 使用不同的索引作为路径前缀(namespaces)
  56. // 注意:仅适用于 paths: 'auto' 模式
  57. //
  58. // 初始化索引时,我们从侧边栏查找第一个路径
  59. // 如果它与列表中的前缀匹配,我们将切换到相应的索引
  60. // pathNamespaces: ['/zh-cn', '/ru-ru', '/ru-ru/v1'],
  61. // 您可以提供一个正则表达式来匹配前缀。在这种情况下,
  62. // 匹配到的字符串将被用来识别索引
  63. pathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/
  64. }
  65. </script>
  66. <script src="./docsify.js"></script>
  67. <script src="./search.min.js" defer></script>
  68. <script src="./docify-sidebar-collapse.min.js"></script>
  69. </body>
  70. </html>