summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-11-29 21:33:05 +0900
committerGitHub <noreply@github.com>2018-11-29 21:33:05 +0900
commit050bc4a2e75466caa33239ffeda0e4e74c69d1fd (patch)
tree2a657df0559dc5a16be8eb0d42b252d69299491b /docs/conf.py
parent6b672b39a05ec605bda28115ce922a6f449442a7 (diff)
parent55cea2c020827e28004f10a63f6b0fb6930b5ca1 (diff)
downloadpastedeploy-git-setup-py-update.tar.gz
Merge branch 'master' into setup-py-updatesetup-py-update
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py27
1 files changed, 19 insertions, 8 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 17bdf1c..00d8761 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -11,7 +11,8 @@
# All configuration values have a default value; values that are commented out
# serve to show the default value.
-import sys
+import datetime
+import pkg_resources
import pylons_sphinx_themes
# If your extensions are in another directory, add it here.
@@ -22,28 +23,38 @@ import pylons_sphinx_themes
# 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']
+extensions = [
+ 'sphinx.ext.autodoc',
+ 'sphinx.ext.intersphinx',
+]
+
+# Looks for objects in external projects
+intersphinx_mapping = {
+ 'python': ('https://docs.python.org/3/', None),
+}
# Add any paths that contain templates here, relative to this directory.
-templates_path = ['_templates']
+# templates_path = ['_templates']
# The suffix of source filenames.
-source_suffix = '.txt'
+source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General substitutions.
+thisyear = datetime.datetime.now().year
project = 'Paste Deploy'
-copyright = '2011, Ian Bicking and contributors'
+copyright = '2011-%s, Ian Bicking and contributors' % thisyear
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
#
# The short X.Y version.
-version = '1.5'
+version = pkg_resources.get_distribution('pastedeploy').version
+
# The full version, including alpha/beta/rc tags.
-release = '1.5.2'
+release = version
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
@@ -86,7 +97,7 @@ html_theme_options = dict(
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
+# html_static_path = ['_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.