Skip to content

Commit

Permalink
feat: documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
juliendargelos committed Dec 4, 2024
1 parent f28542a commit 50640c3
Show file tree
Hide file tree
Showing 20 changed files with 1,124 additions and 88 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/playground.yml → .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
- main

jobs:
deploy:
doc:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- run: corepack enable
Expand All @@ -16,11 +17,8 @@ jobs:
node-version: 20
cache: pnpm
- run: pnpm install
- run: pnpm build
env:
PLAYGROUND: true
BASE_URL: /${{ github.event.repository.name }}
- run: pnpm doc
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playground/dist
publish_dir: ./doc
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
jobs:
release:
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
doc
*.local

# Editor directories and files
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@
"dist"
],
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"dev": "vite --config vite.playground.config.ts",
"build": "vite build",
"preview": "vite preview",
"release": "changelogen --release --push --publish"
"release": "changelogen --release --push --publish",
"doc": "typedoc",
"doc:serve": "typedoc --watch & serve doc",
"postdoc": "vite build --config vite.playground.config.ts"
},
"peerDependencies": {
"vue": "^3.5.12"
Expand All @@ -42,6 +45,10 @@
"@types/node": "^22.9.1",
"@vitejs/plugin-vue": "^5.1.4",
"changelogen": "^0.5.7",
"serve": "^14.2.4",
"typedoc": "^0.26.11",
"typedoc-github-theme": "^0.1.2",
"typedoc-plugin-vue": "^1.3.0",
"typescript": "~5.6.2",
"vite": "^5.4.10",
"vite-plugin-dts": "^4.3.0",
Expand Down
Loading

0 comments on commit 50640c3

Please sign in to comment.