aboutsummaryrefslogtreecommitdiffstats
path: root/docs/en/rst/conf.py
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2016-05-15 13:55:11 +0200
committerFrédéric Buclin <LpSolit@netscape.net>2016-05-15 13:55:11 +0200
commitc12c092f9fd84cd0f5b5645f61e29fe1260063dc (patch)
tree8e6b38a23387a537ad091706e6bef58291842d46 /docs/en/rst/conf.py
parenta0f06d3134a63b577763e1f272b001182e5e645e (diff)
parent16dd96bdfdadea63e182f0954f06c187cb83e75b (diff)
downloadbugs-c12c092f9fd84cd0f5b5645f61e29fe1260063dc.tar
bugs-c12c092f9fd84cd0f5b5645f61e29fe1260063dc.tar.gz
bugs-c12c092f9fd84cd0f5b5645f61e29fe1260063dc.tar.bz2
bugs-c12c092f9fd84cd0f5b5645f61e29fe1260063dc.tar.xz
bugs-c12c092f9fd84cd0f5b5645f61e29fe1260063dc.zip
Merge branch '5.0' of https://git.mozilla.org/bugzilla/bugzilla
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 3330ca76d..a758fd248 100644
--- a/docs/en/rst/conf.py
+++ b/docs/en/rst/conf.py
@@ -383,4 +383,13 @@ pdf_fit_background_mode = 'scale'
# Temporary highlighting of TODO items
todo_include_todos = False
-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/5.0/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', '')}