DEV Community

Discussion on: What are some examples of great documentation?

Collapse
 
andreasklinger profile image
Andreas Klinger ✌️️ • Edited

Not an example for a good codebase but given most people who read this work on their own doc pages:

The #1 rule for documentation is that it has to be autogenerated and/or automatically tested.

As soon as it has to be manually updated and/or it's external from your codebase people won't do it.

Eg. your api docs should be generated with your automatic tests. At @producthunt we use eg github.com/zipmark/rspec_api_docum... for this.