From 8e6b1f6fc632c1c55b38f992fe0f256c5f5f329e Mon Sep 17 00:00:00 2001 From: gbr Date: Fri, 27 Sep 2024 10:14:17 +0800 Subject: [PATCH] 1 --- .gitignore | 1 - .vitepress/config.mts | 28 ++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .vitepress/config.mts diff --git a/.gitignore b/.gitignore index 104eb01..fd72422 100644 --- a/.gitignore +++ b/.gitignore @@ -129,4 +129,3 @@ dist .yarn/install-state.gz .pnp.* -.vitepress diff --git a/.vitepress/config.mts b/.vitepress/config.mts new file mode 100644 index 0000000..7a6d30a --- /dev/null +++ b/.vitepress/config.mts @@ -0,0 +1,28 @@ +import { defineConfig } from 'vitepress' + +// https://vitepress.dev/reference/site-config +export default defineConfig({ + title: "My Awesome Project", + description: "A VitePress Site", + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + nav: [ + { text: 'Home', link: '/' }, + { text: 'Examples', link: '/markdown-examples' } + ], + + sidebar: [ + { + text: 'Examples', + items: [ + { text: 'Markdown Examples', link: '/markdown-examples' }, + { text: 'Runtime API Examples', link: '/api-examples' } + ] + } + ], + + socialLinks: [ + { icon: 'github', link: 'https://github.com/vuejs/vitepress' } + ] + } +}) diff --git a/package.json b/package.json index 1a5a902..caeb0d0 100644 --- a/package.json +++ b/package.json @@ -4,4 +4,4 @@ "docs:build": "vitepress build", "docs:preview": "vitepress preview" } -} \ No newline at end of file +}