Skip to main content

Mkdocs Protobuf plugin

build codecov PyPI version


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.

Release files for mkdocs-protobuf 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-protobuf 0.1.0
File Size Uploaded
mkdocs_protobuf-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-protobuf 0.1.0
File Interpreter ABI Platform
mkdocs_protobuf-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / mkdocs_protobuf-0.1.0.tar.gz

Download URL mkdocs_protobuf-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0c9333ea47fa46b3b67c58bffbfd58c28bf1f85d3f8a3e44466accd30c82eb2b
BLAKE2b-256 checksum
How to use checksums
6f068d3ca3714e96c41134bfe8eaa76c5a4f57864a8a196d32d8734dd626950f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / mkdocs_protobuf-0.1.0-py3-none-any.whl

Download URL mkdocs_protobuf-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
143d70c2482a03e30af4ce01312d587777961af1183860d9109b3cfd66a9757e
BLAKE2b-256 checksum
How to use checksums
7c8fc16f8936514c0f0b53e177410a5864cc38fd5a184c34bb08b07f19b52f80
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page