Skip to content

DOC-3471, DOC-3476: Markdown endpoints in LLM generator + Context7 MCP instructions#4123

Open
kemister85 wants to merge 1 commit intotinymce/8from
hotfix/8/DOC-3471
Open

DOC-3471, DOC-3476: Markdown endpoints in LLM generator + Context7 MCP instructions#4123
kemister85 wants to merge 1 commit intotinymce/8from
hotfix/8/DOC-3471

Conversation

@kemister85
Copy link
Copy Markdown
Contributor

@kemister85 kemister85 commented Apr 27, 2026

Summary

  • Add toMarkdownEndpoints() to generate-llm-files.js so the next regeneration outputs index.md Markdown endpoint URLs instead of trailing-slash HTML URLs.
  • Add "AI-Assisted Development with MCP" section to llms.txt with Context7 MCP setup instructions for Cursor and Claude Code.

Tickets

How it works

The toMarkdownEndpoints() function post-processes the generated output, converting any https://www.tiny.cloud/docs/tinymce/.../<page>/ URL to .../<page>/index.md. It only affects doc page URLs (CDN, file references, and non-doc URLs are untouched).

No changes to the build pipeline or workflows on main are needed.

Validation

  • Context7 MCP section added with correct setup instructions
  • llms.txt URLs remain as trailing-slash in source (transformed at generation time)
  • llms-full.txt unchanged from tinymce/8

Test plan

  • Regenerate LLM files (yarn generate-llm-files-from-url) and verify all doc URLs end in index.md
  • Verify Context7 MCP setup instructions are accurate (test in Cursor)
  • Spot-check that CDN URLs and llms-full.txt reference link are untouched

@kemister85 kemister85 changed the title DOC-3471, DOC-3476: Update LLM files with Markdown endpoints and Context7 MCP instructions DOC-3476: Add Context7 MCP setup instructions to llms.txt Apr 27, 2026
@kemister85 kemister85 changed the title DOC-3476: Add Context7 MCP setup instructions to llms.txt DOC-3471, DOC-3476: Markdown endpoints in LLM generator + Context7 MCP instructions Apr 27, 2026
… and add Context7 MCP instructions

Add toMarkdownEndpoints() to generate-llm-files.js so generated
llms.txt and llms-full.txt URLs point to index.md Markdown endpoints
instead of trailing-slash HTML pages.

Add Context7 MCP setup section to the llms.txt template in the
generator so it persists across regenerations.

Regenerated both files from the production sitemap to validate.
@kemister85 kemister85 requested review from a team, jeslynbo, kimwoodfield, ltrouton and metricjs and removed request for a team April 27, 2026 23:15
@kemister85 kemister85 marked this pull request as ready for review April 27, 2026 23:15
@kemister85 kemister85 requested review from a team and soritaheng as code owners April 27, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant