Skip to content

Commit ba99ede

Browse files
committed
优化目录格式
1 parent 7bff30b commit ba99ede

2 files changed

Lines changed: 23 additions & 38 deletions

File tree

docs/_sidebar.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
- 目录
22
- 第一章 解锁RAG
3-
- 第一节 [RAG简介](chapter1/01_RAG_intro.md)
4-
- 第二节 [准备工作](chapter1/02_preparation.md)
5-
- 第三节 [四步构建RAG](chapter1/03_get_start_rag.md)
3+
- [第一节 RAG简介](chapter1/01_RAG_intro.md)
4+
- [第二节 准备工作](chapter1/02_preparation.md)
5+
- [第三节 四步构建RAG](chapter1/03_get_start_rag.md)
66
- 第二章 数据准备
7-
- 第一节 [数据加载](chapter2/04_data_load.md)
8-
- 第二节 [文本分块](chapter2/05_text_chunking.md)
7+
- [第一节 数据加载](chapter2/04_data_load.md)
8+
- [第二节 文本分块](chapter2/05_text_chunking.md)
99
- 第三章 索引构建
10-
- 第一节 [向量嵌入](chapter3/06_vector_embedding.md)
11-
- 第二节 [多模态嵌入](chapter3/07_multimodal_embedding.md)
12-
- 第三节 [向量数据库](chapter3/08_vector_db.md)
13-
- 第四节 [Milvus实践](chapter3/09_milvus.md)
14-
- 第五节 [索引优化](chapter3/10_index_optimization.md)
10+
- [第一节 向量嵌入](chapter3/06_vector_embedding.md)
11+
- [第二节 多模态嵌入](chapter3/07_multimodal_embedding.md)
12+
- [第三节 向量数据库](chapter3/08_vector_db.md)
13+
- [第四节 Milvus实践](chapter3/09_milvus.md)
14+
- [第五节 索引优化](chapter3/10_index_optimization.md)
1515
- 第四章 检索优化
16-
- 第一节 [混合检索](chapter4/11_hybrid_search.md)
17-
- 第二节 [查询构建](chapter4/12_query_construction.md)
18-
- 第三节 [Text2SQL](chapter4/13_text2sql.md)
19-
- 第四节 [查询重构与分发](chapter4/14_query_rewriting.md)
20-
- 第五节 [检索进阶技术](chapter4/15_advanced_retrieval_techniques.md)
16+
- [第一节 混合检索](chapter4/11_hybrid_search.md)
17+
- [第二节 查询构建](chapter4/12_query_construction.md)
18+
- [第三节 Text2SQL](chapter4/13_text2sql.md)
19+
- [第四节 查询重构与分发](chapter4/14_query_rewriting.md)
20+
- [第五节 检索进阶技术](chapter4/15_advanced_retrieval_techniques.md)
2121
- 第五章 生成集成
22-
- 第一节 [格式化生成](chapter5/16_formatted_generation.md)
22+
- [第一节 格式化生成](chapter5/16_formatted_generation.md)
2323
- 第六章 RAG系统评估
24-
- 第一节 [评估介绍](chapter6/18_system_evaluation.md)
25-
- 第二节 [评估工具](chapter6/19_common_tools.md)
24+
- [第一节 评估介绍](chapter6/18_system_evaluation.md)
25+
- [第二节 评估工具](chapter6/19_common_tools.md)
2626
- 第七章 高级RAG架构(拓展选修篇)
2727
- 第八章 项目实战一(基础篇)
2828
- [环境配置与项目架构](chapter8/01_env_architecture.md)

docs/index.html

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,7 @@
8080
color: 'rgb(90,90,90)',
8181
language: 'chinese'
8282
},
83-
markdown: {
84-
renderer: {
85-
code: function(code, lang) {
86-
if (lang === "mermaid") {
87-
return '<div class="mermaid">' + code + '</div>';
88-
}
89-
return this.origin.code.apply(this, arguments);
90-
}
91-
}
92-
},
83+
9384
plugins: [
9485
function(hook, vm) {
9586
hook.beforeEach(function (html) {
@@ -98,16 +89,6 @@
9889
html = html.replace(/^\[\^([^\]]+)\]:\s*(.+)$/gm, '<div class="footnote" id="fn-$1"><p>$2 <a href="#fnref-$1">↩</a></p></div>');
9990
return html;
10091
});
101-
hook.ready(function() {
102-
mermaid.initialize({
103-
startOnLoad: false,
104-
theme: 'default',
105-
securityLevel: 'loose'
106-
});
107-
});
108-
hook.doneEach(function() {
109-
mermaid.init(undefined, '.mermaid');
110-
});
11192
}
11293
]
11394
}
@@ -129,6 +110,10 @@
129110
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
130111
<!-- 字数统计 -->
131112
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
113+
<!-- Mermaid -->
114+
<script src="//cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
115+
<script src="//unpkg.com/docsify-mermaid@latest/dist/docsify-mermaid.js"></script>
116+
<script>mermaid.initialize({ startOnLoad: true });</script>
132117

133118
</body>
134119

0 commit comments

Comments
 (0)