Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(build-docs): split documentation in two
Elian Doran2c1cebfbc3b0
diff --git a/apps/build-docs/src/script-api.ts b/apps/build-docs/src/script-api.tsindex 65ef449d96..efeb463167 100644--- a/apps/build-docs/src/script-api.ts+++ b/apps/build-docs/src/script-api.ts@@ -2,8 +2,10 @@ import { execSync } from "child_process";import BuildContext from "./context";export default function buildScriptApi({ }: BuildContext) {- execSync(`pnpm typedoc`, {- stdio: "inherit"- // * Output dir is set in typedoc.json.- });+ for (const config of [ "backend", "frontend" ]) {+ execSync(`pnpm typedoc --options typedoc.${config}.json`, {+ stdio: "inherit"+ // * Output dir is set in typedoc.json.+ });+ }}diff --git a/apps/build-docs/typedoc.backend.json b/apps/build-docs/typedoc.backend.jsonnew file mode 100644index 0000000000..c9ae10180e--- /dev/null+++ b/apps/build-docs/typedoc.backend.json@@ -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"+ }+ ]+}diff --git a/apps/build-docs/typedoc.json b/apps/build-docs/typedoc.frontend.jsonsimilarity index 65%rename from apps/build-docs/typedoc.jsonrename to apps/build-docs/typedoc.frontend.jsonindex 2e87510287..6df7160487 100644--- a/apps/build-docs/typedoc.json+++ b/apps/build-docs/typedoc.frontend.json@@ -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"}]}