diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d858e74..00de5d4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,7 +47,6 @@ jobs: run: | pnpm docs:build # or npm run docs:build / yarn docs:build / bun run docs:build touch .vitepress/dist/.nojekyll - cp -pr public/* .vitepress/dist/ - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: diff --git a/.vitepress/config.js b/.vitepress/config.js index c8a0674..49f76c9 100644 --- a/.vitepress/config.js +++ b/.vitepress/config.js @@ -4,7 +4,8 @@ import VitePluginVitepressDemo from 'vite-plugin-vitepress-demo' // https://vitepress.dev/reference/site-config export default defineConfig({ - title: "PDanPDan", + lang: 'en-US', + titleTemplate: ':title | PDanPDan', description: "PDanPDan code and examples for web", srcDir: 'pages', @@ -42,6 +43,16 @@ export default defineConfig({ ] }, + sitemap: { + hostname: 'https://pdanpdan.github.io/' + }, + + lastUpdated: true, + + markdown: { + lineNumbers: true + }, + vite: { plugins: [ VitePluginVitepressDemo( { diff --git a/pages/index.md b/pages/index.md index 63da5e1..5c79261 100644 --- a/pages/index.md +++ b/pages/index.md @@ -2,6 +2,8 @@ # https://vitepress.dev/reference/default-theme-home-page layout: home +title: "Home Page" + hero: name: "PDanPDan" text: "PDanPDan code and examples for web" diff --git a/public/googlec0cade17e5e27188.html b/pages/public/googlec0cade17e5e27188.html similarity index 100% rename from public/googlec0cade17e5e27188.html rename to pages/public/googlec0cade17e5e27188.html