Customers & growth · Developer marketing
SDK documentation framework
Best for Early Startup to Startup
Use it when
You ship client libraries in one or more languages, and developers need each library's docs to take them from install and client setup to every common task and error.
Skip it when
- Developers call your REST endpoints directly with no client library. Use API documentation framework, which this builds on.
- You have not decided which languages get official SDKs or how they behave alike. Use SDK strategy framework first.
- You need one tested example for a single task. Use Code sample framework, which this feeds.
- Readers need one short path from signup to a first working result. Use Quick start framework.
- You are planning the whole docs set across products and page types. Use Documentation framework.
What to apply first and what to use instead are listed below.
Inputs
- Library listEach SDK with its package name, supported language and runtime versions, and the service API version it targets, from the SDK repositories.
- Champion scenariosThe tasks developers most often perform with each library, ranked from support tickets, repository issues and API logs over the last 90 days.
- Public code surfaceEvery public class and method in the current release, with its existing doc comments, from the release branch.
- Setup factsCredentials, environment variables, permissions and client options each library needs, confirmed with engineering.
- Build jobA continuous integration job that generates the reference and builds and runs every snippet on each release.
- Style rulesYour docs style guide plus each language's reference tool and conventions, such as Javadoc or Sphinx.
Steps
- Write a readme for each library in one fixed order. Start with a short introduction naming the service version and common tasks, then install with prerequisites, authenticate the client, key concepts, examples, troubleshooting and next steps.
- Write one short snippet per champion scenario that performs a single operation in the language's own idioms, and pull it from a tested file into the readme, the doc comments and the quick start.
- Write a doc comment for every public class and method covering parameters, return values, service limits and the errors a caller can get with how to recover, then generate the reference with the language's standard tool.
- Write a troubleshooting page per library listing common errors and exceptions, how to handle throttling and how to turn on logging.
- Have a developer who knows the language follow the readme on a clean setup through one example, and fix every place they stall.
- Build the reference and run every snippet in continuous integration on each release, then publish the readme, reference and release notes with the package.
Output
A docs set for each SDK, with a register that shows which pages exist and when their snippets last passed.
- Library, language and package version
- Service API version supported
- Readme sections present
- Champion scenarios with snippet locations
- Reference link and generation tool
- Troubleshooting page link
- Last passing snippet build
- Owner
Done when
- Every readme has install, authenticate the client, key concepts, examples, troubleshooting and next steps sections.
- Every champion scenario has a snippet in each supported language, and every snippet passes in continuous integration on the current release.
- The generated reference shows no public class or method without a doc comment.
- Every doc comment for a call that can fail names its errors and how to recover.
- A developer outside the team has installed the package, authenticated and run one example from the readme on a clean setup.
Measure
For 90 days after publishing, track repository issues and support tickets that ask how to use a call, plus time from package install to a first successful call, for each language. Compare with the 90 days before. It worked when usage questions per active developer fall and time to first call drops against your own baseline. Recheck after each major SDK release.
Hypothetical example
Ferrowave, a messaging API, ships SDKs for Python, Node and Go, and a third of new issues ask how to retry rate-limited sends. The team rewrites all three readmes in the same order, with install, client setup with an API key, key concepts and examples for its six top tasks. Each snippet sends, schedules or cancels one message and is pulled from a tested file. Doc comments for the send method now name the rate limit error and the retry setting that handles it. A Go developer from another team follows the Go readme on a fresh laptop and stalls on a missing environment variable, which the prerequisites now list. Over the next quarter, retry questions fall from 40 a month to 12.
Common mistakes
- Copying the REST reference into each SDK's docs. Document the library's own classes and methods, and link to the API reference for the calls underneath.
- Writing one long snippet that chains several operations. Write one snippet per operation and combine them only where a type needs it.
- Pasting snippets into the readme by hand. Pull them from tested files so a library change breaks the build before it breaks a reader.
- Leaving errors out of doc comments. Name the limits and errors a caller hits and how to recover.
- Writing the readme for one language and translating it word for word. Use each language's install tool, naming and idioms.
Sources
- Azure SDK general guidelines: documentation · Microsoft Azure SDK team
- README template · Microsoft Azure SDK team
- SDKs and sample apps · Tom Johnson, 2026
By company stage
Apply first
Nothing. You can start here.
Use instead
- API documentation framework
Developers call your REST endpoints directly with no client library. Use API documentation framework, which this builds on.
- SDK strategy framework
You have not decided which languages get official SDKs or how they behave alike. Use SDK strategy framework first.
- Code sample framework
You need one tested example for a single task. Use Code sample framework, which this feeds.
- Quick start framework
Readers need one short path from signup to a first working result. Use Quick start framework.
- Documentation framework
You are planning the whole docs set across products and page types. Use Documentation framework.
Where it sits
Open the developer marketing roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account