From 940126dc0131aca66c807f8e5e96be2c4c1f231b Mon Sep 17 00:00:00 2001 From: Anukiran Date: Wed, 15 Apr 2026 17:52:12 -0500 Subject: [PATCH 1/2] update docs-sync script --- scripts/docs-sync/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/docs-sync/main.ts b/scripts/docs-sync/main.ts index e14c067..4d5491b 100644 --- a/scripts/docs-sync/main.ts +++ b/scripts/docs-sync/main.ts @@ -12,6 +12,7 @@ interface SyncConfig { } const ROOT = process.cwd(); +const DOCS_ROOT = path.resolve(ROOT, "../../docs"); const configs: Record = { sdk: { @@ -150,7 +151,10 @@ walk(config.dst) .filter((f) => f.endsWith(".md")) .forEach((f) => { let content = fs.readFileSync(f, "utf8"); - content = content.replace(/\(https:\/\/docs\.tailor\.tech(\/[^)]*)\)/g, "($1)"); + content = content.replace(/\(https:\/\/docs\.tailor\.tech(\/[^)]*)\)/g, (_: string, urlPath: string) => { + const hasIndex = fs.existsSync(path.join(DOCS_ROOT, urlPath, "index.md")); + return hasIndex ? `(${urlPath}/)` : `(${urlPath})`; + }); content = content.replace(/\(\.\//g, "("); content = content.replace(/\/index\.md\)/g, "/)"); content = content.replace(/\.md\)/g, ")"); From 6dc5fe6b590a2d348c0041bcaba453faea01626e Mon Sep 17 00:00:00 2001 From: Anukiran Date: Wed, 15 Apr 2026 17:58:52 -0500 Subject: [PATCH 2/2] Update workflow.md --- docs/sdk/services/workflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sdk/services/workflow.md b/docs/sdk/services/workflow.md index 934a52e..1e98dab 100644 --- a/docs/sdk/services/workflow.md +++ b/docs/sdk/services/workflow.md @@ -12,7 +12,7 @@ Workflows provide: - Access to TailorDB via Kysely query builder - Job triggering to compose multi-step logic -For the official Tailor Platform documentation, see [Workflow Guide](/guides/workflow). +For the official Tailor Platform documentation, see [Workflow Guide](/guides/workflow/). ## Workflow Rules