← All posts

Tooling · Engineering

Documentation is part of the platform

Guides, API comments, device READMEs and samples flow through DocFX into one documentation site, with human review checking accuracy, clarity and limitations.

So far, we’ve explored code quality, developer experience, repeatable builds and releases, security foundations, and testing. In this sixth article, we’re looking at the documentation that makes those capabilities discoverable, understandable and useful.

You can write the best library in the world. If nobody can figure out how to use it, it’s a very elegant secret. 🤫

That’s why documentation is an engineering fundamental, not a chore for after the “real” work. In .NET nanoFramework it’s treated as a connected system: guides, generated API reference, device documentation and samples, glued together by automation.

Different questions, different docs

Someone starting out needs a path from an empty machine to a running app. Someone chasing a TLS problem needs precise API details. Someone wiring a sensor needs a diagram and a working example.

Those are different needs. A pile of generated class names can’t replace a getting-started guide, and a friendly tutorial can’t replace a reference. The documentation website brings guides, API docs, device content and samples together, so you don’t have to know which repository holds the answer before you can ask the question.

Keep the knowledge next to the code

The project’s automated documentation article explains the approach: build the site with DocFX, extract API docs from source comments, and reuse the Markdown that already lives with libraries, samples and device bindings. The documentation pipeline is the concrete proof, with DocFX tooling and generation steps for device and sample content.

The key idea is not duplicating things. If a device binding already has a detailed README, copying it by hand to another site gives you two documents that slowly drift apart. Reuse it, and the repository stays the one place where code and explanation improve together.

Source comments work the same way. The explanation sits right beside the method, so the contributor who changes the behavior is more likely to notice the comment is now lying. 😬

Docs need quality checks too

Broken Markdown, confusing navigation and inconsistent structure make technical content painful to read. The documentation repository keeps a Markdown lint configuration, and the generation process assembles material from many sources into the published site.

Automation handles the repeatable work. It can’t judge whether an explanation is accurate or whether a sample suits your particular board. People still have to review, update and admit limitations. Generated documentation isn’t automatically complete documentation. It’s a way of keeping good material connected.

Why developers feel the difference

When docs are scattered or maintained far from the code, you pay in detective work. Reading source, searching discussions, repeating experiments just to guess what the author intended.

Better docs cut that cost. They also turn small contributions into real engineering value: one clarified setup step can save the next hundred developers an evening. 🌙

A platform is easier to trust when it explains not only what you can call, but how and why to use it.

© Laurent Ellerbach. This post is licensed underCC BY-ND 4.0: you may share it unchanged, with credit and a link back. To adapt or translate it, ask the author first.

Comments

Comments are powered by GitHub Discussions. Sign in with GitHub to join in. By commenting, you agree to publish your comment under CC BY 4.0.