aboutsummaryrefslogtreecommitdiff
path: root/sites/www/conf.py
diff options
context:
space:
mode:
authorJeremy T. Bouse <jbouse@debian.org>2014-02-14 21:29:59 -0500
committerJeremy T. Bouse <jbouse@debian.org>2014-02-14 21:29:59 -0500
commit3f4d155d984fd27cedd0a333bf44e4724f33e30a (patch)
treeee06fc2a9ec6c5f144015dcbd67763f539d9aa51 /sites/www/conf.py
parentd45f78c1381a1f583306c5b6a89989f478980c2f (diff)
parent3bb46c9cb414ca82afab715d2d0cc00ed71cfb6d (diff)
downloadpython-paramiko-3f4d155d984fd27cedd0a333bf44e4724f33e30a.tar
python-paramiko-3f4d155d984fd27cedd0a333bf44e4724f33e30a.tar.gz
Merge tag 'upstream/1.12.2'
Upstream version 1.12.2
Diffstat (limited to 'sites/www/conf.py')
-rw-r--r--sites/www/conf.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/sites/www/conf.py b/sites/www/conf.py
new file mode 100644
index 0000000..481acdf
--- /dev/null
+++ b/sites/www/conf.py
@@ -0,0 +1,35 @@
+# Obtain shared config values
+import sys
+import os
+from os.path import abspath, join, dirname
+
+sys.path.append(abspath(join(dirname(__file__), '..')))
+from shared_conf import *
+
+# Local blog extension
+sys.path.append(abspath('.'))
+extensions.append('blog')
+rss_link = 'http://paramiko.org'
+rss_description = 'Paramiko project news'
+
+# Releases changelog extension
+extensions.append('releases')
+releases_release_uri = "https://github.com/paramiko/paramiko/tree/%s"
+releases_issue_uri = "https://github.com/paramiko/paramiko/issues/%s"
+
+# Intersphinx for referencing API/usage docs
+extensions.append('sphinx.ext.intersphinx')
+# Default is 'local' building, but reference the public docs site when building
+# under RTD.
+target = join(dirname(__file__), '..', 'docs', '_build')
+if os.environ.get('READTHEDOCS') == 'True':
+ # TODO: switch to docs.paramiko.org post go-live of sphinx API docs
+ target = 'http://paramiko-docs.readthedocs.org/en/latest/'
+#intersphinx_mapping = {
+# 'docs': (target, None),
+#}
+
+# Sister-site links to API docs
+html_theme_options['extra_nav_links'] = {
+ "API Docs": 'http://docs.paramiko.org',
+}