mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
refactor(build-docs): define output for typedoc at script level
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { execSync } from "child_process";
|
||||
import BuildContext from "./context";
|
||||
import { join } from "path";
|
||||
|
||||
export default function buildScriptApi({ }: BuildContext) {
|
||||
export default function buildScriptApi({ baseDir }: BuildContext) {
|
||||
for (const config of [ "backend", "frontend" ]) {
|
||||
execSync(`pnpm typedoc --options typedoc.${config}.json`, {
|
||||
const outDir = join(baseDir, "script-api", config);
|
||||
execSync(`pnpm typedoc --options typedoc.${config}.json --html "${outDir}"`, {
|
||||
stdio: "inherit"
|
||||
// * Output dir is set in typedoc.json.
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,11 +5,5 @@
|
||||
],
|
||||
"plugin": [
|
||||
"typedoc-plugin-missing-exports"
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "html",
|
||||
"path": "../../site/script-api/frontend"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -5,11 +5,5 @@
|
||||
],
|
||||
"plugin": [
|
||||
"typedoc-plugin-missing-exports"
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "html",
|
||||
"path": "../../site/script-api/backend"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user