We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6388d1f commit 3cc7ee6Copy full SHA for 3cc7ee6
1 file changed
lib/llms.ts
@@ -39,6 +39,9 @@ async function getPackageDescription(packageName: string): Promise<string> {
39
export async function generateLlmsTxt(): Promise<string> {
40
const groups = await getPackageGroups();
41
42
+ const resolveDocMarkdownPath = (path: string): string =>
43
+ path.endsWith("/") ? `${path}index.md` : `${path}.md`;
44
+
45
const lines: string[] = [
46
`# ${siteMetadata.name}`,
47
"",
@@ -47,7 +50,7 @@ export async function generateLlmsTxt(): Promise<string> {
50
"## Documentation",
48
51
49
52
...docPages.map((doc) =>
- `- [${doc.title}](${basePath}${doc.path}index.md): ${doc.description}`
53
+ `- [${doc.title}](${basePath}${resolveDocMarkdownPath(doc.path)}): ${doc.description}`
54
),
55
56
"## API Reference",
0 commit comments