Skip to content

Commit cd62d6c

Browse files
committed
feat(docs): add TypeDoc for automated API documentation
Install typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json targeting src/transport/, src/db/, and src/hooks/, excluding test files and page-level components. Add npm run docs script. Add docs/api/ to .gitignore — output is generated at build time. Closes #76 Part of epic #75
1 parent 4683afa commit cd62d6c

3 files changed

Lines changed: 39 additions & 21 deletions

File tree

.gitignore

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
1+
# Dependencies
2+
node_modules/
93

10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
4+
# Build output
5+
dist/
146

15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
19-
.DS_Store
7+
# Generated API docs (built by npm run docs / docs.yml CI)
8+
docs/api/
9+
10+
# Coverage
11+
coverage/
12+
13+
# Local env
14+
.env
15+
.env.local
16+
.env.*.local
17+
18+
# Editor
19+
.vscode/
20+
.idea/
2021
*.suo
2122
*.ntvs*
2223
*.njsproj
2324
*.sln
2425
*.sw?
2526

26-
archives
27-
scripts
28-
coverage
29-
deploy
27+
# OS
28+
.DS_Store
29+
Thumbs.db
30+
31+
# Scripts (added manually with git add --force)
32+
scripts/

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc -b && vite build",
9+
"docs": "typedoc",
910
"pack": "bash scripts/pack.sh",
1011
"release": "release-it",
1112
"release:dry": "release-it --dry-run",
@@ -59,6 +60,8 @@
5960
"prettier": "^3.8.1",
6061
"release-it": "^19.2.4",
6162
"tailwindcss": "^4.2.2",
63+
"typedoc": "^0.28.0",
64+
"typedoc-plugin-markdown": "^4.6.0",
6265
"typescript": "~5.9.3",
6366
"typescript-eslint": "^8.57.0",
6467
"vite": "^8.0.1",

typedoc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPointStrategy": "expand",
4+
"entryPoints": ["src/transport", "src/db", "src/hooks"],
5+
"exclude": ["src/test/**", "src/pages/**", "src/components/**", "**/*.test.*"],
6+
"out": "docs/api",
7+
"name": "Viktorani API",
8+
"readme": "none",
9+
"includeVersion": true,
10+
"disableSources": false,
11+
"plugin": ["typedoc-plugin-markdown"]
12+
}

0 commit comments

Comments
 (0)