From 7c2e9bf671debcdb1ed62cb989bddf728f362eef Mon Sep 17 00:00:00 2001 From: jingjidove Date: Sat, 26 Apr 2025 19:25:14 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=B5=8B=E8=AF=95Action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dev.yaml | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/dev.yaml diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml new file mode 100644 index 0000000..37bc8ef --- /dev/null +++ b/.gitea/workflows/dev.yaml @@ -0,0 +1,42 @@ +name: test-doc +run-name: Testing doc — ${{ gitea.run_id }} +on: + workflow_dispatch: + pull_request: + types: [opened] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + steps: + - name: 🚚 Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: pnpm/action-setup@v4 + name: 🔧Install pnpm + with: + run_install: false + + - name: 🔧Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: 🔧Install dependencies + run: pnpm install + + - name: 🔴Build doc + run: pnpm run docs:build + + - name: 🚀 Deploy to Cloudflare Pages + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook \ No newline at end of file From 4f3ec01d6e5a850dd6b0643a0f1e2502654e31b8 Mon Sep 17 00:00:00 2001 From: jingjidove Date: Sat, 26 Apr 2025 19:25:44 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E8=BF=9C=E7=AB=AF?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 8a81a7a..7ddf155 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -43,4 +43,4 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook-vue --branch=main \ No newline at end of file + command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook --branch=main \ No newline at end of file From 32d5845b83fb46e82585674cf6025a96bc28371b Mon Sep 17 00:00:00 2001 From: jingjidove Date: Sat, 26 Apr 2025 19:26:16 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=99=E6=80=81?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E8=B7=AF=E5=BE=84=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.vuepress/config.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts index d60711b..e4d2fc7 100644 --- a/src/.vuepress/config.ts +++ b/src/.vuepress/config.ts @@ -1,13 +1,8 @@ -import { viteBundler } from '@vuepress/bundler-vite' import { defineUserConfig } from "vuepress" import theme from "./theme.js" export default defineUserConfig({ - bundler: viteBundler({ - viteOptions: {}, - vuePluginOptions: {}, - }), - base: "/jingji/sp/", + base: "/", lang: "zh-CN", title: "荆棘鸟文学社", From 5bea607bb78e0f9be6fe6daea4c98821b007b081 Mon Sep 17 00:00:00 2001 From: jingjidove Date: Sat, 26 Apr 2025 19:30:43 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E2=80=9CThe=20bundler=20?= =?UTF-8?q?or=20theme=20option=20is=20missing=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.vuepress/config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts index e4d2fc7..2bdbbe7 100644 --- a/src/.vuepress/config.ts +++ b/src/.vuepress/config.ts @@ -1,8 +1,13 @@ +import { viteBundler } from '@vuepress/bundler-vite' import { defineUserConfig } from "vuepress" import theme from "./theme.js" export default defineUserConfig({ base: "/", + bundler: viteBundler({ + viteOptions: {}, + vuePluginOptions: {}, + }), lang: "zh-CN", title: "荆棘鸟文学社", From a644faadd4cdedccca77afb2e07da04408a0b984 Mon Sep 17 00:00:00 2001 From: jingjidove Date: Sat, 26 Apr 2025 19:33:24 +0800 Subject: [PATCH 5/5] =?UTF-8?q?dev=20Action=E6=B7=BB=E5=8A=A0push=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dev.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index 37bc8ef..514a2ca 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -4,6 +4,7 @@ on: workflow_dispatch: pull_request: types: [opened] + push: jobs: build-and-deploy: