r/devops • DevOps • Jul 29 '26

Vendor / market research How does your team handle documentation

I'm doing research on how documentation is done in different DevOps teams. What processes exist? How is it valued within your team? Has AI made that better or worse? Are there tools that you use to make it easier (not talking about Confluence here)? If you hqve worked in a professional context then I'd love to hear your input.

Considering the huge amount of shill posts I want to disclose that I'm (considering) making a tool that helps with documentation but I'm still in the process of understanding this problem thoroughly, which is why I'm askibg for your input :)

7 Upvotes

53 comments sorted by

View all comments

27

u/Low-Opening25 Jul 29 '26

you make docs part of code repo, no documentation update, no merge approval

3

u/aprettyparrot Jul 29 '26

This is how we always did it, but we had a separate repo for ops docs. Had script, runebooks, docs, everything ops needed. Personally for mine I do the same, except I keep one doc with an overview of what each system/container/etc does, and a link to the docs/ dir I keep inside that services git that has all the details of it.

1

u/edenroz Jul 30 '26

How to deal with images that must be embedded in the documents?

1

u/aprettyparrot Jul 30 '26

Go in repo. I put images dir

1

u/edenroz Jul 30 '26

Maybe I can use a separate repo for images.

0

u/Signal_Till_933 Jul 30 '26

We have README in the repos, and confluence docs for the ops/runs books.

2

u/aprettyparrot Jul 30 '26

Yeah I should switch some more to confluence. Probably more habit for me to keep all my flows and everything in the repos.

2

u/Low-Opening25 Jul 30 '26

nah, keep all the really important foundational docs in the repo, Conference will quickly fall back behind because that always happens if you add extra steps in human facilitated processes, I have seen it many times as contractor. I tend to setup a sync for repo .MD files to confluence using mark tool (https://github.com/kovetskiy/mark), not perfect but does a decent job.

1

u/aprettyparrot Jul 30 '26

That’s a good idea, I never had any formal devops training, just helping some other teams debug pipelines and the like, every project I came into already had them fully established.

I’ll take a look at that. I was thinking having a separate action run when docs branch changes to do the sync.

Thanks for the idea :>

1

u/Signal_Till_933 Jul 30 '26

Yep. That was part of what I pushed for when I came on this team as well. Docs in confluence were years out of date, I was basically like we can just delete these they aren’t accurate.

Then I started reviewing PRs where “where are the docs?” and now most things are documented.

Things in confluence are for:

Things external teams need to see

Operational runbooks that aren’t necessarily IaC related

Stuff like maintenance plans/lessons learned/post mortems etc for specific dates that get thrown into an archive for posterity.

1

u/productlevy Jul 30 '26

When you ask “where are the docs?” on a PR does that catch people outside eng too, or do external/support edits still go through Confluence and then someone ports them?

2

u/Work4Bots DevOps Jul 30 '26 edited Jul 30 '26

What about things that aren't directly related to a repo? I usually have these edge cases which need to be manually configured or higher level stuff such as architecture and data flows that don't immediately belong in a specific place

Also real curious how you write these docs? Do you have an LLM generate them and then go from there?

PS: really appreciate the input!

1

u/Huge-Ambition4656 Jul 30 '26

The problem with automating docs writing (wether thats by an LLM, scripts, or battery operated pigeon), is it removes the "committing to memory" process that it serves for some of us. After (during) writing code, config or whatever, I update the docs. Always. And doing so, helps me better understand what I've just produced. More often than not, it helps me understand the stuff I've missed, meaning I commit the branch right there, go create the ticket or TODO list item or whatever to address it, and go back to it.

Docs is not something to be skipped or automated. Have you actually read LLM generated copy? There are many words in those sentences which rarely say much of anything.

1

u/Work4Bots DevOps Jul 30 '26

Hmm I think that's an undervalued aspect of writing docs, definetly in a wide environment where you touch many different systems.

As for LLM generated copy: I have seen acceptable documentation at best that is 50% a rewording of that which you read in the code, with documentation not generated from code falling far below that. It's a problem that I'm considering solving but before I do so I'd like to know if it's real enough to tackle. There's also products like Mintlify that already do it for repo's, thus really narrowing it down to only docs written for non-code.

1

u/Huge-Ambition4656 Jul 30 '26

If you can test what you build on a real codebase with verifiably real docs, compare the two and decide yours is within 10-15% as good, you might have a solution. BUT: Whether or not you agree with the phrase "AI Slop", it's very real and well-known, so you'll already be having to push shit uphill to convince people it works, even if it does.

1

u/Work4Bots DevOps Jul 31 '26

I believe that if the quality is solid enough it will result in grass roots movements of engineers who value docs but don't get the time. Ensuring quality docs are produced would be the main 'moat' of the product

1

u/productlevy Jul 30 '26

For those architecture / multi-system docs who actually owns the edit when it’s not an engineer living in Git? Does it still end up on whoever can open a PR?

1

u/Huge-Ambition4656 Jul 30 '26

Gold star! You're the first person (other than me) to suggest this to anyone. Yes, 100%. No docs, no merge. End of.

1

u/Work4Bots DevOps Jul 31 '26

I saw someone else ask the question somewhere else and it makes me wonder: how do you handle formatting and images?

1

u/Huge-Ambition4656 Jul 31 '26

Markdown provides for this. Some (possibly all) allow markup mixed with markdown, which allows for fine-grained control over these aspects. That said, you need to understand the end-user of these docs. They're not intended for the boardroom. They're for engineering, ops, security etc. Docs don't need to look like they were produced in Canva.

1

u/specgit Jul 30 '26

Yes, this is the way

1

u/Work4Bots DevOps Jul 31 '26

As I commented on another comment Im curious: how do you handle screenshots and formatting and such?

2

u/specgit Jul 31 '26

With the right editor designed for Github, you can add images and they get committed in the same PR as the doc (in an images folder).