From 957cd0ef36ee3566ef694538ab06046415648ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=95=8F?= Date: Wed, 17 Jan 2024 23:09:51 +0800 Subject: [PATCH] add navbar config add navbar config --- docs/.vuepress/config.ts | 4 +- docs/.vuepress/configs/navbar/zh.ts | 30 +++++++++++++- docs/.vuepress/configs/sidebar/zh.ts | 41 +++++++++++++++++- docs/README.md | 62 +--------------------------- docs/coding/docker/info.md | 1 + docs/coding/kubernetes/info.md | 1 + docs/coding/linux/command.md | 1 + docs/coding/linux/info.md | 1 + docs/coding/prometheus/info.md | 1 + 9 files changed, 77 insertions(+), 65 deletions(-) create mode 100644 docs/coding/docker/info.md create mode 100644 docs/coding/kubernetes/info.md create mode 100644 docs/coding/linux/command.md create mode 100644 docs/coding/linux/info.md create mode 100644 docs/coding/prometheus/info.md diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 627977d..d0dae2c 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -16,8 +16,8 @@ export default defineUserConfig({ locales: { '/': { lang: 'zh-CN', - title: '冒险者', - description: '没有什么不可以', + title: 'coder', + description: 'coding everything', } }, theme: defaultTheme({ diff --git a/docs/.vuepress/configs/navbar/zh.ts b/docs/.vuepress/configs/navbar/zh.ts index ae6ae07..f42d544 100644 --- a/docs/.vuepress/configs/navbar/zh.ts +++ b/docs/.vuepress/configs/navbar/zh.ts @@ -1,5 +1,5 @@ import type { NavbarConfig } from 'vuepress' - +// 顶部导航栏 export const navbarZh: NavbarConfig = [ { text: 'Java', @@ -12,6 +12,34 @@ export const navbarZh: NavbarConfig = [ '/coding/other/float.md' ] }, + { + text: 'DevOps', + children: [ + { + text: 'Linux系列', + children: [ + ], + }, + { + text: 'Docker系列', + children: [ + '/coding/docker/info.md' + ], + }, + { + text: 'Kubernetes系列', + children: [ + '/coding/kubernetes/info.md' + ], + }, + { + text: 'Prometheus系列', + children: [ + '/coding/prometheus/info.md' + ], + }, + ] + }, { text: '读书笔记', children: [ diff --git a/docs/.vuepress/configs/sidebar/zh.ts b/docs/.vuepress/configs/sidebar/zh.ts index abb83ed..a9b3195 100644 --- a/docs/.vuepress/configs/sidebar/zh.ts +++ b/docs/.vuepress/configs/sidebar/zh.ts @@ -1,7 +1,7 @@ import type { SidebarConfig } from 'vuepress' - +// 左侧菜单 export const sidebarZh: SidebarConfig = { - '/coding/': [ + '/coding/java/': [ { text: 'Java系列', collapsible:true, @@ -36,6 +36,43 @@ export const sidebarZh: SidebarConfig = { ] } ], + '/coding/linux/': [ + { + text: 'Linux系列', + collapsible:false, + children: [ + '/coding/linux/info.md', + '/coding/linux/command.md', + ] + }, + ], + '/coding/docker/': [ + { + text: 'Docker系列', + collapsible:false, + children: [ + '/coding/docker/info.md', + ] + }, + ], + '/coding/kubernetes/': [ + { + text: 'Kubernetes系列', + collapsible:false, + children: [ + '/coding/kubernetes/info.md', + ] + }, + ], + '/coding/prometheus/': [ + { + text: 'Prometheus系列', + collapsible:false, + children: [ + '/coding/prometheus/info.md', + ] + }, + ], '/book/': [ { text: '技术类书籍', diff --git a/docs/README.md b/docs/README.md index d019391..224cd8d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,8 +2,8 @@ home: true title: 首页 heroImage: /images/hero.png -heroText: 知识的冒险者 -tagline: 没有什么不可以 +heroText: 多编码,多思考 +tagline: 80 岁见 actions: - text: 马上开刷 link: /coding/java/base.html @@ -23,61 +23,3 @@ features: details: 默认的打包工具是 Vite ,也同样支持 Webpack 。选一个你喜欢的来使用吧! footer: MIT Licensed | Copyright © 2023-present wu-min --- - -### 像数 1, 2, 3 一样容易 - - - - -```bash -# 在你的项目中安装 -pnpm add -D vuepress@next @vuepress/client@next vue - -# 新建一个 markdown 文件 -echo '# Hello VuePress' > README.md - -# 开始写作 -pnpm vuepress dev - -# 构建静态文件 -pnpm vuepress build -``` - - - - - -```bash -# 在你的项目中安装 -yarn add -D vuepress@next - -# 新建一个 markdown 文件 -echo '# Hello VuePress' > README.md - -# 开始写作 -yarn vuepress dev - -# 构建静态文件 -yarn vuepress build -``` - - - - - -```bash -# 在你的项目中安装 -npm install -D vuepress@next - -# 新建一个 markdown 文件 -echo '# Hello VuePress' > README.md - -# 开始写作 -npx vuepress dev - -# 构建静态文件 -npx vuepress build -``` - - - diff --git a/docs/coding/docker/info.md b/docs/coding/docker/info.md new file mode 100644 index 0000000..334cb27 --- /dev/null +++ b/docs/coding/docker/info.md @@ -0,0 +1 @@ +# 入门 \ No newline at end of file diff --git a/docs/coding/kubernetes/info.md b/docs/coding/kubernetes/info.md new file mode 100644 index 0000000..334cb27 --- /dev/null +++ b/docs/coding/kubernetes/info.md @@ -0,0 +1 @@ +# 入门 \ No newline at end of file diff --git a/docs/coding/linux/command.md b/docs/coding/linux/command.md new file mode 100644 index 0000000..b0bc132 --- /dev/null +++ b/docs/coding/linux/command.md @@ -0,0 +1 @@ +# 命令行 \ No newline at end of file diff --git a/docs/coding/linux/info.md b/docs/coding/linux/info.md new file mode 100644 index 0000000..334cb27 --- /dev/null +++ b/docs/coding/linux/info.md @@ -0,0 +1 @@ +# 入门 \ No newline at end of file diff --git a/docs/coding/prometheus/info.md b/docs/coding/prometheus/info.md new file mode 100644 index 0000000..334cb27 --- /dev/null +++ b/docs/coding/prometheus/info.md @@ -0,0 +1 @@ +# 入门 \ No newline at end of file