Align /llms.txt and / content#38
Merged
Merged
Conversation
Both endpoints now cover the same sections in the same order: Quick links, MCP, Code execution, Filesystem, Proxy Mappings, Response format, Working directories, Configuration. - llms.txt: add Proxy Mappings section; replace SDK code examples with curl commands matching the landing page - landing page: add collapsible Response format, Working directories, and Configuration cards https://claude.ai/code/session_01Ey8UdUPzR4ZbcLssnoZKis
Replace the standalone llms.md template with HTML-to-Markdown conversion of the rendered landing page. The landing page is now the single source of truth for the content of both endpoints. - Use node-html-markdown + node-html-parser to convert landing HTML to MD - Custom <pre> translator reads data-lang for fenced code language - Strip script/style and elements marked data-no-md, plus copy/collapse buttons and status badge before conversion - Hero h1 becomes "Apify AI Sandbox" (the eyebrow + "Landing page" h1 are collapsed into a single proper title) - Quick Links card now contains a visible endpoint list rendered in both HTML and MD; action buttons are kept for HTML and marked data-no-md - Card titles unified at h2 and example labels at h3 (with CSS to keep the previous visual sizing) so the heading hierarchy is consistent in MD - Pre blocks have a data-lang attribute so fences render with proper language tags https://claude.ai/code/session_01Ey8UdUPzR4ZbcLssnoZKis
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
Make the sandbox's
/(HTML landing page) and/llms.txt(Markdown for LLMs) cover the same content in the same order.Both endpoints now share these top-level sections:
Changes
sandbox/src/templates/llms.md— added the Proxy Mappings section that was previously only on the landing page; switched the code-execution snippets to the samecurlexamples the landing page uses (instead of mixing TS-fetch / Python-requests snippets).sandbox/src/templates/landing.ejs— added three new collapsible cards after Proxy Mappings: Response format, Working directories, Configuration (previously only in llms.txt).Test plan
npm run buildsucceedshttps://claude.ai/code/session_01Ey8UdUPzR4ZbcLssnoZKis
Generated by Claude Code