Skip to content

Commit

Permalink
Added Intersphinx and mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
shraddha-aangiras committed Jul 5, 2024
1 parent 382b85e commit 4fc317b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'sphinx.ext.napoleon',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
# This is used by qiskit/documentation to generate links to github.com.
"sphinx.ext.linkcode",
'jupyter_sphinx',
Expand Down Expand Up @@ -65,6 +66,19 @@
link_str = f" https://github.com/Qiskit/qiskit-ibm-runtime/blob/stable/{vers[0]}.{vers[1]}/docs/"
nbsphinx_prolog += link_str + "{{ docname }}"

# ----------------------------------------------------------------------------------
# Intersphinx
# ----------------------------------------------------------------------------------

intersphinx_mapping = {
"rustworkx": ("https://www.rustworkx.org/", None),
"qiskit": ("https://docs.quantum.ibm.com/api/qiskit/", None),
"qiskit-aer": ("https://qiskit.github.io/qiskit-aer/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
"python": ("https://docs.python.org/3/", None),
}

# -----------------------------------------------------------------------------
# Autosummary
# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 4fc317b

Please sign in to comment.