Stop wasting developers time
How to create good documentation?
software developer
from Buenos Aires, Argentina
Let's dive into the talk!
Creating good documentation is really hard
Creating good documentation for developers is even harder
How's a day in a developer life?
product for developers
understand a developer
avoid having them code
doesn't add value
That's what we've been doing at Auth0
And this is what we've learnt
How to make an awesome doc?
- 1. Tailored documentation
- 2. Tailored sample projects
- 3. Embedable Documentation
- 4. Complete Github READMEs
- 5. Things should be easy to find
- 6. Community Driven Docs
- 7. API Explorer
- 8. Easy on the eye
1. Tailored documentation
2. Tailored sample projects
Already configured samples
auth0/configured-sample-generator
https://auth0.com/docs/node-auth0/master/create-package?path=examples/nodejs-api&type=server&clientId=UKL4zVK6krRwCTeDlbaTqgnhMXZCdB0H
3. Embedable documentation
Documentation should be everywhere!
We write it in Markdown on Github
And we render it with Markdocs anywhere
We use Lodash templating with Session variables
We promote people to help us fix the docs!
auth0/docs
4. Complete Github READMEs
Github READMEs must be complete!
Our README's secret sauce
- Title
- Description
- Key features
- Installing it
- TL;DR: Using it
- API
- Examples
- Contributing
- Issue reporting
- License
5. Things should be easy to find
Community should help you build up your docs!
If you have an API, let people use it!
We first did it manually, now we're migrating to Swagger
build good documentation
how do we write it?
Put a lot of code
and very little text
Make everything copy pasteable
So, what's next for Auth0?
EragonJ/Trip.js
This is the end of the presentation, so
Thank you for listening
or at least pretending to
How to create good documentation?