From c878525797115f2fe0bee0bbe2f2c0bb1d1ada64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=AF=E6=85=95=E7=81=B5?= <1985312383@qq.com> Date: Thu, 8 Feb 2024 02:04:32 +0800 Subject: [PATCH] Update config.js --- docs/.vuepress/config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 8865c3f..1804786 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -5,5 +5,24 @@ import { defineUserConfig } from 'vuepress' export default defineUserConfig({ bundler: viteBundler(), theme: defaultTheme(), + base: '/RecommendSystemNotes/', + themeConfig: { + // 添加导航栏 + nav: [ + { text: 'vue', link: '/' }, + { text: 'css', link: '/blog/' }, + { text: 'js', link: '/zhihu/' }, + { + text: 'github', + // 这里是下拉列表展现形式。 + items: [ + { text: 'focus-outside', link: 'https://github.com/txs1992/focus-outside' }, + { text: 'stylus-converter', link: 'https://github.com/txs1992/stylus-converter' } + ] + } + ], + // 为以下路由添加侧边栏 + sidebar: ['/', '/git', '/vue'] + }, })