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
Learn how to detect outdated documentation by tracing merged pull requests to the docs, site, and help pages they affect.

When did someone last check whether your docs still match what shipped on Tuesday? If your team merges dozens of pull requests a week, the honest answer is probably "nobody, on purpose." Learning how to detect outdated documentation is not about auditing every page on a schedule. It is about connecting each code change to the pages that describe it, then proving the mismatch before anyone rewrites a word.
This guide walks through that process: define what outdated means, trace merges to pages, confirm with evidence, and ship the fix through review.
A page is not outdated because it is old. A three-year-old page about a stable endpoint can be perfectly accurate. A page written last week can be wrong by Friday.
The useful definition is narrower: a page is outdated when something it states no longer matches the code on your main branch. That gives you a test you can run. Either the page says what the product does, or it does not.
The mismatches usually fall into a few types:
The first type is the easiest to measure, and researchers have measured it. Tan, Wagner, and Treude analyzed over 3,000 GitHub projects and found that most contain at least one outdated code element reference at some point in their history. In their dataset of the 1,000 most popular projects, 3.9% of detected code element references were currently outdated.
That is the mechanical layer. Behavior changes, where the names stay the same but the meaning shifts, are harder to spot and do more damage.
Developers have felt this for a long time. In GitHub's 2017 Open Source Survey, 93% of respondents said incomplete or outdated documentation is a pervasive problem. The data is old, but it describes a problem most teams still recognize.
Why start from the pull request? Because that is the moment the truth changes. A merged PR is a precise, timestamped record of what is now different about your product. Every outdated page traces back to one.
For each merged PR, work through these steps:
The string-matching part can be automated. The same researchers built a GitHub Actions tool that scans a project's documentation for outdated references whenever a pull request is submitted. That catches renamed and deleted identifiers. It will not catch a changed default or a reworded help article.
That gap is where tracing tools come in. Thally traces each merged pull request to the docs, website, and help center pages it affects, so the candidate list arrives with the merge instead of weeks later. You can run the same process by hand on a small codebase. The point is that it runs per PR, every time.

Most teams already have a process for this. It usually looks like a "docs needed?" checkbox on the PR template, a ticket filed to the docs backlog, or a Slack channel where merges scroll past.
Does it work? Ask how many of those tickets were closed last quarter.
These processes share one weakness: they depend on the person who wrote the code knowing which pages their change affects. Usually they do not know. As the researchers put it, "one possible reason why documentation becomes out of sync so easily is that developers are unaware of when their source code modifications render the documentation obsolete."
The fallback is manual review. A companion paper states the cost plainly: "developers often have to manually check whether the documentation needs to be updated whenever changes are made to the source code." On a fast-shipping team, nobody reads every diff with the help center open in another tab.
Tickets add a second problem. A ticket that says "update docs for the auth change" is not a finding. It names no page, no line, and no evidence. Whoever picks it up has to redo the whole investigation, often after the engineer has moved on.
Scattered content makes it worse. Postman's 2025 State of the API Report puts it this way: "When API information lives everywhere, it becomes outdated or unreliable." In the same survey, 55% of respondents named documentation gaps as a collaboration blocker. Postman sells API tooling, so read that with the usual caution, but the pattern is familiar.
Replace the ticket with the trace. The output of detection should be a specific page, a specific claim, and the specific change that broke it.
A candidate is not a finding. Searching for a renamed flag will surface pages that mention it in a migration note, a changelog entry, or a versioned archive. Those pages are correct. Flagging them wastes reviewer time and teaches people to ignore the alerts.
Before calling a page outdated, assemble the evidence:
Then ask three questions.
Is the page describing the current version? Versioned docs for an older release should keep the old behavior.
Is the change actually released? A merged feature behind a flag may not be something customers can see yet. The page might be right for now and need a scheduled update.
Is the old statement still partly true? Deprecations often leave the old path working. The page may need a notice, not a rewrite.
If you cannot point to both the line of code and the line of prose, you do not have a confirmed mismatch. Evidence also makes the fix fast to review. A reviewer who sees the diff next to the stale sentence can approve in a minute.

Detection without a fix just produces a longer backlog. Once a mismatch is confirmed, draft the update right away, as a pull request against the content source, with the evidence in the description.
Keep the draft small. Change the claims that are wrong and leave the rest alone. One code PR should map to one docs PR where possible, so the history stays readable.
Then stop and wait for a person. Why not publish automatically? Because the diff does not carry everything. A human knows whether the feature is launching next week, whether the wording has legal weight, and whether the change should be announced. In GitHub's 2017 survey, 60% of contributors said they rarely or never contribute to documentation. Handing them a ready draft with evidence is a much smaller ask than a blank page.
The stakes go beyond tidy pages. DORA reports that "Analysis by DORA has found a clear link between documentation quality and organizational performance".
Your readers also now include machines. In Stack Overflow's 2026 survey, 59% of developers use technical documentation to learn, with AI codegen tools close behind at 53%. Those assistants repeat whatever your published docs say, so a stale page becomes a stale answer.
If you are choosing tooling for docs that serve both people and AI assistants, look at the workflow before the feature list:
Thally works this way: updates arrive as evidence-backed PRs, and nothing publishes until a human approves. Whatever you use, keep the loop the same. Trace the merge, confirm the mismatch, draft the fix, and have a person approve it.
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.