index.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <title>sa-plus快速开发框架 在线文档</title>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  7. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  8. <!-- <link rel="shortcut icon" type="image/x-icon" href="sa-lib/logo.png"> -->
  9. <link rel="stylesheet" href="https://unpkg.com/docsify@4.11.3/lib/themes/vue.css">
  10. <link rel="stylesheet" href="./index.css">
  11. </head>
  12. <body>
  13. <nav>
  14. <select onchange="location.href=this.value">
  15. <option value="http://sa-plus.dev33.cn/doc/index.html#/">最新版</option>
  16. <option value="http://sa-plus.dev33.cn/v/v1.24.0/doc/index.html#/">v1.24.0</option>
  17. <option value="http://sa-plus.dev33.cn/v/v1.20.0/doc/index.html#/">v1.20.0</option>
  18. <option value="http://sa-fast.dev33.cn/doc/index.html#/">v1.14.0</option>
  19. </select>
  20. <a href="../index.html">首页</a>
  21. <a href="./#more/update-log">更新日志</a>
  22. <!-- <a href="./#more/origin">缘起</a> -->
  23. <a href="http://sa-app.dev33.cn/wall.html?name=sa-plus" target="_blank">需求墙</a>
  24. <a href="https://jq.qq.com/?_wv=1027&k=5DHN5Ib" target="_blank">QQ群</a>
  25. </nav>
  26. <div class="main-box">
  27. <div id="app">加载中...</div>
  28. </div>
  29. <script>
  30. // 一些配置
  31. window.$docsify = {
  32. name: '<big><b>Sa-plus</b></big> &nbsp;<small>v1.26.0</small>', // 名字
  33. basePath: location.pathname.substr(0, location.pathname.lastIndexOf('/') + 1), // 自动计算项目名字
  34. // themeColor: '#06A3D7', // 主题颜色 0C2E09
  35. // themeColor: '#147837', // 主题颜色
  36. repo: 'https://github.com/click33/sa-plus', // github地址
  37. auto2top: true, // 是否在切换页面后回到顶部
  38. subMaxLevel: 3, // 标题解析层级, 写几就在目录树中解析到几级标题 ,一般写2吧也就
  39. loadSidebar: true, // 加载自定义侧边栏 , 目录定制在: _sidebar.md 文件 (需要创建 .nojekyll 的空文件,阻止 GitHub Pages 忽略命名是下划线开头的文件)
  40. copyCode: { // 复制插件
  41. buttonText: '复制到剪贴板',
  42. errorText: '错误',
  43. successText: '复制成功'
  44. },
  45. alias: {
  46. '/sp-cloud/_sidebar.md': '/sp-cloud/_sidebar.md',
  47. '/.*/_sidebar.md': '/_sidebar.md',
  48. },
  49. search: 'auto', // 打开搜索功能
  50. plugins: [
  51. function(hook, vm) {
  52. // 解析之后执行
  53. hook.afterEach(function(html) {
  54. var url = 'https://github.com/click33/sa-plus/tree/master/sp-devdoc/doc/' + vm.route.file;
  55. var footer = [
  56. '<br/><br/><br/><br/><br/><br/><br/><hr/>',
  57. '<footer>',
  58. '&emsp;<span>发现错误?想参与编辑? <a href="' + url + '" target="_blank">在 GitHub 上编辑此页!</a> </span>',
  59. '</footer>'
  60. ].join('');
  61. return html + footer;
  62. });
  63. }
  64. ] // 自定义插件
  65. }
  66. </script>
  67. <script src="https://unpkg.com/docsify@4.9.4/lib/docsify.min.js"></script>
  68. <script src="https://unpkg.com/docsify-copy-code@2.1.0/dist/docsify-copy-code.min.js"></script>
  69. <script src="https://unpkg.com/prismjs@1.20.0/components/prism-java.js"></script>
  70. <script src="https://cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
  71. <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
  72. <!-- img点击放大 -->
  73. <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.min.js"></script>
  74. <script type="text/javascript">
  75. // $('.main-box').on('click', 'img', function(){
  76. // console.log(123);
  77. // open(this.src);
  78. // return false;
  79. // });
  80. </script>
  81. <div style="height: 0px; overflow: hidden;">
  82. <script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1279021391&web_id=1279021391"></script>
  83. </div>
  84. </body>
  85. </html>