Skip to content

Build your personal knowledge base with Trilium Notes

chore(build-docs): relocate to /rest-api

Elian Doran617703899f94
diff --git a/apps/build-docs/src/swagger.ts b/apps/build-docs/src/swagger.ts
index 3ab1d068b5..cf0622de02 100644
--- a/apps/build-docs/src/swagger.ts
+++ b/apps/build-docs/src/swagger.ts
@@ -8,15 +8,17 @@ interface BuildInfo {
outDir: string;
}
+const DIR_PREFIX = "rest-api"
+
const buildInfos: BuildInfo[] = [
{
// Paths are relative to Git root.
specPath: "apps/server/src/assets/api-openapi.yaml",
- outDir: "api/internal"
+ outDir: `${DIR_PREFIX}/internal`
},
{
specPath: "apps/server/src/assets/etapi.openapi.yaml",
- outDir: "api/etapi"
+ outDir: `${DIR_PREFIX}/etapi`
}
];
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index f6a5669cba..9393a22202 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -12594,7 +12594,7 @@
{
"type": "label",
"name": "webViewSrc",
- "value": "/api/etapi/",
+ "value": "/rest-api/etapi/",
"isInheritable": false,
"position": 10
},
@@ -13612,7 +13612,7 @@
{
"type": "label",
"name": "webViewSrc",
- "value": "/api/internal/",
+ "value": "/rest-api/internal/",
"isInheritable": false,
"position": 10
},