Skip to content

Commit cf617c5

Browse files
committed
.
1 parent f44914c commit cf617c5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/getting-started/introduction.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ We implement [m3 design system](https://m3.material.io/styles/color/system/overv
111111
$ (
112112
trap 'kill -9 0' SIGINT
113113

114-
export PORT=3000
115114
export _PORT=60141
116115

117116
export MDX=docs
@@ -126,7 +125,7 @@ $ (
126125
export MDX_BASEURL=http://localhost:$_PORT
127126
export SOURCECODE_BASEURL="vscode://file$(pwd)"
128127
export EDIT_BASEURL="vscode://file$(pwd)/docs"
129-
export NEXT_PUBLIC_URL=http://localhost:$PORT
128+
export NEXT_PUBLIC_URL=
130129
export ICON=
131130
export LOGO=gutenberg.jpg
132131
export GITHUB=https://github.com/pmndrs/docs

src/app/llms.txt/route.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ export async function GET() {
99

1010
const docs = await parseDocsMetadata(MDX)
1111

12-
const baseUrl = NEXT_PUBLIC_URL || ''
13-
1412
// Generate llms.txt content following standard format
1513
const content = `# ${NEXT_PUBLIC_LIBNAME}
1614
1715
## Documentation
1816
1917
${docs
2018
.map((doc) => {
21-
const url = baseUrl ? `${baseUrl}${doc.url}` : doc.url
22-
return `- [${doc.title}](${url})${doc.description ? `: ${doc.description}` : ''}`
19+
return `- [${doc.title}](${doc.url})${doc.description ? `: ${doc.description}` : ''}`
2320
})
2421
.join('\n')}
2522
@@ -41,7 +38,7 @@ Configure in your MCP client:
4138
4239
---
4340
44-
For full documentation content, see ${baseUrl}/llms-full.txt
41+
For full documentation content, see llms-full.txt
4542
`
4643

4744
return new Response(content, {

0 commit comments

Comments
 (0)