mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
feat(build-docs): split documentation in two
This commit is contained in:
@@ -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.
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
15
apps/build-docs/typedoc.backend.json
Normal file
15
apps/build-docs/typedoc.backend.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user