Mkdocs plugin to render protobuf messages
Project description
Mkdocs Protobuf plugin
Source Code: https://github.com/rymurr/mkdocs_protobuf
This plugin inserts protobuf messages into template parameters in mkdocs websites. It can be used to embed Protobuf IDL into documentation sites.
Usage
To use in mkdocs install via pip pip install mkdocs_protobuf.
Add the following to mkdocs.yml
plugins:
- mkdocs_protobuf:
proto_dir: /path/to/proto/files
The plugin will search for any templataes like the following: %%% proto.message.MessageName %%%
and will replace the template with the protobuf message MessageName. See the tests directory
for an example. The escape characters are odd as to not interfere w/ Jinja2 templating from other plugins.
Development
Setup environement
You should have Pipenv installed. Then, you can install the dependencies with:
pipenv install --dev
After that, activate the virtual environment:
pipenv shell
Run unit tests
You can run all the tests with:
make test
Alternatively, you can run pytest yourself:
pytest
Format the code
Execute the following command to apply isort and black formatting:
make format
License
This project is licensed under the terms of the Apache Software License 2.0.
Project details
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 mkdocs_protobuf-0.1.0.tar.gz.
File metadata
- Download URL: mkdocs_protobuf-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c9333ea47fa46b3b67c58bffbfd58c28bf1f85d3f8a3e44466accd30c82eb2b
|
|
| MD5 |
dbd5beca021ec36f0817ce8b97daea7a
|
|
| BLAKE2b-256 |
6f068d3ca3714e96c41134bfe8eaa76c5a4f57864a8a196d32d8734dd626950f
|
File details
Details for the file mkdocs_protobuf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_protobuf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
143d70c2482a03e30af4ce01312d587777961af1183860d9109b3cfd66a9757e
|
|
| MD5 |
0d4251a0ee6517af9e104524bebdd992
|
|
| BLAKE2b-256 |
7c8fc16f8936514c0f0b53e177410a5864cc38fd5a184c34bb08b07f19b52f80
|