Static documentation generator for Protobuf and gRPC
Project description
sabledocs
A simple static documentation generator for Protobuf and gRPC contracts.
How to use
Generate the proto descriptor
In order to build the documentation, you need to generate a binary descriptor from your Proto contracts using protoc
. If you don't have it yet, the protoc
CLI can be installed by downloading the release from the official protobuf repository.
For example in the folder where your proto files are located, you can execute the following command.
protoc *.proto -o descriptor.pb --include_source_info
(It's important to use the --include_source_info
flag, otherwise the comments will not be included in the generated documentation.)
The generated descriptor.pb
file will be the input needed to build the documentation site.
Build the documetation
Install the sabledocs
package.
pip install sabledocs
In the same folder where the generated descriptor.pb
file is located, execute the command.
sabledocs
The documentation will be generated into a folder sabledocs_output
, its main page can be opened with index.html
.
For maintainers
Build the Python package:
python -m build
Publish with twine:
python -m twine upload --repository testpypi dist/*
Install from the local folder:
pip install .
Project details
Release history Release notifications | RSS feed
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
Hashes for sabledocs-0.0.2.dev29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f5f52b23c5be4b67a2e37e32fb66e4cdd7a6088cf0522db7f5a007318d7a8a6 |
|
MD5 | f04380b8f77d369e00f2393c9334ff20 |
|
BLAKE2b-256 | d1f50536c1224d10e31d3bbc29e6373386b2b19faeefcbd1d2d189487a48b578 |