Commit 726a20c1c6afdad300fd5b00ee4b065c194b7095

Authored by Christoph Deil
1 parent 52162ad1

Add intersphinx_mapping to gammalib

doc/source/conf.py
... ... @@ -23,16 +23,17 @@ import sys, os
23 23 # If your documentation needs a minimal Sphinx version, state it here.
24 24 #needs_sphinx = '1.0'
25 25  
  26 +extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.mathjax']
  27 +
26 28 # Add any Sphinx extension module names here, as strings. They can be extensions
27 29 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28 30 try:
29 31 import sphinxcontrib.doxylink
30   - extensions = ['sphinx.ext.mathjax', 'sphinxcontrib.doxylink']
  32 + extensions += ['sphinxcontrib.doxylink']
31 33 except:
32 34 print('WARNING: Python package `sphinxcontrib.doxylink` not found.\n'
33 35 'WARNING: Please install it to get fully-functional Sphinx docs.\n'
34 36 'WARNING: https://pypi.python.org/pypi/sphinxcontrib-doxylink\n')
35   - extensions = ['sphinx.ext.mathjax']
36 37  
37 38 # http://sphinx-doc.org/extensions.html#where-to-put-your-own-extensions
38 39 sys.path.append(os.path.abspath('exts'))
... ... @@ -45,6 +46,12 @@ extensions += ['rawfiles']
45 46 # output directory by sphinx-build
46 47 rawfiles = ['fhelp']
47 48  
  49 +# This makes it possible to cross-link to the GammaLib Sphinx docs
  50 +# see http://sphinx-doc.org/ext/intersphinx.html
  51 +intersphinx_mapping = dict()
  52 +intersphinx_mapping['gammalib'] = ('http://gammalib.sourceforge.net/', None)
  53 +
  54 +
48 55 # Add any paths that contain templates here, relative to this directory.
49 56 templates_path = ['_templates']
50 57  
... ...
doc/source/user_manual/getting_started/models.rst
... ... @@ -2,4 +2,5 @@ Models available in ctools
2 2 --------------------------
3 3  
4 4 To be written ... (you may read
5   -http://gammalib.sourceforge.net/user_manual/modules/model.html#spectral-models for the time being).
  5 +:ref:`the model section in the GammaLib user manual <gammalib:sec_model>`
  6 +for the time being).
... ...