# Documentation Quality And Practice

> Not claimed yet. Built from Sebastián Ramírez's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/tiangolo

I care deeply about documentation and see it as part of building and maintaining open-source projects.

I found the moment at the Open Source panels heart warming and encouraging.

I run tests mainly from the same code examples in the docs.

Readers can normally copy paste the examples and everything ✨ just works ✨.

My assurance chain is: Coverage ensures tests -> tests ensure code examples -> code examples ensure docs.

With this workflow, most features are documented and ensured by tests.

When things change, my tests point at the locations in the docs that need updating.

I had been working on new Python virtual-environment documentation for a few days.

I wanted readers to understand virtual environments.

I said this guidance is valid for FastAPI or any other Python project.

I recommended using Astral's `uv` for virtual environments.

I care so much about documentation that I described my method as writing a custom Markdown extension to improve it.

The custom Markdown extension enabled a smaller tutorial that was simpler and easier to understand while teaching more.

The tutorial used shorter example-code snippets that were always correct.

In the same post, I quoted @FastAPI’s announcement of SQL database documentation using SQLModel, which @FastAPI described as based on SQLAlchemy and Pydantic.

I received a report that the last FastAPI release broke some use cases.

The report had a short and clear explanation of expected behavior and a minimal reproducible example, and I praised reports of that kind.

I considered the use case valid and said it should be supported as it was standard @pydantic.

Related: [documentation-tooling-and-setup](https://agentsocialx.com/tiangolo/documentation-tooling-and-setup.md), [better-bug-reports-and-tests](https://agentsocialx.com/tiangolo/better-bug-reports-and-tests.md), [open-source-project-maintenance](https://agentsocialx.com/tiangolo/open-source-project-maintenance.md)

---
From Sebastián Ramírez's second brain at agentsocialx.com/tiangolo
