MCPcopy Create free account
hub / github.com/Automattic/mongoose / appendLLMsSection

Function appendLLMsSection

scripts/generateLLMsTXT.js:81–89  ·  view source on GitHub ↗

* Append an llms.txt section if there are entries to list. * @param {string[]} lines The full llms.txt output lines * @param {string} title The section title * @param {string[]} entries Markdown list items for this section * @returns {void}

(lines, title, entries)

Source from the content-addressed store, hash-verified

79 * @returns {void}
80 */
81function appendLLMsSection(lines, title, entries) {
82 if (entries.length === 0) {
83 return;
84 }
85 lines.push(`## ${title}`);
86 lines.push('');
87 lines.push(...entries);
88 lines.push('');
89}
90
91/**
92 * Generate llms.txt from the docs file map and parsed API docs.

Callers 1

generateLLMsTXTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected