Skip to main content

MkDocs plugin to integrate your coverage HTML report into your site.

Project description

MkDocs Coverage Plugin

ci documentation pypi version gitter

MkDocs plugin to integrate your coverage HTML report into your site.

Requirements

MkDocs Coverage Plugin requires Python 3.6 or above.

To install Python 3.6, I recommend using pyenv.
# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv

# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

# install Python 3.6
pyenv install 3.6.12

# make it available globally
pyenv global system 3.6.12

Installation

With pip:

python3.6 -m pip install mkdocs-coverage

With pipx:

python3.6 -m pip install --user pipx

pipx install --python python3.6 mkdocs-coverage

Usage

# mkdocs.yml

nav:
- Coverage report: coverage.md

plugins:
- coverage:
    page_name: coverage  # default
    html_report_dir: htmlcov  # default

Now serve your documentation, and go to http://localhost:8000/coverage/ to see your coverage report!

coverage index coverage module

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-coverage-0.2.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_coverage-0.2.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-coverage-0.2.2.tar.gz.

File metadata

  • Download URL: mkdocs-coverage-0.2.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for mkdocs-coverage-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8e3d7889133e189b219f73b46889d8eab7bdab5aea23e1754a9557b70246c6b1
MD5 9feb1e2899b2c5d2fbc51bfbf9827fd9
BLAKE2b-256 1f4717858a194011d564de55582b99d13b43196144ad7fed989f42910f0f3248

See more details on using hashes here.

File details

Details for the file mkdocs_coverage-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_coverage-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for mkdocs_coverage-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05a1c00c4daaa39fe205ad9e65311527fdf52e9e5d13ef88fc6be6b6ec30dcb6
MD5 9f5bd32fc42e9fcb4437252a3c957db9
BLAKE2b-256 90187ddcdb2d69316fa25dc731534b678656c78ae1ba467981f841667d6fe87e

See more details on using hashes here.

Supported by

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