summaryrefslogtreecommitdiffstats
path: root/docs/en/rst/conf.py
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-04-09 01:32:24 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2016-04-09 01:32:24 +0200
commitfb7c253e86deaa46790a8a1874fa976c9771e677 (patch)
tree6c08acd49720a87ddf4c32edcbf9997f5e52fd97 /docs/en/rst/conf.py
parentfa360bee1863b1cb715a29966567ae08118de9a5 (diff)
downloadbugzilla-fb7c253e86deaa46790a8a1874fa976c9771e677.tar.gz
bugzilla-fb7c253e86deaa46790a8a1874fa976c9771e677.tar.xz
Bug 1204957 - Locally compiled POD documentation is no longer accessible from docs/en/html/api/
r=dkl
Diffstat (limited to 'docs/en/rst/conf.py')
-rw-r--r--docs/en/rst/conf.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/en/rst/conf.py b/docs/en/rst/conf.py
index 10d18cadb..31437294d 100644
--- a/docs/en/rst/conf.py
+++ b/docs/en/rst/conf.py
@@ -385,7 +385,16 @@ pdf_fit_background_mode = 'scale'
# Temporary highlighting of TODO items
todo_include_todos = True
-extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug ')}
+# The readthedocs.org website cannot access POD.
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
+if on_rtd:
+ base_api_url = 'https://www.bugzilla.org/docs/tip/en/html/api/'
+else:
+ base_api_url = '../integrating/api/'
+
+extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug '),
+ 'api': (base_api_url + '%s', '')}
# -- Assemble extension documentation ------------------------------------------