Skip to content

Commit 28a3f2a

Browse files
committed
add toc for posts
1 parent 22a8d2c commit 28a3f2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+148
-17
lines changed

deno.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"imports": {
2323
"fs": "https://deno.land/[email protected]/fs/mod.ts",
2424
"type-mdast": "https://cdn.jsdelivr.net/npm/@types/[email protected]/index.d.ts",
25-
"unified": "https://esm.sh/[email protected]",
25+
"unified": "https://esm.sh/[email protected]",
26+
"unified/index.d.ts": "https://esm.sh/[email protected]/index.d.ts",
2627
"unist-util-visit": "https://esm.sh/[email protected]",
2728
"remark-parse": "https://esm.sh/[email protected]",
2829
"remark-rehype": "https://esm.sh/[email protected]",

public/css/markdown.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,21 @@ p>img:only-child {
153153
font-weight: 800;
154154
font-size: 1.2rem;
155155
}
156+
}
157+
158+
.remark-toc-details {
159+
padding-block: 1rem;
160+
}
161+
162+
.remark-toc-name {
163+
font-weight: 800;
164+
font-size: 1.2rem;
165+
}
166+
167+
.remark-toc :where(ul, li) {
168+
list-style: inside;
169+
}
170+
171+
.remark-toc p {
172+
margin-block: 0.4rem;
156173
}

src/posts/Candlestick_chart.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tags:
88
summary: 蜡烛图中反转形态的分析
99
---
1010

11+
[TOC]
12+
1113
## 为什么要写这篇文章?
1214

1315
> 首先感谢一位炒美股的朋友 Jenny,是她带我认识了一点经济学的知识,让我对经济学有了些许兴趣。

src/posts/Candlestick_chart_two.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tags:
88
summary: 蜡烛图中持续形态以及十字线分析
99
---
1010

11+
[TOC]
12+
1113
## 持续形态
1214

1315
绝大多数蜡烛线形态都属于趋势反转信号,但是还有一群蜡烛图构成了持续性的技术指标。所谓持续性形态,意味着形态完成后,市场仍回复先前的趋势。举例:如果在上涨行情之后出现了持续形态,那么我们预期上涨的行情仍然发挥作用。

src/posts/Docker.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tags:
88
summary: Docker 的简单应用
99
---
1010

11+
[TOC]
12+
1113
## Docker 的基本组成
1214

1315
1. 镜像时一种轻量级,可执行的独立软件包,用来打包软件运行环境和基于运行环境开发的软件,它包含运行某个软件所需的所有内容,包括代码,环境运行时,库,环境变量等

src/posts/ESLint.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
summary: 使用 ESlint 规范项目
1010
---
1111

12+
[TOC]
13+
1214
> 以下以 `nuxt3` 集成 ESlint 举例
1315
1416
- `npx nuxi init nuxt-app`:首先得初始化一个 nuxt3 的项目

src/posts/Functal.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tags:
88
summary: JavaScript 中的函数柯里化、偏函数以及惰性函数
99
---
1010

11+
[TOC]
12+
1113
## 柯里化
1214

1315
> [!NOTE]

src/posts/Git_branch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ tags:
77
summary: Git 分支原理
88
---
99

10+
[TOC]
11+
1012
## 分支
1113

1214
> [!NOTE]

src/posts/Git_issues_collection.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ tags:
77
summary: 收集一些关于开发中遇到的 Git 问题
88
---
99

10+
[TOC]
11+
1012
## Git 问题收集
1113

1214
> [!NOTE]

src/posts/Git_object.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ tags:
77
summary: Git 对象原理剖析
88
---
99

10+
[TOC]
11+
1012
## 初始化 git
1113

1214
- git init:初始化本地 git 仓库

0 commit comments

Comments
 (0)