From 7deaef920dd03462bc4168f94e1d89e46dae21b5 Mon Sep 17 00:00:00 2001 From: Hintay Date: Sun, 7 May 2023 03:14:53 +0800 Subject: [PATCH] refactor: more user-friendly documents --- .github/workflows/documents.yml | 2 +- docs/.vitepress/config/en.ts | 21 ++- docs/.vitepress/config/zh_CN.ts | 21 ++- docs/guide/about.md | 43 ++++-- docs/guide/build.md | 37 ++++++ docs/guide/config-server.md | 4 +- docs/guide/getting-started.md | 161 +++++++++-------------- docs/guide/install-script-linux.md | 114 ++++++++++++++++ docs/guide/project-structure.md | 87 ++++++++++++ docs/zh_CN/guide/about.md | 31 +++-- docs/zh_CN/guide/build.md | 37 ++++++ docs/zh_CN/guide/config-server.md | 8 +- docs/zh_CN/guide/getting-started.md | 159 ++++++++-------------- docs/zh_CN/guide/install-script-linux.md | 109 +++++++++++++++ docs/zh_CN/guide/nginx-proxy-example.md | 2 +- docs/zh_CN/guide/project-structure.md | 86 ++++++++++++ 16 files changed, 681 insertions(+), 241 deletions(-) create mode 100644 docs/guide/build.md create mode 100644 docs/guide/install-script-linux.md create mode 100644 docs/guide/project-structure.md create mode 100644 docs/zh_CN/guide/build.md create mode 100644 docs/zh_CN/guide/install-script-linux.md create mode 100644 docs/zh_CN/guide/project-structure.md diff --git a/.github/workflows/documents.yml b/.github/workflows/documents.yml index a97175ea..48b2e1e1 100644 --- a/.github/workflows/documents.yml +++ b/.github/workflows/documents.yml @@ -1,4 +1,4 @@ -name: Build +name: Build Documents on: push: diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index ca571386..f78ea185 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -17,9 +17,16 @@ export const enConfig: LocaleSpecificConfig = { items: [ {text: 'What is Nginx UI?', link: '/guide/about'}, {text: 'Getting Started', link: '/guide/getting-started'}, - {text: 'Nginx Proxy Example', link: '/guide/nginx-proxy-example'}, - {text: 'Contributing', link: '/guide/contributing'}, - {text: 'License', link: '/guide/license'} + {text: 'Install Script', link: '/guide/install-script-linux'} + ] + }, + { + text: 'Development', + collapsed: false, + items: [ + {text: 'Build', link: '/guide/build'}, + {text: 'Project Structure', link: '/guide/project-structure'}, + {text: 'Contributing', link: '/guide/contributing'} ] }, { @@ -30,6 +37,14 @@ export const enConfig: LocaleSpecificConfig = { {text: 'Nginx Log', link: '/guide/config-nginx-log'}, {text: 'Open AI', link: '/guide/config-openai'} ] + }, + { + text: 'Appendix', + collapsed: false, + items: [ + {text: 'Nginx Proxy Example', link: '/guide/nginx-proxy-example'}, + {text: 'License', link: '/guide/license'} + ] } ], }, diff --git a/docs/.vitepress/config/zh_CN.ts b/docs/.vitepress/config/zh_CN.ts index 89e5a4a5..cf010ff2 100644 --- a/docs/.vitepress/config/zh_CN.ts +++ b/docs/.vitepress/config/zh_CN.ts @@ -22,9 +22,16 @@ export const zhCNConfig: LocaleSpecificConfig = { items: [ {text: '何为 Nginx UI?', link: '/zh_CN/guide/about'}, {text: '即刻开始', link: '/zh_CN/guide/getting-started'}, - {text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'}, - {text: '贡献代码', link: '/zh_CN/guide/contributing'}, - {text: '开源协议', link: '/zh_CN/guide/license'} + {text: '安装脚本', link: '/zh_CN/guide/install-script-linux'} + ] + }, + { + text: '开发', + collapsed: false, + items: [ + {text: '构建', link: '/zh_CN/guide/build'}, + {text: '目录结构', link: '/zh_CN/guide/project-structure'}, + {text: '贡献代码', link: '/zh_CN/guide/contributing'} ] }, { @@ -35,6 +42,14 @@ export const zhCNConfig: LocaleSpecificConfig = { {text: 'Nginx 日志', link: '/zh_CN/guide/config-nginx-log'}, {text: 'Open AI', link: '/zh_CN/guide/config-openai'} ] + }, + { + text: '附录', + collapsed: false, + items: [ + {text: 'Nginx 代理示例', link: '/zh_CN/guide/nginx-proxy-example'}, + {text: '开源协议', link: '/zh_CN/guide/license'} + ] } ] }, diff --git a/docs/guide/about.md b/docs/guide/about.md index 1f37760f..cadbbed8 100644 --- a/docs/guide/about.md +++ b/docs/guide/about.md @@ -1,5 +1,7 @@