Skip to content

Commit

Permalink
Add typedoc (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Jun 27, 2024
1 parent 259db10 commit 7d4d6ee
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,14 @@ jobs:
node_version: ${{ matrix.node }}
- name: Typecheck
run: npm run typecheck
docs:
name: Docs
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Build docs
run: npm run docs:build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
!ava.config.js

# Build directories
docs
package

# Environment versions file
Expand Down
118 changes: 118 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"prebuild:ts": "del 'index.*' lib",
"postbuild:ts": "tsc-alias --project tsconfig.build.json",
"typecheck": "tsc",
"docs:build": "typedoc",
"test": "c8 ava",
"pretest": "tsx src/index.ts",
"test:update": "ava --update-snapshots",
Expand Down Expand Up @@ -84,6 +85,7 @@
"tsc-alias": "^1.8.2",
"tsup": "^8.0.1",
"tsx": "^4.6.2",
"typedoc": "^0.26.2",
"typescript": "~5.3.3",
"zod": "^3.23.8"
}
Expand Down
10 changes: 10 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://typedoc.org/schema.json",
"includeVersion": true,
"entryPoints": ["src/index.ts"],
"out": "docs",
"tsconfig": "./tsconfig.build.json",
"navigationLinks": {
"GitHub": "https://github.com/seamapi/blueprint"
}
}
48 changes: 48 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"buildCommand": "npm run docs:build",
"installCommand": "npm ci",
"outputDirectory": "docs",
"github": {
"silent": true
},
"cleanUrls": true,
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self' data:; img-src 'self' https://img.shields.io https://github.com; style-src 'self' 'unsafe-inline'"
},
{
"key": "X-DNS-Prefetch-Control",
"value": "on"
},
{
"key": "Referrer-Policy",
"value": "same-origin"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=63072000; includeSubdomains; preload"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "Permissions-Policy",
"value": "geolocation=(), camera=(), microphone=(), payment=()"
}
]
}
]
}

0 comments on commit 7d4d6ee

Please sign in to comment.