Skip to content

Commit

Permalink
ci(docs): build legacy docs
Browse files Browse the repository at this point in the history
ci(prettier): workaround to ignore gitignore

docs(v5): keep legacy docs
  • Loading branch information
crimx committed Dec 31, 2024
1 parent 598e87d commit 3ff56d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dist/*
coverage/*
docs/*
CHANGELOG.md
pnpm-lock.yaml
package-lock.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Enhance value with plain and explicit reactive wrapper. Think of it as hook-style signals.

Docs: <https://value-enhancer.js.org>
Legacy versions: [v5](https://value-enhancer.js.org/v5/)

## Features

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3ff56d8

Please sign in to comment.