You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Affected files: Daily Logs/2023.06 考核.md Daily Logs/2023.07.md Koala/README.md Koala/_sidebar.md Koala/atta/Pasted image 20230515161111.png Koala/后台说明/商城管理/店铺装修/跳转到其他商城小程序.md Koala/后台说明/商城管理/积分商城.md Platform/README.md Platform/_sidebar.md Platform/atta/Snipaste_2023-02-01_14-39-14.png Platform/atta/Snipaste_2023-03-20_09-36-39.png Platform/atta/zd1.gif Platform/index.html Platform/产品管理/产品供应商-操作规范.md Platform/产品管理/供应商信息维护.md Platform/供应商付款/(预付款, 借款) - 申请.md Platform/供应商付款/(预付款, 借款) - 退余额.md Platform/供应商付款/(预付款, 借款) - 销账.md Platform/供应商付款/ℹINFO.md Platform/供应商付款/个人借款 - 退还, 清账单据.md Platform/组团计划/地接组团计划.md Platform/订单/刷单系统流程.md Platform/订单/团款认领.md Platform/订单/批量导入订单.md Platform/财务/核算工具.md Platform/财务/财务报表.md Platform/财务/账单管理.md Platform/需求/财务-U8对接.md README.md Templates/DailyLogs.md docsify/docsify-mermaid@2.0.0_dist_docsify-mermaid.js docsify/docsify@4.net_npm_docsify@4.js docsify/docsify@4_lib_themes_vue.css docsify/docsify_lib_plugins_zoom-image.min.js docsify/fonts.google.css docsify/mermaid-8ea29a40.js docsify/mermaid@10_dist_mermaid.esm.min.mjs docsify/selectAll-92b901d1.js docsify/sequenceDiagram-1d99af4c.js docsify/svgDrawCommon-daf0bec5.js index-mermaid-native.html index-mermaid-plugin.html |
2 years ago | |
---|---|---|
Daily Logs | 2 years ago | |
Koala | 2 years ago | |
Platform | 2 years ago | |
Templates | 2 years ago | |
Yiy.Cits | 3 years ago | |
docsify | 2 years ago | |
.gitignore | 3 years ago | |
README.md | 2 years ago | |
index-mermaid-native.html | 2 years ago | |
index-mermaid-plugin.html | 2 years ago | |
tex-svg-full.js | 3 years ago |
README.md
_Created_ | _Updated_ |
---|---|
2022-12-19 Mon | 2022-12-19 17:42 Mon |
日志发布管理
npm i docsify-cli -g
docsify init
docsify serve
文档配置:
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
// Import mermaid
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css">
<script src="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
var num = 0;
mermaid.initialize({ startOnLoad: false });
window.$docsify = {
name: 'XXX',
// logo: '/logo1.jpg',
repo: 'https://...',
loadSidebar: true,
alias: {
'/.*/_sidebar.md': '/_sidebar.md'
},
nativeEmoji: true,
subMaxLevel: 3,
auto2top: true,
// search: 'auto', // 默认值
markdown: {
renderer: {
text: function (text) {
if (/^==/g.test(text)) {
const escapedText = text.toLowerCase().replace(/^==|==$/g, '');
return `<mark>${escapedText}</mark>`;
}
if (/^\%{2}/gm.test(text)) {
return `<!--`;
}
if (/\%{2}$/gm.test(text)) {
return `-->`;
}
return text;
},
code: function(code, lang) {
if (lang === "mermaid") {
return (
'<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
);
}
return this.origin.code.apply(this, arguments);
}
}
},
// 完整配置参数
search0: { // seach:
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
paths: [], // or 'auto'
placeholder: '搜索',
noData: '找不到结果!',
// 搜索标题的最大层级, 1 - 6
depth: 6,
hideOtherSidebarContent: true, // 是否隐藏其他侧边栏内容
// 避免搜索索引冲突
// 同一域下的多个网站之间
namespace: 'website-1',
// 使用不同的索引作为路径前缀(namespaces)
// 注意:仅适用于 paths: 'auto' 模式
//
// 初始化索引时,我们从侧边栏查找第一个路径
// 如果它与列表中的前缀匹配,我们将切换到相应的索引
// pathNamespaces: ['/zh-cn', '/ru-ru', '/ru-ru/v1'],
// 您可以提供一个正则表达式来匹配前缀。在这种情况下,
// 匹配到的字符串将被用来识别索引
// pathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/
},
}
插件支持
...
<!-- <script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script> -->
<script src="//cdn.jsdelivr.net/npm/docsify@4.10.2/lib/docsify.min.js"></script>
<!-- <script src="//unpkg.com/mermaid/dist/mermaid.js"></script>
<script src="//unpkg.com/docsify-mermaid@latest/dist/docsify-mermaid.js"></script>
<script>mermaid.initialize({ startOnLoad: true });</script> -->
<!-- deprecated -->
<!-- <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script> -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
自定义导航
方法:
- 创建 _sidebar.md
* XX
* [XX1](xx1.md)
- 使用docsify-cli 生成:
docsify generate <path> [--sidebar _sidebar.md]
# docsify g <path> [-s _sidebar.md]
# 当前目录:
# docsify g / -s _sidebar.md