Skip to content

Commit ac2e85c

Browse files
Merge pull request #2655 from ably/WEB-4445-docs-prefix-in-llms-txt
[WEB-4445] Add missing `/docs` prefix on URLs in `llms.txt`
2 parents 6f14ac5 + e9bbd62 commit ac2e85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/onPostBuild/llmstxt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const onPostBuild: GatsbyNode['onPostBuild'] = async ({ graphql, reporter
8989
const { title, meta_description } = meta;
9090

9191
try {
92-
const url = prefixPath({ url: slug, siteUrl, pathPrefix: basePath });
92+
const url = prefixPath({ url: `/docs/${slug}`, siteUrl, pathPrefix: basePath });
9393
const safeTitle = escapeMarkdown(title);
9494
const link = `[${safeTitle}](${url})`;
9595
const line = `- ${[link, meta_description].join(': ')}`;

0 commit comments

Comments
 (0)