r/devops • • 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

55 comments sorted by

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.

4

u/RapidlyErect Sep 19 '26

Thank you for the explanation

114

u/derchad Sep 19 '26 • Bravo

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.

12

u/HeligKo Sep 19 '26

If docs need to be updated on another platform most will have an API that will allow you to update documents or replace them, and the updates can be included in the delivery pipeline.

4

u/Redmilo666 Sep 19 '26

Also with AI not updating docs has no excuse. I always reject PRs that don’t have modifications to readmes that require it.

3

u/crimsonPhantom Sep 19 '26

Preach ! Even our product owners and analysts started to write docs in markdown in their own git repository!

Yay, we're free of SharePoint, Word and Excel documents !!

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.

46

u/Nearby-Middle-8991 Sep 19 '26

It's not dictator, it's just grown up process..

10

u/ArieHein Sep 19 '26

True but some will look at it and question your 'knowledge and skills' thus make sure you have mgmt back

3

u/weelittlewillie Sep 19 '26

Even more important, make sure mgmt has your back for the rare moment you do have to say Stop for a valid reason. If mgmt doesnt have your back, that decision to stop for risk goes real bad.

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

9

u/WardenUnleashed Sep 19 '26

Especially when I’ve already seen this same question asked a few days ago.

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

4

u/tevert Sep 19 '26

You were downvoted because the engagement and advertising bots don't like being called out

-6

u/RapidlyErect Sep 19 '26

Whats wrong with asking twice?

5

u/reightb Sep 19 '26

Wasn’t this just asked a few days ago?

6

u/HighKingLemur Sep 19 '26

engineers don’t always know which pages a change affects

CTRL+F, proper test coverage, generate docs from API,...

Or just claim the code is self-documenting and drop the docs, rawdog style.

1

u/Either-Chest7515 Sep 26 '26

Yeah, but relying on CTRL+F and assuming the code is self-documenting can get messy fast. Without proper documentation and testing, small changes can easily cause unexpected problems.

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

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

1

u/Salt_Cell_1477 Sep 19 '26

How do you keep that from getting noisy?

I can see the value in catching obvious drift, but I’d worry about the agent forcing doc changes just because code changed, even when the behavior the docs describe didn’t really change.

Does it first figure out which docs are actually affected, or does it compare everything on each build?

2

u/filthysock Sep 19 '26

It’s not too bad, our repo is fairly well organised with readmes in the right directories and parent readme linking down and across to other modules. It’s fairly easy for a human and agent to traverse and identify drift.

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

-3

u/RapidlyErect Sep 19 '26

Looks interesting will look into it more in the meantime

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.