r/devops • • Sep 15 '26

Discussion How are teams keeping technical docs in sync with fast release cycles?

29 Upvotes

34 comments sorted by

5

u/ForkMeJ Sep 16 '26

What has worked best for teams I've seen is treating doc impact as part of the PR, not cleanup after release. If a change touches an API, config, runbook, or screenshots, the reviewer should ask what doc changed with it the same way they ask about tests. You still miss things now and then, but it catches a lot of stale examples before they sit around for a month. Keeping docs in the same repo as the code helps too, because people will update what is in front of them and ignore the separate wiki that nobody owns.

9

u/askwhynot_notwhy Security Engineer Sep 16 '26

We make all that shit part of the deployment/release process. The idea being to keep it all together and top of mind; otherwise (ie those updates processes lie somewhere else), disparity increases complexity which increases risk.

FWIW, note that we’re a small-ish and scrappy org. Also, I voice dictated this so it’s probably typo ridden.

5

u/yzalevas Sep 16 '26

The only thing that ever worked for me was stopping treating docs as a separate track. Doc updates go in the same PR as the code change, and the reviewer doesn’t approve until the runbook or README section matches what actually shipped. It feels slow for a month, then it becomes the cheapest habit you have.Wiki-style docs that live far from the code always rot, no matter what process you wrap around them. Keep the doc next to the service in the same repo and let it age with the code. For longer-lived decisions we used short ADR files, each one a snapshot of why we chose something, so nobody has to keep a living document true forever. 😊Wiki-style docs that live far from the code always rot, no matter what process you wrap around them. Keep the doc next to the service in the same repo and let it age with the code. For longer-lived decisions we used short ADR files, each one a snapshot of why we chose something, so nobody has to keep a living document true forever. 😊The only thing that ever worked for me was stopping treating docs as a separate track. Doc updates go in the same PR as the code change, and the reviewer doesn’t approve until the runbook or README section matches what actually shipped. It feels slow for a month, then it becomes the cheapest habit you have.

4

u/Ready_Anything4661 Sep 16 '26

That’s the neat part. We don’t.

2

u/derprondo Sep 16 '26

CLAUDE.md contains rules that Claude must update the corresponding mkdocs site deployed from the same repo.

1

u/dariusbiggs Sep 16 '26

Docs are part of the checklist for MR.

Make docs part of the code base so they're a part of the MR.

Otherwise it'll be 100 versions out of date before it gets touched again.

1

u/WelcomeChristmas Sep 16 '26

You guys have technical docs?

1

u/Unowhodisis Sep 16 '26

We’re not

1

u/MiserableDocument509 Sep 16 '26

API docs generated from OpenAPI tend to stay honest because CI fails if they drift. Runbooks almost never get that treatment, so those rot first. A required rollback/oncall-impact checkbox on the PR at least makes someone look.

1

u/Maxiride Sep 16 '26

I'm trying to adopt git hooks and agent hooks to have an Ai agent evaluate the diff and update the docs accordingly.

The docs get their PR that needs human reviewing.

I also try to leverage Structurizer MCP server to update domain models and graphs if possible.

I'm still fiddling around but it's the best path forward I could think of for now.

1

u/Nyamzz Sep 16 '26

We have Knowledge Managers

1

u/whatisuser Sep 16 '26

We build pages and docs from the api definition - generating an OpenAI spec from the code.

That, and having documentation linked up to the features in the codebase, so if something is changed without the docs having been checked, we get yelled at.

1

u/patsfreak27 Sep 17 '26

How do you link documentation to features to code files in the repo? That's the part I have the hardest figuring out. Rigid doc structure and embedded docs into the code is the best way I've found but it requires strict maintenance

1

u/No_Bee_4979 Sep 16 '26

In my last role, we used Charlie for this. He would detect drift between the Terraform Code (or Rails, Go) and create pull requests a day after the change was merged. You can find this at charlielabs dot ai

No, I am not an employee of charlielabs. I actually had it forced upon me in my last role. I learned how to configure Charlie in a way that was helpful and stopped him from approving every damn pull request when that's not what we configured Charlie to do. I am not a paid sponsor.

1

u/MiserableDocument509 Sep 17 '26

Same-PR checklists only work until a release is late and someone skips them. What actually stuck for me is generating the API reference/examples from the same source as the code (OpenAPI or whatever you already have) so those pages are a build output, not a wiki page someone has to remember to edit. Keep the hand-written docs for the conceptual stuff only. The thing that usually bites is an old copy-pasted curl snippet, and that mostly goes away if examples are generated.

1

u/Impressive-Field-546 Sep 17 '26

AI keeping up with changes and updating documentation.

You wont be faster than agents no matter how fast you release.

1

u/transendingAI Sep 17 '26

Put a documentation decision in the code review: link the affected page or example, or explain why the change doesn't need a docs update. A checkbox alone is easy to tick without checking anything.

For API changes, executable examples are useful. Run the documented request or code snippet in CI so an outdated example can fail alongside the code that broke it. Link checks catch dead URLs, but they won't catch an example that returns the wrong result.

For docs in a separate system, link the draft update from the PR and give someone responsibility for publishing it with the release.

1

u/fazkan Sep 19 '26

If you guys use agents, would recommend just adding claude webhooks, and asking it to create a draft PR in your docs respository, give it access to all of your source code.

You can do the same with codex and github copilot as well. You can also set up triggers.

Not sure what docs platform you use though. If your docs are not in a repo somewhere then it might be difficult.

1

u/fazkan Sep 19 '26

I did build https://docsalot.dev to solve this exact problem though, we have predefined templates that you can use to set all of this up. It uses our CLI to deploy the docs.

1

u/SamfromLucidSoftware Sep 21 '26

Reviewing docs in the same PR works on diagrams as well. A lot of teams skip the diagram. The ones that keep theirs current put the diagram source in the repo as Mermaid. It changes in the same commit as the code that way. Lucidchart generates the diagram from that Mermaid code when someone needs the picture. Someone still has to own the diagram update.

37

u/[deleted] Sep 16 '26

[removed] — view removed comment

4

u/Dangle76 Sep 16 '26

Yep, then you end up by proxy limiting how large PRs are and not creating a mountain of tech debt or issues caused because docs are out of date

1

u/HeligKo Sep 16 '26

This is the easiest way. There are still pitfalls, but we at least ensure that docs in the codebase are up to date with the changes. Other docs can lag for us, but we are getting better about asking the right questions during PR reviews to ensure that the external docs are updated as needed.

0

u/Alvasilev Sep 16 '26

Same-PR review catches the doc for the change. What it doesn't catch is the sentence nobody's change touches.

I read a lot of MCP server READMEs for a catalog I maintain, and the failure mode I see most isn't a stale page, it's a stale number. One server, one version: 49 tools in the summary, 59 plus 5 in the prose, 64 in the table. Every PR that added a tool went through review, and none of them had a reason to open the paragraph that counts them. "What doc changed with this?" gets an honest "none" three times in a row and the README still ends up contradicting itself.

The rule that stuck for that class: any figure the system can emit itself doesn't get typed by a human. Tool counts, endpoint lists, config keys with their defaults are generated at build or asserted in a test (README says N, the handshake returns N, CI fails on mismatch). Prose goes through the PR like you describe. Numbers go through the same gate as code, because they're the part that drifts without anyone noticing.

1

u/[deleted] Sep 23 '26

[removed] — view removed comment

1

u/devops-ModTeam Oct 24 '26

Please see the pinned weekly self-promotion thread if you wish to promote your projects or business.