Skip to content

Commit 06ca4e3

Browse files
committed
fix demo python file locations
1 parent 1f09a32 commit 06ca4e3

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/source/conf.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,19 @@
421421
bibtex_bibfiles = ['demos/demo_references.bib', '_static/bibliography.bib', '_static/firedrake-apps.bib', '_static/references.bib']
422422

423423
# -- Options for sphinx.ext.extlinks ------------------------------------
424-
extlinks = {
425-
'demo': ('https://firedrakeproject.org/demos/%s', None)
426-
}
424+
extlinks = {}
425+
if tags.has('master'):
426+
extlinks['demo'] = (
427+
'https://firedrakeproject.org/firedrake/demos/%s', None
428+
)
429+
elif tags.has('release'):
430+
extlinks['demo'] = (
431+
'https://firedrakeproject.org/demos/%s', None
432+
)
433+
else:
434+
extlinks['demo'] = (
435+
'%s', None
436+
)
427437

428438
# -- Options for sphinx_reredirects ------------------------------------
429439
redirects = {

0 commit comments

Comments
 (0)