diff options
Diffstat (limited to '_doc/conf.py')
-rw-r--r-- | _doc/conf.py | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/_doc/conf.py b/_doc/conf.py index 30a76f5..67fcc0e 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -28,7 +28,7 @@ import os # NOQA # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [] +extensions = [] # type: ignore # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -45,11 +45,11 @@ source_suffix = ['.rst'] master_doc = 'index' # General information about the project. -project = u'yaml' -copyright = u'2017-2019, Anthon van der Neut, Ruamel bvba' -author = u'Anthon van der Neut' +project = 'yaml' +copyright = '2017-2021, Anthon van der Neut, Ruamel bvba' +author = 'Anthon van der Neut' -# The version info for the project you're documenting, acts as replacement for +# The version info for the project you are documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # @@ -74,15 +74,13 @@ class ryd2rst: if True: try: - from ryd.__main__ import RYDCmd - from ruamel.std.pathlib import Path + from ryd.__main__ import main + from pathlib import Path oldargv = sys.argv for fn in Path('.').glob('*.ryd'): sys.argv = ['ryd', 'convert', '--no-pdf', str(fn)] - rc = RYDCmd() - rc.parse_args() - print(sys.argv, '->', rc.run()) + main(sys.argv) sys.argv = oldargv except Exception as e: @@ -251,8 +249,8 @@ latex_documents = [ ( master_doc, 'yaml.tex', - u'Python YAML package documentation', - u'Anthon van der Neut', + 'Python YAML package documentation', + 'Anthon van der Neut', 'manual', ) ] @@ -282,7 +280,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [(master_doc, 'yaml', u'yaml Documentation', [author], 1)] +man_pages = [(master_doc, 'yaml', 'yaml Documentation', [author], 1)] # If true, show URL addresses after external links. # man_show_urls = False @@ -297,7 +295,7 @@ texinfo_documents = [ ( master_doc, 'yaml', - u'yaml Documentation', + 'yaml Documentation', author, 'yaml', 'One line description of project.', |