Skip to content

Commit

Permalink
fix: catalog error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun-ZhenXing committed Mar 3, 2024
1 parent 8461159 commit f5005f3
Show file tree
Hide file tree
Showing 20 changed files with 82 additions and 17 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"katex": "^0.16.9",
"lint-staged": "^15.2.2",
"markmap-lib": "^0.16.0",
"markmap-toolbar": "^0.16.0",
"markmap-view": "^0.16.0",
"mermaid": "^10.8.0",
"remarkable-katex": "^1.2.1",
"reveal.js": "^5.0.5",
Expand Down
26 changes: 22 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/.vuepress/sidebar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { sidebar } from 'vuepress-theme-hope'

export const Sidebar = sidebar({
'/': [
'/posts/meta',
'/posts/meta/',
'/slides',
'/posts/intro',
],
Expand Down
50 changes: 39 additions & 11 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { hopeTheme } from 'vuepress-theme-hope'

import { projects } from './extend/'
import { Navbar } from './navbar/index.js'
import { Sidebar } from './sidebar/index.js'
import { Navbar } from './navbar'
import { Sidebar } from './sidebar'

export default hopeTheme({
author: {
name: '鸭梨',
url: 'https://github.com/Sun-ZhenXing',
name: 'Alex Sun',
url: 'https://blog.alexsun.top/',
},
blog: {
description: '鸭梨的博客',
Expand Down Expand Up @@ -80,6 +80,7 @@ export default hopeTheme({

plugins: {
blog: true,
catalog: {},
copyCode: {
showInMobile: true,
},
Expand Down Expand Up @@ -137,28 +138,50 @@ export default hopeTheme({
},

mdEnhance: {
// GFM 警告
alert: true,
// 自定义对齐
align: true,
// 属性
attrs: true,
// Chart 图表
chart: false,
// 代码组
codetabs: true,
demo: false,
// 组件
component: true,
// 代码示例
demo: true,
// Echarts 图表
echarts: true,
// figure
figure: true,
flowchart: false,
footnote: true,
// 流程图
flowchart: true,
// GFM 语法
gfm: true,
hint: true,
// 图片懒加载
imgLazyload: true,
// 图片标记
imgMark: true,
// 图片大小
imgSize: true,
// 包含文件
include: true,
// KaTeX 数学公式
katex: {
// 支持复制公式
copy: true,
},
// 标注
mark: true,
// Markmap
markmap: true,
// Mermaid
mermaid: true,
revealJs: {
plugins: ['highlight', 'math', 'search', 'notes', 'zoom'],
},
// 幻灯片
revealJs: true,
// 风格化
stylize: [
{
matcher: /@note:.+/,
Expand Down Expand Up @@ -209,10 +232,15 @@ export default hopeTheme({
},
},
],
// 下标
sub: true,
// 上标
sup: true,
// 标签页分组
tabs: true,
// v-pre 容器
vPre: true,
// Vue Playground
vuePlayground: true,
},
pwa: {
Expand Down
4 changes: 3 additions & 1 deletion src/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ sticky: 50
---

```component Catalog
base: /
{
"base": "/"
}
```
1 change: 1 addition & 0 deletions src/posts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/ai/chatgpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/ai/linear-algebra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/ai/machine-learning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/ai/probability-and-statistics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/computer-core/500-lines-or-less/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/computer-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/computer-core/collections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/computer-core/csapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/data-analysis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/envs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/frontend/vue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ index: false
---

```component Catalog
{}
```
1 change: 1 addition & 0 deletions src/posts/ideas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ index: false
---

```component Catalog
{}
```

0 comments on commit f5005f3

Please sign in to comment.