mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
11 lines
414 B
TypeScript
11 lines
414 B
TypeScript
import BuildContext from "./context";
|
|
import { join } from "path";
|
|
import { execSync } from "child_process";
|
|
|
|
export default function buildSwagger({ baseDir }: BuildContext) {
|
|
const targetDir = join(baseDir, "api");
|
|
const specPath = join(__dirname, "../../server/src/assets/api-openapi.yaml");
|
|
|
|
execSync(`pnpm redocly build-docs ${specPath} -o ${targetDir}/internal-api.html`, { stdio: "inherit" });
|
|
}
|