index.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!--
  2. * @Description:
  3. * @Autor: lin
  4. * @Date: 2025-01-06 17:16:32
  5. * @LastEditors: lin
  6. * @LastEditTime: 2025-01-06 17:17:18
  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@4/lib/themes/vue.css">
  17. </head>
  18. <body>
  19. <nav>
  20. <a href="#/">EN</a>
  21. <a href="#/zh-cn/">中文</a>
  22. </nav>
  23. <div id="app"></div>
  24. <script>
  25. window.$docsify = {
  26. coverpage: true,
  27. loadNavbar: true,
  28. maxAge: 1000, // 过期时间,单位毫秒,默认一天
  29. search: 'auto', // 默认值
  30. // 支持本地化
  31. placeholder: {
  32. '/zh-cn/': '搜索',
  33. '/': '搜索'
  34. },
  35. noData: '找不到结果',
  36. // 搜索标题的最大层级, 1 - 6
  37. depth: 2,
  38. hideOtherSidebarContent: false, // 是否隐藏其他侧边栏内容
  39. // 避免搜索索引冲突
  40. // 同一域下的多个网站之间
  41. namespace: 'website-1',
  42. // 使用不同的索引作为路径前缀(namespaces)
  43. // 注意:仅适用于 paths: 'auto' 模式
  44. //
  45. // 初始化索引时,我们从侧边栏查找第一个路径
  46. // 如果它与列表中的前缀匹配,我们将切换到相应的索引
  47. // pathNamespaces: ['/zh-cn', '/ru-ru', '/ru-ru/v1'],
  48. // 您可以提供一个正则表达式来匹配前缀。在这种情况下,
  49. // 匹配到的字符串将被用来识别索引
  50. pathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/
  51. }
  52. </script>
  53. <!-- Docsify v4 -->
  54. <script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
  55. <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
  56. </body>
  57. </html>