File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,9 @@ function processSidebar(
138138 // Latest version uses /docs/id, others use /docs/version/id
139139 const urlPath = isLatest ? `/docs/${ id } ` : `/docs/${ version } /${ id } ` ;
140140 const fullUrl = `${ baseUrl } ${ urlPath } ` ;
141+ const mdUrl = `${ fullUrl } .md` ;
141142
142- llmsContent += `- [${ title } ](${ fullUrl } )${
143+ llmsContent += `- [${ title } ](${ mdUrl } )${
143144 description ? `: ${ description } ` : ''
144145 } \n`;
145146
@@ -244,11 +245,11 @@ async function generateForVersion(
244245 ) ;
245246
246247 // 3. Generate Full Content (llms-full.txt)
247- let llmsFullTxt = `# React Navigation ${ version } Documentation\n\n` ;
248+ let llmsFullTxt = '' ;
248249
249250 processedDocs . forEach ( ( doc ) => {
250- llmsFullTxt += `## ${ doc . title } \n\n` ;
251- llmsFullTxt += `Source: ${ doc . url } \n\n` ;
251+ llmsFullTxt += `# ${ doc . title } \n\n` ;
252+ llmsFullTxt += `Source: ${ doc . url } .md \n\n` ;
252253 llmsFullTxt += `${ doc . processedContent } \n\n---\n\n` ;
253254 } ) ;
254255
You can’t perform that action at this time.
0 commit comments