From ea5497c43c1644bdb2d8893e49f248119f04209c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= Date: Thu, 20 Feb 2025 22:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=20logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + docs/.vitepress/config.mts | 9 +++++++++ docs/index.md | 4 ++++ docs/public/assets/logo.svg | 1 + 4 files changed, 15 insertions(+) create mode 100644 docs/public/assets/logo.svg 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