diff --git a/.gitignore b/.gitignore index 3c3629e..396946b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +**/.vitepress/cache \ No newline at end of file diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index d4b03d4..a1be7e6 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -2,10 +2,19 @@ import { defineConfig } from 'vitepress' // https://vitepress.dev/reference/site-config export default defineConfig({ + vite: { + server: { + port: 5678, + }, + }, title: "就这么弄", description: "简单步骤与实用技巧", themeConfig: { // https://vitepress.dev/reference/default-theme-config + logo: { + src: '/public/assets/logo.svg', + }, + nav: [ { text: 'Home', link: '/' }, { text: 'Examples', link: '/markdown-examples' } diff --git a/docs/index.md b/docs/index.md index a8da19e..2fd6189 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,6 +5,10 @@ layout: home hero: name: "就这么弄" text: "简单步骤与实用技巧" + image: + src: /public/assets/logo.svg + alt: VitePress + style: "border-radius: 50%" tagline: My great project tagline actions: - theme: brand diff --git a/docs/public/assets/logo.svg b/docs/public/assets/logo.svg new file mode 100644 index 0000000..13803e9 --- /dev/null +++ b/docs/public/assets/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file