DOC-3373: Add TinyMCE 8-specific llms.txt files for AI/LLM discoverability#3989
DOC-3373: Add TinyMCE 8-specific llms.txt files for AI/LLM discoverability#3989kemister85 wants to merge 19 commits intotinymce/8from
Conversation
…tical. Added new landing pages for supported frameworks. Updated link on installation section to point to new landing pages.
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
| } | ||
|
|
||
| // Framework integrations | ||
| const frameworkMap = { |
There was a problem hiding this comment.
Changing my idea - please just generally flag (very obviously) that this does A LOT of string matching, and if there's weirdness we should search for the appropriate strings
| } | ||
|
|
||
| // Plugins & Features - Core Plugins | ||
| if (urlPath === 'plugins' || |
There was a problem hiding this comment.
...any chance we could make this check against a list, rather than this insane string of ORs? I had to skim the whole thing to realise they're all ORs
https://stackoverflow.com/questions/2430000/determine-if-string-is-in-list-in-javascript
There was a problem hiding this comment.
just for this long block - if there's just 2 or 3 ORs it's fine to leave them (like below)
| }); | ||
|
|
||
| content += `\n### Other Integrations\n`; | ||
| content += `- **Bootstrap**:\n`; |
There was a problem hiding this comment.
could make this all one big content += block?
|
|
||
| ### React Example | ||
|
|
||
| \`\`\`jsx |
There was a problem hiding this comment.
this is how I'd expect the examples to come through
| fs.writeFileSync(path.join(OUTPUT_DIR, 'llms.txt'), llmsTxt); | ||
| fs.writeFileSync(path.join(OUTPUT_DIR, 'llms-full.txt'), llmsFullTxt); | ||
|
|
||
| console.log('✓ Generated llms.txt'); |
There was a problem hiding this comment.
pls put these after the relevant code blocks (e.g. after it finishes generating the content) rather than here
| console.log('✓ Generated llms.txt'); | ||
| console.log('✓ Generated llms-full.txt'); | ||
| console.log(`\nFiles written to: ${OUTPUT_DIR}`); | ||
| console.log(`\nTotal unique pages: ${urls.length}`); |
Ticket: DOC-3373
PR #2: tinymce/8 Branch (TinyMCE 8 Content)
LLM File Generation Automation
Overview
This PR automates the generation of
llms.txtandllms-full.txtfiles for LLM consumption, replacing manual curation with an automated script that ensures consistency and accuracy.What Was Created/Updated
1.
-scripts/generate-llm-files.js(New/Updated)sitemap.xml(no dependency onnav.adoc)’→'2.
-scripts/generate-llm-files.sh(Existing)3.
package.json(Updated)generate-llm-filesscript (uses local sitemap)generate-llm-files-from-urlscript (uses production sitemap)./prefix)4.
-scripts/README-llm-files.md(Updated)Generated Files
llms.txt(~127 lines)llms-full.txt(~700 lines)Workflow
Current Approach
Future
/latestPre-checks:
feature/<version>/,hotfix/<version>/,staging/<version>/, orrelease/<version>/.Review: