Published · 8 min read
How to create an llms.txt file for your docs
Learn how to create llms.txt for your documentation: what goes in it, how to write or generate one, and how to keep it accurate after each release.
Published · 8 min read
Choosing API reference documentation hosting? Here's what to check for migration, review, source ownership, and AI-readable output before you commit.
Is your API reference stuck on a platform you've outgrown, or sitting in a repo as Markdown files nobody outside the team can find? Most teams shopping for API reference documentation hosting want the same things: move the content without rewriting it, see changes before customers do, keep ownership of the source, and avoid paying before they know it works. This guide covers what to check at each step.
How much of your current reference would survive a move? That question should come first, because the reference is the least forgiving part of your docs. A typo in a tutorial is annoying. A wrong parameter type in a reference breaks someone's integration.
The stakes are real. In Stack Overflow's 2026 Developer Survey, most devs (59%) are still using technical documentation to learn, with AI codegen tools coming up close behind at 53%. Postman's 2025 State of the API Report names the problem directly: inconsistent, outdated, or missing documentation creates confusion about API behavior, requirements, and usage patterns. A migration that forces a rewrite is a chance to introduce exactly that kind of error.
Most API references already have a machine-readable source that a host can work from. OpenAPI documents describe API services and are represented in YAML or JSON formats, and the OpenAPI Specification does not require rewriting existing APIs. The same definition can drive interactive documentation, code generation, and test automation. A host should publish the definition you already maintain, not ask you to retype endpoints into a proprietary editor.
Before comparing vendors, write down what the host has to do. A short list is enough:
The last item is newer, and it matters. Developers increasingly ask an assistant about your API instead of opening your site. If the assistant can only scrape rendered HTML, its answers depend on how well it guesses at your page structure.
What are you actually importing? Usually it is one of two things: an export from a hosted docs platform, or a folder of Markdown and MDX files in a repo. Either way, check these points before you commit:
Reversibility deserves the most attention. A non-destructive import leaves your original source untouched, so you can run the migration, look at the result, and walk away if it is wrong. Without that, evaluating a host means betting your docs on it.
Thally's migration and hosting feature is built around this: it imports documentation from GitBook, Mintlify, Docusaurus, or plain Markdown, converts it into a connected graph, and hosts it on a global edge with SSL, preview deploys, and instant rollback. The import is non-destructive and reversible, so the original content is still there if you change your mind.
Whichever host you evaluate, do a trial import of the real reference, not a sample page. Pick the ugliest section, the one with nested objects, long code samples, and versioned endpoints. If that comes through clean, the rest will too.

Who sees a reference change before your customers do? If the answer is "nobody, we just merge it," you are relying on luck.
Preview deploys solve this. Every proposed change gets its own built copy of the site at a temporary URL. Reviewers read the rendered page, not a diff of raw markup. For API references this matters more than for prose, because the errors are visual and structural: a request body that renders as an empty table, a code sample in the wrong language tab, an endpoint that vanished from the sidebar.
A workable review flow looks like this:
The approval step is the governance. Teams often ask how to balance startup speed with long-term control, and the answer is simple: make changes cheap to propose and impossible to publish without a human sign-off. You don't need a heavy editorial workflow. You need a pull request, a preview, and an approver.
This is the Docs as Code approach, which Write the Docs describes as the philosophy that you should be writing documentation with the same tools as code. Writers don't need to become engineers to work this way. They need a preview link and a review button.
Where does your reference live when the hosting contract ends? If the canonical copy is inside a vendor's database, leaving means exporting, converting, and hoping nothing was lost. If the canonical copy is in your Git repo, leaving means pointing a different build at the same files.
Keeping the source in Git gives you three things:
Postman's report describes the goal as living documentation that stays synchronized with code changes, ensuring information accuracy and reducing the documentation debt that causes confusion.
Then look at permissions. A hosting integration needs to read your repo to build the site. It does not need to push to your main branch. A read-only GitHub App limits what the host can do in your organization, which makes the security review shorter and the worst case smaller. Ask each vendor exactly which scopes their app requests and why.
Git as the source also helps with AI readability. When content is authored once in a structured format, the same source can be published as HTML for people and as Markdown, JSON, and llms.txt for machines. The llms.txt proposal describes a markdown file added to websites to provide LLM-friendly content, with brief background information, guidance, and links to detailed markdown files. The Model Context Protocol goes a step further as an open-source standard for connecting AI applications to external systems. With MCP tools, an assistant can query your docs directly and skip the guesswork of parsing pages.
Writers should not have to maintain any of those outputs by hand. If a platform asks them to keep a separate "AI version" of the docs, it will drift from the original. Choose one where machine-readable formats are generated from the same source as the site.

Why pay before you know the import works? A free tier lets you run the whole evaluation on your real content. Use it to answer these questions:
Thally's free plan includes one managed site. The engine is MIT licensed and hosting is optional, so your repository, your renderer, and your domain stay yours. For a small team with one public API, that is enough to host the reference, test the review flow, and decide later whether paid features are worth it.
The questions hold for any host. Can you move in without a rewrite, see every change before it ships, keep the source in your own repo, and start without a contract? If a platform gives you a clear yes to all four, run the trial import and judge the result on your hardest pages.
Published under the Thally editorial policy. Technical conformance is defined in the agent-readiness methodology.
Create a managed site, or use the open-source engine to run Thally yourself.