diff --git a/docs/conf.py b/docs/conf.py index 0112c7cb..f0f9a51c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -109,8 +109,9 @@ def _gen_checks_by_importance(): """) for importance_level, checks in dd.items(): - f.write(f"""{importance_level} -{'-' * (len(f'{importance_level}') + 1)} + heading = f"{importance_level} ({len(checks)})" + f.write(f"""{heading} +{'-' * len(heading)} """)