Skip to content

Commit

Permalink
fix: rm serve, vite dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbnetley committed Jun 23, 2024
1 parent a3dadd9 commit 5119f49
Show file tree
Hide file tree
Showing 4 changed files with 754 additions and 238 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/doc-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
group: ${{ github.ref }}-docs

env:
node_version: 18
node_version: 20

jobs:
generate-docs:
Expand All @@ -20,15 +20,15 @@ jobs:
with:
version: latest
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: 'pnpm'
- name: install
run: pnpm i

- name: Build docs
run: pnpm run docs
run: pnpm run build:docs

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pnpm run build

## Generating the docs
```sh
pnpm run docs
pnpm run build:docs
```

## Serve the generated docs
```sh
pnpm run serve-docs
pnpm run serve:docs
```
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"scripts": {
"dev": "vite",
"build": "vite build && tsc",
"build:docs": "typedoc",
"check": "tsc --noEmit",
"tsc": "tsc",
"test": "echo \"Error: no test specified\" && exit 1",
"docs": "typedoc",
"serve-docs": "pnpm dlx serve function-docs"
"serve:docs": "vite function-docs"
},
"repository": {
"type": "git",
Expand All @@ -37,7 +37,7 @@
"vite": "^4.5.3"
},
"dependencies": {
"vitest": "^0.34.6"
"vitest": "^1.6.0"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit 5119f49

Please sign in to comment.