doc-zero
doc-zero streamlines the process of writing documentation for your project. It is
an opinionated and explicitly non-configurable tool that extracts information
from your Python codebase and generates nice documentation with minimal effort.
The main influence is the elm language tooling: no config, nice defaults and
it creates a very decent documentation out of the box. Rust has a similar
experience with RustDoc. In comparison, both Sphinx and MkDocs are very powerful
but somewhat clunky to use and configure.
How does it work?
doc0 introspect your codebase and creates a Sphinx project under the hood. In
practice, if you have a relatively modern Python project (i.e., it assumes the
existence of pyproject.toml) just type
$ doc0 build
in the project root and it will create and build the documentation under
<project-root>/docs. In doc0, all your documentation resides either in the
README.md file in your repository or inside the source code.
You can also type
$ doc0 serve
and
doc0 test
to run either the live server or to test the doctests inside the documentation.
Adding the documentation to your project
Doc0 assumes your project is already documented using docstrings and that you have a README.md file in the project root. It will use those assets to generate the documentation and the necessary configurations to make it buildable with Sphinx and ready to be hosted to readthedocs.io.
The first step is to install doc0 as a development dependency in your project.
You can do this by running
$ pip install doc0
or the equivalent command for the package manager of choice.
Then, the following command generates the documentation:
$ doc0 build
doc0 always creates a module documentation for your toplevel module. It will
also scan all sub-modules and generate a documentation page if they satisfy the
following conditions:
- The module is not private (i.e., it does not start with an underscore).
- The module has a docstring.
- The module defines a
__all__variable that lists its public API.
doc0 only includes the public API in the generated documentation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doc_zero-0.1.1.tar.gz.
File metadata
- Download URL: doc_zero-0.1.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80d72cd47497df8c2f82deda44c03be6784fdfddd1839bf9e037eb3a32be3759
|
|
| MD5 |
d81d6d2f254c6e706f4fcd49cbc1e4ea
|
|
| BLAKE2b-256 |
7e3564f226db823c01d92684e49c2b3e064335e20dbf32a32c13116bf8ac0874
|
File details
Details for the file doc_zero-0.1.1-py3-none-any.whl.
File metadata
- Download URL: doc_zero-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ed0feae6303914ec28b6ca4f799db3ed79c5979f32ddeeae77d8a0ca7e42da0
|
|
| MD5 |
500e7a9c70c8815501f17c253b393778
|
|
| BLAKE2b-256 |
4b161aaf5df9825ee7a66944c5e89cfe281a1c8fb082d31e4848446f43cd39e3
|