Skip to content

Commit 9685b42

Browse files
committed
Add GitHub Actions workflow for documentation deployment and update related configurations
1 parent 90228d7 commit 9685b42

File tree

5 files changed

+60
-27
lines changed

5 files changed

+60
-27
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "docs"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: oven-sh/setup-bun@v2
26+
- run: bun install --frozen-lockfile && bunx typedoc
27+
- uses: actions/configure-pages@v5
28+
- uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: "./pages"
31+
- uses: actions/deploy-pages@v4
32+
id: deployment

.gitignore

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
6-
# Runtime data
7-
pids
8-
*.pid
9-
*.seed
10-
*.pid.lock
11-
12-
# Coverage directory used by tools like istanbul
13-
coverage
14-
*.lcov
15-
16-
# Dependency directories
17-
node_modules/
1+
/build
2+
/coverage
3+
/pages
4+
/node_modules
185

19-
# TypeScript cache
20-
*.tsbuildinfo
21-
22-
# Optional npm cache directory
23-
.npm
24-
25-
# Optional eslint cache
26-
.eslintcache
27-
28-
/build
6+
*.log
7+
.DS_Store

bun.lockb

6.27 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@
109109
"@types/bun": "^1.1.14",
110110
"i18next": "^23.0.0",
111111
"remix-i18next": "^7.0.0",
112+
"typedoc": "^0.27.3",
113+
"typedoc-plugin-mdn-links": "^4.0.3",
112114
"typescript": "^5.7.2",
113115
"vite": "^6.0.3",
114116
"vite-tsconfig-paths": "^5.1.3",

typedoc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"name": "Remix Hono",
4+
"includeVersion": true,
5+
"entryPoints": [
6+
"./src/cloudflare.ts",
7+
"./src/handler.ts",
8+
"./src/i18next.ts",
9+
"./src/security.ts",
10+
"./src/session.ts",
11+
"./src/trailing-slash.ts",
12+
"./src/typed-env.ts"
13+
],
14+
"out": "pages",
15+
"json": "pages/index.json",
16+
"cleanOutputDir": true,
17+
"projectDocuments": ["./docs/*.md"],
18+
"plugin": ["typedoc-plugin-mdn-links"],
19+
"categorizeByGroup": false
20+
}

0 commit comments

Comments
 (0)