DOC-3471, DOC-3476: Markdown endpoints in LLM generator + Context7 MCP instructions#4123
Open
kemister85 wants to merge 1 commit intotinymce/8from
Open
DOC-3471, DOC-3476: Markdown endpoints in LLM generator + Context7 MCP instructions#4123kemister85 wants to merge 1 commit intotinymce/8from
kemister85 wants to merge 1 commit intotinymce/8from
Conversation
2 tasks
faa9e2d to
dd993bc
Compare
dd993bc to
0f4b432
Compare
… 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.
0f4b432 to
227018e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
toMarkdownEndpoints()togenerate-llm-files.jsso the next regeneration outputsindex.mdMarkdown endpoint URLs instead of trailing-slash HTML URLs.llms.txtwith Context7 MCP setup instructions for Cursor and Claude Code.Tickets
How it works
The
toMarkdownEndpoints()function post-processes the generated output, converting anyhttps://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
mainare needed.Validation
llms.txtURLs remain as trailing-slash in source (transformed at generation time)llms-full.txtunchanged fromtinymce/8Test plan
yarn generate-llm-files-from-url) and verify all doc URLs end inindex.mdllms-full.txtreference link are untouched