Commit 726a20c1c6afdad300fd5b00ee4b065c194b7095
1 parent
52162ad1
Add intersphinx_mapping to gammalib
Showing
2 changed files
with
11 additions
and
3 deletions
doc/source/conf.py
| @@ -23,16 +23,17 @@ import sys, os | @@ -23,16 +23,17 @@ import sys, os | ||
| 23 | # If your documentation needs a minimal Sphinx version, state it here. | 23 | # If your documentation needs a minimal Sphinx version, state it here. |
| 24 | #needs_sphinx = '1.0' | 24 | #needs_sphinx = '1.0' |
| 25 | 25 | ||
| 26 | +extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.mathjax'] | ||
| 27 | + | ||
| 26 | # Add any Sphinx extension module names here, as strings. They can be extensions | 28 | # Add any Sphinx extension module names here, as strings. They can be extensions |
| 27 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | 29 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 28 | try: | 30 | try: |
| 29 | import sphinxcontrib.doxylink | 31 | import sphinxcontrib.doxylink |
| 30 | - extensions = ['sphinx.ext.mathjax', 'sphinxcontrib.doxylink'] | 32 | + extensions += ['sphinxcontrib.doxylink'] |
| 31 | except: | 33 | except: |
| 32 | print('WARNING: Python package `sphinxcontrib.doxylink` not found.\n' | 34 | print('WARNING: Python package `sphinxcontrib.doxylink` not found.\n' |
| 33 | 'WARNING: Please install it to get fully-functional Sphinx docs.\n' | 35 | 'WARNING: Please install it to get fully-functional Sphinx docs.\n' |
| 34 | 'WARNING: https://pypi.python.org/pypi/sphinxcontrib-doxylink\n') | 36 | 'WARNING: https://pypi.python.org/pypi/sphinxcontrib-doxylink\n') |
| 35 | - extensions = ['sphinx.ext.mathjax'] | ||
| 36 | 37 | ||
| 37 | # http://sphinx-doc.org/extensions.html#where-to-put-your-own-extensions | 38 | # http://sphinx-doc.org/extensions.html#where-to-put-your-own-extensions |
| 38 | sys.path.append(os.path.abspath('exts')) | 39 | sys.path.append(os.path.abspath('exts')) |
| @@ -45,6 +46,12 @@ extensions += ['rawfiles'] | @@ -45,6 +46,12 @@ extensions += ['rawfiles'] | ||
| 45 | # output directory by sphinx-build | 46 | # output directory by sphinx-build |
| 46 | rawfiles = ['fhelp'] | 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 | # Add any paths that contain templates here, relative to this directory. | 55 | # Add any paths that contain templates here, relative to this directory. |
| 49 | templates_path = ['_templates'] | 56 | templates_path = ['_templates'] |
| 50 | 57 |
doc/source/user_manual/getting_started/models.rst
| @@ -2,4 +2,5 @@ Models available in ctools | @@ -2,4 +2,5 @@ Models available in ctools | ||
| 2 | -------------------------- | 2 | -------------------------- |
| 3 | 3 | ||
| 4 | To be written ... (you may read | 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). |