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 d8367b4Copy full SHA for d8367b4
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,9 @@ 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}${
54
+ resolveDocMarkdownPath(doc.path)
55
+ }): ${doc.description}`
56
),
57
58
"## API Reference",
0 commit comments