Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #143 from SpiNNakerManchester/doc-xref
Browse files Browse the repository at this point in the history
Factor out the version of linked docs
  • Loading branch information
Christian-B committed Apr 24, 2023
2 parents 703f163 + 6e93b31 commit 503fbaf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,18 @@
'sphinx.ext.intersphinx'
]

# Which version of other SpiNNaker docs do we refer to?
spinnaker_doc_version = "latest"

intersphinx_mapping = {
'python': ('https://docs.python.org/3.8', None),
'numpy': ("https://numpy.org/doc/1.20/", None),
'spinn_utilities': (
'https://spinnutils.readthedocs.io/en/latest/', None),
f'https://spinnutils.readthedocs.io/en/{spinnaker_doc_version}/',
None),
'spinn_machine': (
'https://spinnmachine.readthedocs.io/en/latest/', None),
f'https://spinnmachine.readthedocs.io/en/{spinnaker_doc_version}/',
None),
}

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -74,7 +79,7 @@

# General information about the project.
project = u'DataSpecification'
copyright = u'2014-2021'
copyright = u'2014'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -294,7 +299,7 @@
epub_title = u'DataSpecification'
epub_author = u''
epub_publisher = u''
epub_copyright = u'2014-2019'
epub_copyright = u'2014'

# The basename for the epub file. It defaults to the project name.
# epub_basename = u'data_allocation'
Expand Down

0 comments on commit 503fbaf

Please sign in to comment.