/ README.md
README.md
 1  # MkDocs Coverage Plugin
 2  
 3  [![ci](https://github.com/pawamoy/mkdocs-coverage/workflows/ci/badge.svg)](https://github.com/pawamoy/mkdocs-coverage/actions?query=workflow%3Aci)
 4  [![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://pawamoy.github.io/mkdocs-coverage/)
 5  [![pypi version](https://img.shields.io/pypi/v/mkdocs-coverage.svg)](https://pypi.org/project/mkdocs-coverage/)
 6  [![gitpod](https://img.shields.io/badge/gitpod-workspace-708FCC.svg?style=flat)](https://gitpod.io/#https://github.com/pawamoy/mkdocs-coverage)
 7  [![gitter](https://badges.gitter.im/join%20chat.svg)](https://app.gitter.im/#/room/#mkdocs-coverage:gitter.im)
 8  
 9  MkDocs plugin to integrate your coverage HTML report into your site.
10  
11  ## Installation
12  
13  With `pip`:
14  
15  ```bash
16  pip install mkdocs-coverage
17  ```
18  
19  With [`pipx`](https://github.com/pipxproject/pipx):
20  
21  ```bash
22  python3.8 -m pip install --user pipx
23  pipx install mkdocs-coverage
24  ```
25  
26  ## Usage
27  
28  ```yaml
29  # mkdocs.yml
30  nav:
31  - Coverage report: coverage.md
32  
33  plugins:
34  - coverage:
35      page_path: coverage  # default
36      html_report_dir: htmlcov  # default
37  ```
38  
39  The page path can be nested:
40  
41  ```yaml
42  # mkdocs.yml
43  nav:
44  - Coverage report: dev/reports/coverage.md
45  
46  plugins:
47  - coverage:
48      page_path: dev/reports/coverage
49  ```
50  
51  Now serve your documentation,
52  and go to http://localhost:8000/coverage/
53  to see your coverage report!
54  
55  ![coverage index](https://user-images.githubusercontent.com/3999221/106802970-f4376a80-6663-11eb-8665-e9e09f0f4ac0.png)
56  ![coverage module](https://user-images.githubusercontent.com/3999221/106803017-fe596900-6663-11eb-9df9-973755c5b63e.png)