mkdocs-coverage-2.0.0
توضیحات
MkDocs plugin to integrate your coverage HTML report into your site.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | mkdocs-coverage-2.0.0 |
| نام | mkdocs-coverage |
| نسخه کتابخانه | 2.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/mkdocs-coverage/ |
| مجوز | - |
# MkDocs Coverage Plugin
[](https://github.com/pawamoy/mkdocs-coverage/actions?query=workflow%3Aci)
[](https://pawamoy.github.io/mkdocs-coverage/)
[](https://pypi.org/project/mkdocs-coverage/)
[](https://app.gitter.im/#/room/#mkdocs-coverage:gitter.im)
MkDocs plugin to integrate your coverage HTML report into your site.
## Installation
```bash
pip install mkdocs-coverage
```
```bash
python3.8 -m pip install --user pipx
pipx install mkdocs-coverage
```
## Usage
```yaml
# mkdocs.yml
nav:
- Coverage report: coverage.md
plugins:
- coverage:
page_path: coverage # default
html_report_dir: htmlcov # default
```
The page path can be nested:
```yaml
# mkdocs.yml
nav:
- Coverage report: dev/reports/coverage.md
plugins:
- coverage:
page_path: dev/reports/coverage
```
If the page doesn't exist, it will be created. If the page exists, the coverage report will be appended at the end.
You can choose *where* to insert the coverage report in the page thanks to the `placeholder` setting:
```yaml
# mkdocs.yml
nav:
- Coverage report: dev/coverage.md # existing page
plugins:
- coverage:
page_path: dev/coverage
placeholder: "[INSERT REPORT HERE]"
```
In your page:
```md
# Some page
Some text.
## Coverage report
[INSERT REPORT HERE]
```
The plugin will replace any such string with the coverage report. **The default placeholder is `<!-- mkdocs-coverage -->`**.
Now serve your documentation,
and go to http://localhost:8000/coverage/
to see your coverage report!


نیازمندی
| مقدار | نام |
|---|---|
| - | mkdocs>=1.6 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl mkdocs-coverage-2.0.0:
pip install mkdocs-coverage-2.0.0.whl
نصب پکیج tar.gz mkdocs-coverage-2.0.0:
pip install mkdocs-coverage-2.0.0.tar.gz