diff --git a/src/.vuepress/navbar.ts b/src/.vuepress/navbar.ts index 8b13789..8d78d1a 100644 --- a/src/.vuepress/navbar.ts +++ b/src/.vuepress/navbar.ts @@ -1 +1,17 @@ +import { navbar } from "vuepress-theme-hope"; +const NavbarConfig = navbar([ + { + text: "首页", + link: "/README.md", + icon: "home", + }, + { text: "介绍", link: "/guide/README.md", icon: "fas fa-info" }, + { + text: "部署", + link: "/deploy/README.md", + icon: "fas fa-file-alt", + }, +]); + +export default NavbarConfig \ No newline at end of file diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index bded1bf..dd32c39 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -1,5 +1,5 @@ import { hopeTheme } from "vuepress-theme-hope"; -// import navbar from "./navbar.js"; +import navbar from "./navbar.js"; import sidebar from "./sidebar.js"; export default hopeTheme({ @@ -16,7 +16,7 @@ export default hopeTheme({ docsBranch: "docs", // 导航栏 - // navbar, + navbar, // 侧边栏 sidebar, diff --git a/src/deploy/README.md b/src/deploy/README.md index b58d528..40a0cba 100644 --- a/src/deploy/README.md +++ b/src/deploy/README.md @@ -4,7 +4,7 @@ head: - name: keywords content: 即刻开始 title: 部署 -icon: docs +icon: fas fa-file-alt author: ikun0014 date: 2024-04-11 index: true diff --git a/src/deploy/deploy-linuxordarwin.md b/src/deploy/deploy-linuxordarwin.md index 5a9cc74..9c2aab1 100644 --- a/src/deploy/deploy-linuxordarwin.md +++ b/src/deploy/deploy-linuxordarwin.md @@ -4,7 +4,7 @@ head: - name: keywords content: Linux or MacOS部署教程 title: Linux or MacOS部署教程 -icon: fab fa-dochub +icon: fas fa-file-alt author: ikun0014 date: 2024-04-10 index: false diff --git a/src/deploy/deploy-windows.md b/src/deploy/deploy-windows.md index cabc70e..a3c5eee 100644 --- a/src/deploy/deploy-windows.md +++ b/src/deploy/deploy-windows.md @@ -4,7 +4,7 @@ head: - name: keywords content: Windows部署教程 title: Windows部署教程 -icon: fab fa-dochub +icon: fas fa-file-alt author: ikun0014 date: 2024-04-10 index: false diff --git a/src/guide/api/api.md b/src/guide/api/api.md index f15e4d2..53d49dc 100644 --- a/src/guide/api/api.md +++ b/src/guide/api/api.md @@ -4,7 +4,7 @@ head: - name: keywords content: API接口 title: API接口 -icon: docs +icon: fas fa-file-alt author: ikun0014 date: 2024-04-10 index: false