From 6106b552cd4a97aba4ecf6577a10acaf24727ef2 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Mon, 7 Nov 2016 11:23:12 +0000 Subject: [PATCH] Pain in the arse. sphinx.ext.extlinks doesn't work for me. --- doc/conf.py | 1 + doc/index.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 7c1e34c5c..94e3adae9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -60,6 +60,7 @@ copyright = u'{}, Paul McCarthy, FMRIB Centre, University of Oxford'.format( # Links to other things rst_epilog = """ +.. |fsleyes_apidoc| replace:: FSLeyes .. _fsleyes_apidoc: http://users.fmrib.ox.ac.uk/~paulmc/fsleyes_apidoc/index.html """ diff --git a/doc/index.rst b/doc/index.rst index 91903fe8c..2c342156a 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -4,7 +4,7 @@ The ``fslpy`` package is a collection of utilities and data abstractions used -by `FSLeyes <fsleyes_apidoc>`_. +by |fsleyes_apidoc|_. .. toctree:: :hidden: -- GitLab