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.4.tar.gz (6.6 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.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkdocs-coverage-0.2.4.tar.gz
  • Upload date:
  • Size: 6.6 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.5

File hashes

Hashes for mkdocs-coverage-0.2.4.tar.gz
Algorithm Hash digest
SHA256 d0535b9ecf0a436fcbda3c8d7d58209d05441d79fa9388e12de99e50631f9b0a
MD5 57a5e8f46c6af17cad3aa990534fad80
BLAKE2b-256 b162f3e2f0cd1f6baa5b53518be07ba395b62de9e0ce4caa699ff67f8c53079a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkdocs_coverage-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.5

File hashes

Hashes for mkdocs_coverage-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7caf6953c8aa10d4386e8536e2e0d3e2f0b4f8a3066f94417bd216ef6e4baa37
MD5 701a45b0990b260f26c55d210697e223
BLAKE2b-256 861cdc0e405a78ed9a6fd1ac5ca7d694ce6f59fb4cb597283b3f35517697f406

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