diff options
author | Tim Harder <radhermit@gmail.com> | 2018-06-18 08:03:40 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2018-06-18 08:03:40 -0400 |
commit | 6be2fe9efd17e5cc31a92cef4406bb8a51d140b8 (patch) | |
tree | 7981dc4b05a44e88c7526c30400218ff3fc058fc /doc | |
parent | doc/man/pkgcheck.rst: update for new snakeoil man page generation (diff) | |
download | pkgcheck-6be2fe9efd17e5cc31a92cef4406bb8a51d140b8.tar.gz pkgcheck-6be2fe9efd17e5cc31a92cef4406bb8a51d140b8.tar.bz2 pkgcheck-6be2fe9efd17e5cc31a92cef4406bb8a51d140b8.zip |
doc: fix custom content generation for man page
Diffstat (limited to 'doc')
-rw-r--r-- | doc/conf.py | 2 | ||||
-rwxr-xr-x | doc/generate/pkgcheck/checks.py | 8 | ||||
-rwxr-xr-x | doc/generate/pkgcheck/keywords.py | 9 | ||||
-rwxr-xr-x | doc/generate/pkgcheck/reporters.py | 6 |
4 files changed, 7 insertions, 18 deletions
diff --git a/doc/conf.py b/doc/conf.py index 9e2bdbb6..acf029f2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -65,7 +65,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = pkgdist.MODULE +project = pkgdist.MODULE_NAME authors = '' copyright = '2006-2017, pkgcheck contributors' diff --git a/doc/generate/pkgcheck/checks.py b/doc/generate/pkgcheck/checks.py index 52ce11f8..9cd48139 100755 --- a/doc/generate/pkgcheck/checks.py +++ b/doc/generate/pkgcheck/checks.py @@ -1,19 +1,15 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Output rst doc for defined pkgcheck checks. -from __future__ import print_function - from collections import defaultdict import sys from textwrap import dedent -from snakeoil.sequences import unstable_unique - from pkgcheck.scripts.pkgcheck import _known_checks -def main(f=sys.stdout): +def main(f=sys.stdout, **kwargs): def out(s, **kwargs): print(s, file=f, **kwargs) diff --git a/doc/generate/pkgcheck/keywords.py b/doc/generate/pkgcheck/keywords.py index edc1d6e8..8a3e675a 100755 --- a/doc/generate/pkgcheck/keywords.py +++ b/doc/generate/pkgcheck/keywords.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Output rst doc for defined pkgcheck keywords. @@ -13,19 +13,14 @@ mode (e.g. \`pkgcheck --list-keywords -v\`) will colorize and sort the output into scopes. """ -from __future__ import print_function - -from itertools import chain import sys from textwrap import dedent -from snakeoil.sequences import unstable_unique - from pkgcheck import base from pkgcheck.scripts.pkgcheck import _known_keywords -def main(f=sys.stdout): +def main(f=sys.stdout, **kwargs): def out(s, **kwargs): print(s, file=f, **kwargs) diff --git a/doc/generate/pkgcheck/reporters.py b/doc/generate/pkgcheck/reporters.py index d3cfb606..9e9f813a 100755 --- a/doc/generate/pkgcheck/reporters.py +++ b/doc/generate/pkgcheck/reporters.py @@ -1,9 +1,7 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Output rst doc for defined pkgcheck reporters. -from __future__ import print_function - import sys from textwrap import dedent @@ -13,7 +11,7 @@ from snakeoil.sequences import unstable_unique from pkgcheck import plugins -def main(f=sys.stdout): +def main(f=sys.stdout, **kwargs): def out(s, **kwargs): print(s, file=f, **kwargs) |