Skip to main content

Protobuf IDL templating for mkdocs.

Project description

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.

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

mkdocs_protobuf-0.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

mkdocs_protobuf-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_protobuf-0.0.1.tar.gz.

File metadata

  • Download URL: mkdocs_protobuf-0.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for mkdocs_protobuf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ec70655e5c869a0afe3c2d0a6e0e617787472ca7b33416771ae47656f703c4eb
MD5 886478cba671d5c7907b165b7fb05901
BLAKE2b-256 c26df41968614608ba166d231c21ef705ca9ca3c4b1c42507811beb569262ebb

See more details on using hashes here.

File details

Details for the file mkdocs_protobuf-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_protobuf-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52593185598de66874aaa9875349f799dc807e06ebdc68196954bf307fef6876
MD5 55b6bebf8c61fb783b5310b159a529d6
BLAKE2b-256 d542314e89a2c1ec3f70af71826c425b1fbce79551bdace8f7937dfd53fb1e4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page