-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from GuoXiCheng/dev-c
Dev c
- Loading branch information
Showing
14 changed files
with
290 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import yaml from 'js-yaml'; | ||
import fs from 'fs'; | ||
import yaml from "js-yaml"; | ||
import fs from "fs"; | ||
|
||
export default function getSidebar() { | ||
return yaml.load(fs.readFileSync('src/.vitepress/sidebar.yaml', 'utf8')); | ||
} | ||
const sidebar = fs | ||
.readdirSync("src/.vitepress/sidebars") | ||
.reduce( | ||
(acc, file) => | ||
(acc += | ||
fs.readFileSync(`src/.vitepress/sidebars/${file}`, "utf8") + "\n"), | ||
"" | ||
); | ||
return yaml.load(sidebar); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/ai: | ||
- text: AI 发展历程 | ||
link: /ai/history-of-ai | ||
- text: AI 领域 | ||
link: /ai/ai-field | ||
- text: LangChain | ||
items: | ||
- text: LangChain 介绍 | ||
link: /ai/lang-chain/introduction | ||
- text: 用例 | ||
items: | ||
- text: 标记文本 | ||
link: /ai/lang-chain/use-case/tagging | ||
- text: 文档内容总结 | ||
link: /ai/lang-chain/use-case/summarization | ||
- text: LangServe | ||
items: | ||
- text: LangServe 介绍 | ||
link: /ai/lang-chain/lang-serve/introduction | ||
- text: 构建 LangServe 应用 | ||
link: /ai/lang-chain/lang-serve/build-application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/backend: | ||
- text: NodeJS | ||
link: /backend/nodejs/index | ||
items: | ||
- text: 关于 NodeJS | ||
link: /backend/nodejs/about-nodejs | ||
- text: EventEmitter | ||
link: /backend/nodejs/event-emitter | ||
- text: File System | ||
link: /backend/nodejs/file-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/cloud-native: | ||
- text: docker | ||
items: | ||
- text: docker 的架构 | ||
link: /cloud-native/docker/docker-architecture | ||
- text: docker 的镜像结构 | ||
link: /cloud-native/docker/docker-image-structure | ||
- text: 安装 docker | ||
link: /cloud-native/docker/install-docker | ||
- text: docker 基本使用命令 | ||
link: /cloud-native/docker/basic-commands | ||
- text: 构建 docker 镜像 | ||
link: /cloud-native/docker/build-docker-image |
Oops, something went wrong.