aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2018-06-18 08:03:40 -0400
committerTim Harder <radhermit@gmail.com>2018-06-18 08:03:40 -0400
commit6be2fe9efd17e5cc31a92cef4406bb8a51d140b8 (patch)
tree7981dc4b05a44e88c7526c30400218ff3fc058fc /doc
parentdoc/man/pkgcheck.rst: update for new snakeoil man page generation (diff)
downloadpkgcheck-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.py2
-rwxr-xr-xdoc/generate/pkgcheck/checks.py8
-rwxr-xr-xdoc/generate/pkgcheck/keywords.py9
-rwxr-xr-xdoc/generate/pkgcheck/reporters.py6
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)