Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

3.3 Documentation

Good documentation lowers the cost of using, reviewing, and contributing to a repository. In many projects, documentation quality is one of the main factors that determines whether a newcomer becomes a contributor or gives up early.

Why documentation matters

Documentation helps different audiences answer different questions.

Documentation is part of the product, not an afterthought.

The role of the README

For many repositories, README.md is the first page a newcomer sees. A good README usually includes:

If the README grows too large, that is often a sign the project is ready for fuller documentation rather than a sign the README should be abandoned.

Layered documentation

Healthy projects often use several layers of documentation.

Each layer serves a different purpose.

Documentation for code and research repositories

In research-oriented open-source work, documentation may need to cover more than software usage. It may also need to explain:

This kind of context is often essential for reproducibility.

Documentation tooling

Projects use many different documentation tools. Common options include:

The best tool is often the one the team will maintain consistently.

This repository uses Jupyter Book and MyST Markdown. If you are editing MyST files in VS Code, the MyST extension can make the authoring experience smoother.

What good contributor documentation should cover

A newcomer should not need tribal knowledge to contribute. At minimum, contributor documentation should explain:

Treat documentation as part of review

One good maintainer habit is to ask during review: does this change require documentation updates?

Examples include:

If the answer is yes, the docs should usually change in the same pull request.

Good habits

Documentation quality compounds over time. A small improvement today often saves many future contributors from the same confusion.