Skip to content

Commit e1a7615

Browse files
authored
Merge pull request #34 from st-tech/api-docs
chore: add api docs
2 parents d28e970 + 819cfcf commit e1a7615

File tree

4 files changed

+164
-19
lines changed

4 files changed

+164
-19
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
- uses: ./.github/actions/setup
16-
- run: pnpm build
17-
working-directory: demo
16+
- run: pnpm pages
1817

1918
- if: github.event_name == 'push'
2019
uses: actions/upload-pages-artifact@v3

demo/src/App.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
<div class="grid grid-rows-[auto_1fr] h-screen divide-y">
5454
<header class="flex justify-between p-4">
5555
<h1 class="font-bold">universal-links-test demo</h1>
56-
<div class="flex gap-2 items-center">
56+
<div class="flex gap-4 items-center">
57+
<a href="./docs/">API</a>
5758
<a
5859
href="http://github.com/st-tech/apple-app-site-association"
5960
target="_blank"

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
2424
"prepare": "npm run clean && npm run build",
2525
"fmt": "biome check --write .",
26-
"check": "biome check ."
26+
"check": "biome check .",
27+
"pages": "pnpm demo && pnpm doc",
28+
"doc": "typedoc --basePath ./ --titleLink 'https://st-tech.github.io/universal-links-test/' --out demo/dist/docs src",
29+
"demo": "pnpm --dir demo build"
2730
},
2831
"keywords": [
2932
"aasa",
@@ -42,6 +45,7 @@
4245
"devDependencies": {
4346
"@biomejs/biome": "^1.9.4",
4447
"@types/node": "^22.10.2",
48+
"typedoc": "^0.27.5",
4549
"typescript": "^5.7.2",
4650
"vitest": "^2.1.8"
4751
}

0 commit comments

Comments
 (0)