From 01c3167cfe29ade30bdbf4dd2f2c1d8c85ed8f5d Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sun, 11 Dec 2016 15:14:09 +0100 Subject: Activate intersphinx (#583) * Activate intersphinx That adds links to CPython docs and cryptography. Also let the copyright at 2001 which seems to be just fine and gives us reproducible builds. * Appease docs builder --- doc/conf.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/conf.py b/doc/conf.py index 9eba065..3940dd2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -52,9 +52,12 @@ sys.path.insert(0, os.path.abspath(os.path.join(DOC_DIR, ".."))) # If your documentation needs a minimal Sphinx version, state it here. needs_sphinx = '1.0' -# Add any Sphinx extension module names here, as strings. They can be extensions -# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ["sphinx.ext.autodoc"] +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = [ + "sphinx.ext.autodoc", + 'sphinx.ext.intersphinx', +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -71,7 +74,7 @@ master_doc = 'index' # General information about the project. project = u'pyOpenSSL' authors = u"The pyOpenSSL developers" -copyright = u"2001-{0}, {1}".format(datetime.date.today().year, authors) +copyright = u"2001 " + authors # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -249,3 +252,8 @@ man_pages = [ ('index', 'pyopenssl', u'pyOpenSSL Documentation', [authors], 1) ] + +intersphinx_mapping = { + "https://docs.python.org/3": None, + "https://cryptography.io/en/latest/": None, +} -- cgit v1.2.1