Skip to content

Commit 00499d7

Browse files
committed
add typedoc
1 parent 7ba4f38 commit 00499d7

File tree

4 files changed

+231
-187
lines changed

4 files changed

+231
-187
lines changed

apps/docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# build output
22
dist/
3+
api/
34

45
# generated types
56
.astro/

apps/docs/astro.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import { defineConfig } from 'astro/config';
2+
import { generateTypeDoc } from 'starlight-typedoc';
23
import starlight from '@astrojs/starlight';
4+
import path from 'path';
5+
6+
const typeDocSidebarGroup = await generateTypeDoc({
7+
entryPoints: [
8+
path.join(process.cwd(), '..', '..', 'packages', 'commandkit', 'src', 'index.ts'),
9+
],
10+
tsconfig: path.join(process.cwd(), '..', '..', 'packages', 'commandkit', 'tsconfig.json'),
11+
});
312

413
// https://astro.build/config
514
export default defineConfig({
@@ -38,6 +47,7 @@ export default defineConfig({
3847
},
3948
],
4049
},
50+
typeDocSidebarGroup,
4151
],
4252
}),
4353
],

apps/docs/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"dependencies": {
1515
"@astrojs/starlight": "^0.9.0",
1616
"astro": "^3.0.8",
17-
"sharp": "^0.32.5"
17+
"sharp": "^0.32.5",
18+
"starlight-typedoc": "^0.5.0",
19+
"typedoc": "^0.25.1",
20+
"typedoc-plugin-markdown": "4.0.0-next.20"
1821
}
1922
}

0 commit comments

Comments
 (0)