News for hackers. Stuff that matters.
Re:Ask HN: How To: Internal Documentation? by cedws on Sunday September 01, 2024 @07:20AM (#41415956)
Docs should be as close to source code as possible, ideally in the same repo so they can be updated and reviewed in the same PR as the source changes themselves. Markdown works fine.

For docs that don’t relate to source, just have a repo for general docs. Not only is Confluence absolute crap, tech docs in it rot because it’s a separate system developers don’t want to use. Similar story for MediaWiki.

Re:Ask HN: How To: Internal Documentation? by Terr_ on Sunday September 01, 2024 @07:33AM (#41416041)
I would also strongly favor documentation diagrams which can be rebuilt from "code", such as PlantUML, Mermaid, and the venerable GraphViz formats.
Re:Ask HN: How To: Internal Documentation? by crayola on Sunday September 01, 2024 @08:46AM (#41416563)
Fully agree -- documentation as markdown committed alongside the code (and processes to ensure that it is kept up-to-date, discoverable and browsable) is the best way to avoid docs going stale or abandonned.
Re:Ask HN: How To: Internal Documentation? by hiAndrewQuinn on Sunday September 01, 2024 @10:04AM (#41417062)
You can go all the way and make a Hugo website out of those Markdown docs pretty easily too. If anyone wants help doing this, feel free to drop me a line!
Re:Ask HN: How To: Internal Documentation? by brewmarche on Monday September 02, 2024 @07:16AM (#41424415)
I agree but aren’t there docs that might be needed by non-technical people as well. The general doc repo might contain “bureaucratic” information (what I mean is who owns the application, what is the security concept, what other apps does it communicate with and who are their owners, how does it get audited, etc.).

Of course we can set up an export to a static website from the repo, but how would a non-technical person edit it, say if the owner or audit process changes?

Re:Ask HN: How To: Internal Documentation? by spondylosaurus on Wednesday September 04, 2024 @12:34AM (#41441922)
Certain static sites can hook up into a WYSIWYG CMS backend, although I'm not sure how nice they play with version control.
Re:Ask HN: How To: Internal Documentation? by kody on Tuesday September 03, 2024 @08:49PM (#41440780)
I would kill for code-adjacent docs right now.

We're a documentation-heavy org and having to open Confluence, find the right root page, drill down to where I need to be, and deal with ~1s page loads drives me nuts.