diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-03 22:14:57 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-03 22:14:57 +0200 |
commit | dce10fcff1de54121fb8b440b883ef5d3fe2f96a (patch) | |
tree | 072b4bd247e6f1cd95c08c7b67fea0fc96f0578e /_doc | |
parent | 2966a4f215861fa05e0dc7e0cd53350766e794c6 (diff) | |
download | ruamel.yaml-dce10fcff1de54121fb8b440b883ef5d3fe2f96a.tar.gz |
Apply oitnb and mypy 0.620, then make everything work again0.15.48
Diffstat (limited to '_doc')
-rw-r--r-- | _doc/_static/pypi.svg | 2 | ||||
-rw-r--r-- | _doc/conf.py | 35 |
2 files changed, 22 insertions, 15 deletions
diff --git a/_doc/_static/pypi.svg b/_doc/_static/pypi.svg index 42d5a40..45c5650 100644 --- a/_doc/_static/pypi.svg +++ b/_doc/_static/pypi.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="86" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h33v20H0z"/><path fill="#007ec6" d="M33 0h53v20H33z"/><path fill="url(#b)" d="M0 0h86v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="230">pypi</text><text x="175" y="140" transform="scale(.1)" textLength="230">pypi</text><text x="585" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">0.15.47</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.15.47</text></g> </svg> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="86" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h33v20H0z"/><path fill="#007ec6" d="M33 0h53v20H33z"/><path fill="url(#b)" d="M0 0h86v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="230">pypi</text><text x="175" y="140" transform="scale(.1)" textLength="230">pypi</text><text x="585" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">0.15.48</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.15.48</text></g> </svg> diff --git a/_doc/conf.py b/_doc/conf.py index 19a19a3..632b117 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -13,7 +13,7 @@ # serve to show the default. import sys # NOQA -import os # NOQA +import os # NOQA # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -55,6 +55,7 @@ author = u'Anthon van der Neut' # try: from ruamel.yaml import __version__, version_info # NOQA + # The short X.Y version. version = '.'.join([str(l) for l in version_info[:3]]) # The full version, including alpha/beta/rc tags. @@ -69,6 +70,7 @@ print('ruamel.yaml version', version) try: from ryd.__main__ import RYDCmd from ruamel.std.pathlib import Path + oldargv = sys.argv for fn in Path('.').glob('*.ryd'): sys.argv = ['ryd', 'convert', '--no-pdf', str(fn)] @@ -141,7 +143,7 @@ html_theme = 'default' # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". -html_title = "Python YAML package documentation" +html_title = 'Python YAML package documentation' # A shorter title for the navigation bar. Default is the same as html_title. # html_short_title = None @@ -228,13 +230,10 @@ htmlhelp_basename = 'yamldoc' latex_elements = { # The paper size ('letterpaper' or 'a4paper'). 'papersize': 'a4paper', - # The font size ('10pt', '11pt' or '12pt'). # 'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. # 'preamble': '', - # Latex figure (float) alignment # 'figure_align': 'htbp', } @@ -243,8 +242,13 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'yaml.tex', u'Python YAML package documentation', - u'Anthon van der Neut', 'manual'), + ( + master_doc, + 'yaml.tex', + u'Python YAML package documentation', + u'Anthon van der Neut', + 'manual', + ) ] # The name of an image file (relative to this directory) to place at the top of @@ -272,10 +276,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', u'yaml Documentation', [author], 1)] # If true, show URL addresses after external links. # man_show_urls = False @@ -287,9 +288,15 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'yaml', u'yaml Documentation', - author, 'yaml', 'One line description of project.', - 'Miscellaneous'), + ( + master_doc, + 'yaml', + u'yaml Documentation', + author, + 'yaml', + 'One line description of project.', + 'Miscellaneous', + ) ] # Documents to append as an appendix to all manuals. |