From 52a6b8b1d98a5c7693dd04786180a7517fd70e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Mon, 23 Oct 2023 23:36:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 2 +- demo/.vitepress/config.ts | 2 ++ demo/package.json | 2 +- docs/.vitepress/config.ts | 1 + docs/guide/index.md | 2 +- docs/package.json | 2 +- docs/{vite.config.ts => vite.config.mts} | 0 .../vitepress-theme-async/components/TrmFooter.vue | 2 +- scripts/.eslintrc.json | 14 ++++++++++++++ scripts/publish.mjs | 11 +++++++++++ 10 files changed, 33 insertions(+), 5 deletions(-) rename docs/{vite.config.ts => vite.config.mts} (100%) create mode 100644 scripts/.eslintrc.json create mode 100644 scripts/publish.mjs diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e1f8a16..7773e5b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,7 +27,7 @@ jobs: run: | cp ./README_zh-CN.md ./packages/vitepress-theme-async cp ./README.md ./packages/vitepress-theme-async - node ./scripts/publish + node ./scripts/publish.mjs zip -r vitepress-theme-async ./packages/vitepress-theme-async env: RELEASE_VERSION: ${{ github.ref }} diff --git a/demo/.vitepress/config.ts b/demo/.vitepress/config.ts index 9c997ef..7668624 100644 --- a/demo/.vitepress/config.ts +++ b/demo/.vitepress/config.ts @@ -3,6 +3,8 @@ import taskLists from 'markdown-it-task-lists'; export default defineConfig({ cleanUrls: true, + base: 'demosite', + outDir: '../dist/demosite', vite: { css: { preprocessorOptions: { diff --git a/demo/package.json b/demo/package.json index 27f5c83..34a6d0d 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,5 +1,5 @@ { - "name": "hexo-theme-async-docs", + "name": "vitepress-theme-async-demo", "version": "0.0.0", "private": true, "type": "module", diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 7fbd1c0..f4355e0 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,6 +1,7 @@ import { defineConfig } from 'vitepress'; export default defineConfig({ + outDir: '../dist', lang: 'zh-CN', title: 'Vitepress-Theme-Async', description: '🎈 A simple, lightweight vitepress blog theme', diff --git a/docs/guide/index.md b/docs/guide/index.md index 0d2db1d..2049cc6 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -8,7 +8,7 @@ ::: danger 提醒 -本插件为 blog 主题,不一定适合当作文档主题使用。主题为 vitepress-Theme-Async 的移植版本,功能配置上会有一定的差异,合理选择您想要版本。 +本插件为 blog 主题,不一定适合当作文档主题使用。主题为 Hexo-Theme-Async 的移植版本,功能配置上会有一定的差异,合理选择您想要版本。 - 配置问题 diff --git a/docs/package.json b/docs/package.json index 85c392d..92a0fb5 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,5 +1,5 @@ { - "name": "hexo-theme-async-docs", + "name": "vitepress-theme-async-docs", "version": "0.0.0", "private": true, "type": "module", diff --git a/docs/vite.config.ts b/docs/vite.config.mts similarity index 100% rename from docs/vite.config.ts rename to docs/vite.config.mts diff --git a/packages/vitepress-theme-async/components/TrmFooter.vue b/packages/vitepress-theme-async/components/TrmFooter.vue index 83d0d2e..2b88882 100644 --- a/packages/vitepress-theme-async/components/TrmFooter.vue +++ b/packages/vitepress-theme-async/components/TrmFooter.vue @@ -37,7 +37,7 @@ onMounted(() => {