Skip to content

Commit 02a8b2b

Browse files
committed
upgrade to markdown-it-mathjax
1 parent 06710de commit 02a8b2b

25 files changed

+317
-50
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docs/intro.md
1+
docs/chapters/intro.md

docs/.vitepress/config.js

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,36 @@ module.exports = {
22
title: '编程导引',
33
themeConfig: {
44
nav: [
5-
{text: "编程导引", link: '/intro'},
5+
{text: "编程导引", link: '/chapters/intro'},
6+
{text: "参考", link: '/reference/glossary'},
67
],
78

8-
sidebar: [
9-
{ text: "引言", link: "/intro" },
10-
{ text: "环境", link: '/ch01_environment' },
11-
{ text: "计算", link: '/ch02_computation' },
12-
{ text: "过程", link: '/ch03_procedure' },
13-
{ text: "编码", link: '/ch04_encoding' },
14-
{ text: "序列", link: '/ch05_sequence' },
15-
{ text: "数据", link: '/ch06_data' },
16-
{ text: "状态", link: '/ch07_state' },
17-
{ text: "引用", link: '/ch08_reference' },
18-
{ text: "闭包", link: '/ch09_closure' },
19-
{ text: "对象", link: '/ch10_object' },
20-
{ text: "并发", link: '/ch11_concurrency' },
21-
],
9+
sidebar: {
10+
"/chapters/": [
11+
{ text: "引言", link: "/chapters/intro" },
12+
{ text: "环境", link: '/chapters/ch01_environment' },
13+
{ text: "计算", link: '/chapters/ch02_computation' },
14+
{ text: "过程", link: '/chapters/ch03_procedure' },
15+
{ text: "编码", link: '/chapters/ch04_encoding' },
16+
{ text: "序列", link: '/chapters/ch05_sequence' },
17+
{ text: "数据", link: '/chapters/ch06_data' },
18+
{ text: "状态", link: '/chapters/ch07_state' },
19+
{ text: "引用", link: '/chapters/ch08_reference' },
20+
{ text: "闭包", link: '/chapters/ch09_closure' },
21+
{ text: "对象", link: '/chapters/ch10_object' },
22+
{ text: "并发", link: '/chapters/ch11_concurrency' }
23+
],
24+
"/reference/": [
25+
{ text: "概念解释", link: "/reference/glossary"}
26+
]
27+
},
2228
footer: {
2329
copyright: "CC-BY 4.0 Licensed | Copyright © 2015-present Kimmy Leo"
2430
},
2531
},
2632

2733
markdown: {
28-
config: (md) => {
29-
md.use(require('markdown-it-katex'))
30-
}
34+
math: true
3135
},
3236

3337

@@ -45,13 +49,6 @@ var _hmt = _hmt || [];
4549
s.parentNode.insertBefore(hm, s);
4650
})();
4751
`
48-
],
49-
[
50-
"link",
51-
{
52-
"rel": "stylesheet",
53-
"href": "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css"
54-
}
5552
]
5653
]
5754
}

docs/.vitepress/draft/draft.md

Whitespace-only changes.

docs/GLOSSARY.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/SUMMARY.md

Lines changed: 0 additions & 14 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/ch05_sequence.md renamed to docs/chapters/ch05_sequence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ content.length // 6
103103

104104
就像这张图片描述的:
105105

106-
![list](./res/images/cons-cells.png)
106+
![list](../res/images/cons-cells.png)
107107

108108
这种结构被称为链接列表(也叫链表,Linked List)在上世纪五十年代就已经设计用于实际的程序。链表这种结构非常的灵活,可以很轻松的在任意位置添加或者删除数据。因为并不需要内存结构上的连续,所有的位序关系都是靠前一个元素和后一个元素之间的链接关系来确定,而添加或者删除数据只要改变一下这种链接关系就可以了。
109109

0 commit comments

Comments
 (0)