From 3ff56d86fcba657bbf89a050dc129b74777b4fb3 Mon Sep 17 00:00:00 2001 From: CRIMX Date: Wed, 1 Jan 2025 00:04:19 +0800 Subject: [PATCH] ci(docs): build legacy docs ci(prettier): workaround to ignore gitignore docs(v5): keep legacy docs --- .github/workflows/build.yml | 7 +++++++ .prettierignore | 4 +--- README.md | 2 +- package.json | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61297158..2c4631c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,13 @@ jobs: - name: Build Docs 📖 run: npm run docs + - name: Clone V5 Docs 📖 + run: | + cd docs + git clone --branch v5-gh-pages --single-branch --depth 1 https://github.com/crimx/value-enhancer.git v5 + cd v5 + rm -rf CNAME .nojekyll .git + - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: diff --git a/.prettierignore b/.prettierignore index e5753e19..0538acba 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,3 @@ -dist/* -coverage/* -docs/* CHANGELOG.md pnpm-lock.yaml +package-lock.json diff --git a/README.md b/README.md index ea769629..2609e46c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Enhance value with plain and explicit reactive wrapper. Think of it as hook-style signals. -Docs: +Legacy versions: [v5](https://value-enhancer.js.org/v5/) ## Features diff --git a/package.json b/package.json index 5ba51f2f..9ccefa84 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "lint": "eslint && prettier --check .", "lint:fix": "eslint --fix && prettier --write .", "ts-check": "tsc --noEmit", - "docs": "typedoc --options typedoc.json", + "docs": "typedoc --options typedoc.json && prettier --ignore-path .prettierignore --write docs", "test": "vitest", "test:coverage": "vitest --coverage", "test:ci": "vitest --coverage",