Skip to content

Commit 1bf3748

Browse files
committed
refacotr: remove template replace
1 parent f00fe97 commit 1bf3748

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/generators/llms-txt/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
.map(entry => `- ${buildApiDocLink(entry)}`)
4141
.join('\n');
4242

43-
const filledTemplate = template.replace('__API_DOCS__', apiDocsLinks);
43+
const filledTemplate = `${template}${apiDocsLinks}`;
4444

4545
if (output) {
4646
await writeFile(join(output, 'llms.txt'), filledTemplate);

src/generators/llms-txt/template.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
Below are the sections of the API documentation. Look out especially towards the links that point towards guidance/introductioon to the structure of this documentation.
66

77
## API Documentations
8-
__API_DOCS__

0 commit comments

Comments
 (0)