Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
docs: add typedoc for project
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepbox8646 committed May 8, 2024
1 parent 6321727 commit 3d2b1d9
Show file tree
Hide file tree
Showing 24 changed files with 105 additions and 2 deletions.
Empty file added mods/mod-chart/README.md
Empty file.
4 changes: 4 additions & 0 deletions mods/mod-chart/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
Empty file added mods/mod-geometry/README.md
Empty file.
4 changes: 4 additions & 0 deletions mods/mod-geometry/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
Empty file added mods/mod-markdown/README.md
Empty file.
4 changes: 4 additions & 0 deletions mods/mod-markdown/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
Empty file added mods/mod-math/README.md
Empty file.
4 changes: 4 additions & 0 deletions mods/mod-math/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"docs:preview": "pnpm --filter=@newcar/docs docs:preview",
"play:dev": "pnpm --filter=@newcar/playground dev",
"play:build": "pnpm --filter=@newcar/playground build",
"api:generate": "pnpm typedoc",
"dep": "taze -r",
"dep:write": "taze -rw",
"prepare": "simple-git-hooks"
Expand All @@ -36,6 +37,7 @@
"rimraf": "^3.0.2",
"simple-git-hooks": "^2.11.1",
"taze": "^0.13.8",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"vite": "^5.2.11"
},
Expand Down
Empty file added packages/basic/README.md
Empty file.
4 changes: 4 additions & 0 deletions packages/basic/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
Empty file added packages/core/README.md
Empty file.
4 changes: 4 additions & 0 deletions packages/core/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
Empty file added packages/newcar/README.md
Empty file.
4 changes: 4 additions & 0 deletions packages/newcar/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
Empty file added packages/recorder/README.md
Empty file.
4 changes: 4 additions & 0 deletions packages/recorder/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
Empty file added packages/utils/README.md
Empty file.
4 changes: 4 additions & 0 deletions packages/utils/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
}
4 changes: 2 additions & 2 deletions packages/vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CarCanvas from './components/CarCanvas.vue'
// import CarCanvas from './components/CarCanvas.vue'
// export * from './hooks/useCarApp'
export { newcar } from './plugin'
export { CarCanvas }
// export { CarCanvas }
52 changes: 52 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"include": [
"packages/**/*.ts",
"examples/**/*.ts",
"mods/**/*.ts",
"**/shims.d.ts",
"test"
]
Expand Down
4 changes: 4 additions & 0 deletions typedoc.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://typedoc.org/schema.json",
"includeVersion": false
}
8 changes: 8 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"entryPoints": ["packages/*", "mods/*"],
"exclude": ["packages/vue", "mods/mod-ui"],
"name": "Newcar API References",
"entryPointStrategy": "packages",
"includeVersion": false,
"out": "./docs/apis"
}

0 comments on commit 3d2b1d9

Please sign in to comment.