Files
ThreadNet-Web/docs/generated/[id].paths.ts
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
796 B
TypeScript
Raw Normal View History

2026-07-10 10:47:41 +01:00
/*
Copyright 2026 Element Creations Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
*/
import genWorkflowMermaid from "../../scripts/gen-workflow-mermaid";
2026-08-04 10:15:07 +01:00
import path from "node:path";
import { fileURLToPath } from "node:url";
2026-08-04 10:15:07 +01:00
import { type ResolvedRouteConfig } from "vitepress";
2026-08-04 10:15:07 +01:00
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default {
2026-08-04 10:15:07 +01:00
async paths(): Promise<Partial<ResolvedRouteConfig>[]> {
const root = path.join(__dirname, "..", "..");
return [
{
params: { id: "automations" },
2026-08-04 10:15:07 +01:00
content: await genWorkflowMermaid([root, path.join(root, "node_modules", "matrix-js-sdk")]),
},
];
},
};