Skip to content

Commit ea3e535

Browse files
committed
Merge branch 'main' of github.com:Open-DataFlow/DataFlow-Doc
2 parents d95ec4e + 864039c commit ea3e535

Some content is hidden

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

46 files changed

+566
-1006
lines changed

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# data-flow-doc
22

3-
The Site is generated using [vuepress](https://vuepress.vuejs.org/) and [vuepress-theme-plume](https://github.com/pengzhanbo/vuepress-theme-plume)
3+
这个是[https://github.com/Open-DataFlow/DataFlow](https://github.com/Open-DataFlow/DataFlow)的文档。
4+
45

56
## Install
67

@@ -11,30 +12,27 @@ npm i
1112
## Usage
1213

1314
```sh
14-
# start dev server
15+
# start dev server 一般用这个,可以动态热渲染所有markdown的修改
1516
npm run docs:dev
16-
# build for production
17+
# build for production 这个主要是上传github之前测试下有无bug,有bug的话github无法渲染page的。
1718
npm run docs:build
18-
# preview production build in local
19-
npm run docs:preview
20-
# update vuepress and theme
21-
npm run vp-update
2219
```
2320

24-
## Deploy to GitHub Pages
25-
26-
The plume theme has been created with GitHub Actions: `.github/workflows/docs-deploy.yml`. You also need to make the following settings in the GitHub repository:
27-
28-
- [ ] `settings > Actions > General`, Scroll to the bottom of the page, under `Workflow permissions`, check `Read and write permissions`, and click the save button.
21+
## 基本开发结构介绍:
22+
基本都是一式两份,英语一份,汉语一份。
2923

30-
- [ ] `settings > Pages`, In `Build and deployment`, select `Deploy from a branch` for `Source`, choose `gh-pages` for `Branch`, and click the save button.
31-
(The `gh-pages` branch may not exist upon first creation. You can complete the above setup first, push the code to the main branch, wait for `github actions` to finish, and then proceed with the setup.)
24+
上方的导航栏配置主要在这个文件夹下:[navbars](./docs/.vuepress/navbars/)
25+
各个文章的侧边栏主要是在这个文件夹下配置[sidebar](./docs/.vuepress/notes/),可以手动可以自动,参考模板文档的[Sidebar配置](https://theme-plume.vuejs.press/config/theme/#sidebar)
3226

33-
- [ ] Modify the `base` option in `docs/.vuepress/config.ts`:
34-
- If you are planning to deploy to `https://<USERNAME>.github.io/`, you can skip this step as `base` defaults to `"/"`.
35-
- If you are planning to deploy to `https://<USERNAME>.github.io/<REPO>/`, meaning your repository URL is `https://github.com/<USERNAME>/<REPO>`, set `base` to `"/<REPO>/"`.
36-
37-
To customize a domain name, please refer to [Github Pages](https://docs.github.com/zh/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages)
27+
如果开启了`npm run docs:dev`,在新建markdown的时候,会在markdown头部有一些配置前缀,这里简要介绍下:
28+
```yaml
29+
---
30+
title: 框架设计 # 这个标题会用来作为sidebar的标题
31+
createTime: 2025/06/13 14:59:56 # 不太重要
32+
icon: material-symbols:deployed-code-outline # 可选,侧边栏展示时的小logo
33+
permalink: /zh/guide/framework/ # 这个自动生成的是8位码,可以自行修改以简明展示,注意不能和现有的其他md的路径重复。
34+
---
35+
```
3836

3937
## Documents
4038

docs/.vuepress/navbar.ts

Lines changed: 0 additions & 80 deletions
This file was deleted.

docs/.vuepress/navbars/en/index.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* @see https://theme-plume.vuejs.press/config/navigation/ 查看文档了解配置详情
3+
*
4+
* Navbar 配置文件,它在 `.vuepress/plume.config.ts` 中被导入。
5+
*/
6+
7+
import { defineNavbarConfig } from 'vuepress-theme-plume'
8+
9+
export const enNavbar = defineNavbarConfig([
10+
// { text: 'Home', link: '/' },
11+
// { text: 'Blog', link: '/blog/' },
12+
// { text: 'Tags', link: '/blog/tags/' },
13+
// { text: 'Archives', link: '/blog/archives/' },
14+
{
15+
text: 'Guide',
16+
// link: '/en/guide/',
17+
icon: 'icon-park-outline:guide-board',
18+
items: [
19+
{
20+
text: 'Installation',
21+
link: '/en/note/guide/quickstart/install.md',
22+
icon: 'material-symbols-light:download-rounded'
23+
},
24+
]
25+
},
26+
{
27+
text: 'API Reference',
28+
link: '/en/blog/',
29+
icon: 'material-symbols:article-outline'
30+
},
31+
{
32+
text: 'Developer Guide',
33+
items: [
34+
{ text: "logging", link: '/en/dev_guide/logging.md' },
35+
{ text: "testcase", link: '/en/dev_guide/testcase.md' },
36+
]
37+
},
38+
{
39+
text: 'Notes',
40+
items: [
41+
{ text: 'Demo', link: '/en/notes/demo/README.md' }
42+
]
43+
},
44+
])

docs/.vuepress/navbars/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './en/index.js'
2+
export * from './zh/index.js'

docs/.vuepress/navbars/zh/index.ts

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/**
2+
* @see https://theme-plume.vuejs.press/config/navigation/ 查看文档了解配置详情
3+
*
4+
* Navbar 配置文件,它在 `.vuepress/plume.config.ts` 中被导入。
5+
*/
6+
7+
import { defineNavbarConfig } from 'vuepress-theme-plume'
8+
9+
export const zhNavbar = defineNavbarConfig([
10+
// { text: '首页', link: '/zh/' },
11+
// { text: '博客', link: '/zh/blog/' },
12+
// { text: '标签', link: '/zh/blog/tags/' },
13+
// { text: '归档', link: '/zh/blog/archives/' },
14+
{
15+
text: '指南',
16+
// link: '/zh/guide/',
17+
icon: 'icon-park-outline:guide-board',
18+
items: [
19+
20+
{
21+
text: '基本信息',
22+
items: [
23+
{
24+
text: '简介',
25+
link: '/zh/notes/guide/basicinfo/intro.md',
26+
icon: 'material-symbols-light:download-rounded',
27+
activeMatch: '^/guide/'
28+
},
29+
{
30+
text: '框架设计',
31+
link: '/zh/notes/guide/basicinfo/framework.md',
32+
icon: 'material-symbols-light:download-rounded',
33+
activeMatch: '^/guide/'
34+
},
35+
]
36+
},
37+
{
38+
text: '快速开始',
39+
items: [
40+
{
41+
text: '安装',
42+
link: '/zh/notes/guide/quickstart/install.md',
43+
icon: 'material-symbols-light:download-rounded',
44+
activeMatch: '^/guide/'
45+
},
46+
]
47+
},
48+
49+
50+
]
51+
},
52+
{
53+
text: 'API 文档',
54+
link: '/zh/notes/api/1.home.md',
55+
icon: 'material-symbols:article-outline'
56+
},
57+
{
58+
text: '开发者指南',
59+
// items: [
60+
// { text: "PR规范", link: '/zh/notes/dev_guide/pull_request.md' },
61+
// { text: "日志", link: '/zh/notes/dev_guide/logging.md' },
62+
// { text: "测试用例", link: '/zh/notes/dev_guide/testcase.md' },
63+
// ]
64+
link: '/zh/notes/dev_guide/1.index_guide.md',
65+
},
66+
// {
67+
// text: '笔记',
68+
// items: [{ text: '示例', link: '/zh/notes/demo/README.md' }]
69+
// },
70+
])
71+

docs/.vuepress/notes.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

docs/.vuepress/notes/en/guide.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import type { ThemeNote } from 'vuepress-theme-plume'
2+
import { defineNoteConfig } from 'vuepress-theme-plume'
3+
4+
export const Guide: ThemeNote = defineNoteConfig({
5+
dir: 'guide',
6+
link: '/guide/',
7+
sidebar: [
8+
{
9+
text: 'Quick Start',
10+
collapsed: false,
11+
icon: 'carbon:idea',
12+
prefix: 'quickstart',
13+
items: [
14+
'install',
15+
// 'usage',
16+
// 'project-structure',
17+
// 'write',
18+
// 'blog',
19+
// 'document',
20+
// 'international',
21+
// 'deployment',
22+
// 'optimize-build',
23+
],
24+
},
25+
{
26+
text: 'Write',
27+
icon: 'fluent-mdl2:edit-create',
28+
collapsed: false,
29+
items: [
30+
{
31+
text: 'markdown',
32+
icon: 'material-symbols:markdown-outline',
33+
prefix: 'markdown',
34+
collapsed: true,
35+
items: [
36+
'basic',
37+
'extensions',
38+
'icons',
39+
'mark',
40+
'plot',
41+
'abbr',
42+
'annotation',
43+
'card',
44+
'steps',
45+
'file-tree',
46+
'tabs',
47+
'timeline',
48+
'demo-wrapper',
49+
'collapse',
50+
'npm-to',
51+
'caniuse',
52+
'include',
53+
],
54+
},
55+
],
56+
},
57+
{
58+
text: 'Customization',
59+
icon: 'material-symbols:dashboard-customize-outline-rounded',
60+
collapsed: false,
61+
prefix: 'custom',
62+
items: [
63+
'home',
64+
'style',
65+
],
66+
},
67+
],
68+
})

0 commit comments

Comments
 (0)