DocsCov
DocsCov is a Sphinx extension that allows you to show a badge showing documentation coverage for C++ (or any other Doxygen supported) code.
Getting Started
First, install it by (requires python 3.6+):
pip install docscov
You need to use Doxygen to generate XML data about the source files. To do that, add the following to your Doxygen configuration: (not needed if you’re using tools like Breathe or Exhale, you should have this already)
GENERATE_XML = YES
This will generate XML data about source files. Now just add docscov to your Sphinx extensions and add the following to your conf.py:
docscov_config = {
"xml_dir": "<path to generated XML by Doxygen>"
}
It’ll places a JSON file inside built documentations, which can be used with Shields to make a dynamic badge, updated each time documentations are built.
Getting the badge
To get the badge do the following:
Get the URL to your generated documentations (with http:// or https://)
Replace the : with %3A in the URL
Replace all slashes (/) in the text you got by completing step 2
Replace <url> in the following text with the text you got by completing step 3, and the text you’ll get is the URL to your badge that can be placed in your README:
https://img.shields.io/endpoint?url=<url>%2F_static%2Fdocscov.json
Example: https://pypp.readthedocs.io/en/latest will be converted to this after following above: https://img.shields.io/endpoint?url=https%3A%2F%2Fpypp.readthedocs.io%2Fen%2Flatest%2F_static%2Fdocscov.json
Configurable options
You can configure DocsCov with the following options:
xml_dir:
Value type: str
Description: Path to Doxygen XML output
root_dir:
Value type: str
Description: Path to process relative directories.
Notes: Optional.
Default: '.'
badge_label:
Value type: str
Description: The label of badge.
Notes: Optional.
Default: 'docscov'
scope:
Value type: list
Description: Coverage scope. Possible values of elements:
public: Include public members of classes
protected: Include protected members of classes
private: Include private members of classes
all: All of above
Notes: Optional.
Default: ['all']
kind:
Value type: list
Description: Kind of definitions to include in coverage. Possible values of elements:
class
define
enum
enumvalue
file
friend
function
namespace
page
signal
slot
struct
typedef
union
variable
all: All of above
Notes: Optional.
Default: ['all']
Metadata
Release files for docscov 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docscov-1.1.3.tar.gz | 4.0 kB | Without provenance | Details for docscov-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docscov-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for docscov-1.1.3-py3-none-any.whl |
Total release size: 20.1 kB
Release files / docscov-1.1.3.tar.gz
| Download URL | docscov-1.1.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f407486f039cd2cea59b12bf1aeaa004fccf6d8671c60b3cc8ab4919c97915e4
|
|
BLAKE2b-256 checksum How to use checksums |
a503c89bacef9f92b39517b94876e20d36060a1e08c046b8a22793e1b913f8d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
|
Release files / docscov-1.1.3-py3-none-any.whl
| Download URL | docscov-1.1.3-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a772180474a8f4b59acf7209c8299223629b2a9ade416be1220e11e8f6c27128
|
|
BLAKE2b-256 checksum How to use checksums |
61a14149c39e174035073f568f51b96473de0876933a4d957a715e27d07d5696
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
|
Security for docscov 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.