feat(build-docs): split documentation in two

This commit is contained in:
Elian Doran
2025-11-01 22:51:33 +02:00
parent c6738ac52f
commit 2c1cebfbc3
3 changed files with 23 additions and 6 deletions

View File

@@ -2,8 +2,10 @@ import { execSync } from "child_process";
import BuildContext from "./context";
export default function buildScriptApi({ }: BuildContext) {
execSync(`pnpm typedoc`, {
for (const config of [ "backend", "frontend" ]) {
execSync(`pnpm typedoc --options typedoc.${config}.json`, {
stdio: "inherit"
// * Output dir is set in typedoc.json.
});
}
}

View File

@@ -0,0 +1,15 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": [
"src/backend_script_entrypoint.ts"
],
"plugin": [
"typedoc-plugin-missing-exports"
],
"outputs": [
{
"name": "html",
"path": "../../site/script-api/frontend"
}
]
}

View File

@@ -1,6 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": [
"src/backend_script_entrypoint.ts",
"src/frontend_script_entrypoint.ts"
],
"plugin": [
@@ -9,7 +9,7 @@
"outputs": [
{
"name": "html",
"path": "../../site/script-api"
"path": "../../site/script-api/backend"
}
]
}