r/devops • u/RapidlyErect • Sep 19 '26
Discussion How are teams keeping docs current when you ship several times a week?
We ship several times a week and keeping the docs in sync is getting harder, code changes have a clear review process, docs don’t. Someone changes a parameter or response field, the release goes out, then a few weeks later we find examples still using the old version. We tried adding docs to the PR checklist, but engineers don’t always know which pages a change affects, what’s worked for keeping docs current? Would love any suggestions
117
Upvotes
33
u/derprondo Sep 19 '26
mkdocs site deployed from the same application repo, CLAUDE.md rules to enforce updating the docs as needed. Claude does a great job with mkdocs.
114
u/derchad Sep 19 '26 •
Docs should be in source control with the code and require update as part of any PR. It's part of the set of deliverable artifacts. Repeat after me: the repo is source of truth for all things.
144
u/ArieHein Sep 19 '26 edited Sep 19 '26
Release is not deployed before doc is validated and released together as artifact. Be a dictator.
27
u/tevert Sep 19 '26
I don't know, but I bet somebody will happen to make a convenient product recommendation that perfectly fits this infomercial
6
u/Ready_Anything4661 Sep 19 '26 edited Sep 19 '26
Wasn’t this just asked a few days ago?
Edit: yep
Why was this downvoted
6
u/HighKingLemur Sep 19 '26
CTRL+F, proper test coverage, generate docs from API,...
Or just claim the code is self-documenting and drop the docs, rawdog style.
6
u/Soft-Marionberry-853 Sep 19 '26
With dillegance and intention
(I just went in to ask my wife "Hon whats the word you say I dont do thing with in our relationship" and without even having to think she said Intention")
6
u/derpinot Sep 19 '26
add documentation update as part of definition of done?
4
u/Fercii_RP Sep 19 '26
We have similar problem, the solution is: we stopped documentating our API's
6
u/onevox Sep 19 '26
lmao
2
u/max_465 Sep 19 '26
(I assume that you are keeping the source for the docs in the same repo as the rest of the project. The commit id of the docs should match the commit id of the artifact.) So, is the problem that the doc publishing pipeline is out of sync with the product deployment pipeline?
2
u/filthysock Sep 19 '26
We have custom AI agents that block the build if docs are out of date. And automatically suggest fixes
2
u/Substantial-Swan7065 Sep 19 '26
Depends on the purpose of the doc. You can automate most of it.
2
u/LemonFishSauce Sep 19 '26
Have AI to align all docs and memories with what’s implemented.
1
u/kdevkk Sep 19 '26
Docs are part of the jira ticket
1
u/snarkhunter Lead DevOps Engineer Sep 19 '26
As best as we can.
1
u/rosstafarien Sep 19 '26
Docs are updated first. Code is then modified to match the docs.
1
u/Pack_Your_Trash Sep 19 '26
That's the best part. We don't! I need a new job...
1
u/dariusbiggs Sep 19 '26
Docs are part of the code base, they live with each other.
1
u/kernelwilliams Sep 19 '26
I added an instruction to the AGENTS.md and pre-commit trigger to re-read the docs and compare them to files changed. Voilà, docs updated every time :)
1
u/Latter_Difference836 Sep 19 '26
They are not updated.
1
u/NotUmbra Sep 19 '26
We have an automated AI wiki sync pipeline, that opens a pr with the docs diff to the repo wiki if there are changes
1
u/MavZA Sep 19 '26
Usually our releases contain documentation in the PRs that go to release, so as devs do features and fixes that need doc changes, they declare that their documentation is included or that this PR does not change anything that would need documentation. Then for stakeholders we convert to PDF.
1
u/Admirable_Fix8032 Sep 19 '26
We had have the better results handling documentation as an integral element of the release not a separate task. Keeping them in the same repository and updating them in the same PR makes it much more difficult for changes to get through. Automation for API documentation also helps but having a clear owner for everything user facing is still beneficial.
1
u/bred86 Sep 19 '26
why not use a script to generate docs? You could tie this in a pre-commit hook, updating the doc every single commit.
It can scans the documentation and update variables and parameters automatically.
You could also make an AI do this the same way.
1
u/J-Kr183 Sep 19 '26
“Continuous AI” which includes “Continuous Documentation” ie. Through GitHub Workflows.
1
u/Global_Car_3767 Sep 19 '26
I mean unless you're implementing a huge feature change, how often do you need to update docs? Just make sure you have good comments in the code, and if there is a big overhaul or feature added, keep it in an MD file in the repo itself
1
u/RobotechRicky Sep 20 '26
That's the funny thing, you don't.
1
u/DorianTurba Sep 23 '26
Doc in repo, sync through CI with corporate source of knowledge, usually. Markdown to confluence, stuff like that. Every change to the code => MR => checklist including doc update.
1
u/manasa-uigraph Sep 24 '26 edited Sep 24 '26
Yeah it’s hard to maintain, docs go stale really fast. Couple of ways you can address is, maintain Claude.md instructions so it does update the api specs, docs, schema changes, etc. You can also have an agent that automatically finds the drift with new changes and creates PR to maintain the docs. I am currently building UIGraph to solve some of those problems. Our UIGraph skill would help generate all the artifacts in your codebase including diagrams, api specs, schemas, and others. You can use cli in CICD, so it can sync all the docs to UIGraph and team has one cool view to look at all the artifacts. We also have agents that automatically finds the drifts and opens the PR for you. Happy to help.
1
u/unitegondwanaland Manager, Platform Engineering Sep 19 '26
Claude code + internal plugin marketplace. My README's are immaculate
0
u/BlakkMajik3000 Remover of Deployment Friction Sep 19 '26
Make documentation part of the review or…
We can at least pretend we understand that docs are PART OF THE SOURCE and act accordingly. 🤷🏾♂️
Further, manual code review has been a delivery bottleneck for far too long since we have a slew of ways to automatically validate if a release is FIT FOR PURPOSE without having to rely on a specific set of eyeballs.
2
u/[deleted] Sep 19 '26
[removed] — view removed comment
1
u/[deleted] Sep 23 '26
[removed] — view removed comment