Skip to content

Commit eb13a7c

Browse files
authored
Add intersphinx extension for linking to other orgs (Qiskit/qiskit-metapackage#1769)
Adding intersphinx extension to allow for linking to other orgs in docs I added links for `matplotlib.figure.Figure` return types to the visualization docs in Qiskit#10389 , and @Eric-Arellano requested in Qiskit#10389 (review) to make that change here as well. It didn't appear that the intersphinx extension was being used in this repo (I didn't find it in `docs/conf.py`), so I added the extension and all the mappings from qiskit-terra. Let me know if that's not the correct approach to take here. --------- Signed-off-by: Paul S. Schweigert <[email protected]>
1 parent a060c30 commit eb13a7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"matplotlib.sphinxext.plot_directive",
5959
"qiskit_sphinx_theme",
6060
"sphinx.ext.doctest",
61+
"sphinx.ext.intersphinx",
6162
]
6263

6364
nbsphinx_timeout = 300
@@ -136,6 +137,14 @@
136137
),
137138
}
138139

140+
intersphinx_mapping = {
141+
"rustworkx": ("https://qiskit.org/ecosystem/rustworkx/", None),
142+
"qiskit-ibm-runtime": ("https://qiskit.org/ecosystem/ibm-runtime/", None),
143+
"qiskit-aer": ("https://qiskit.org/ecosystem/aer/", None),
144+
"numpy": ("https://numpy.org/doc/stable/", None),
145+
"matplotlib": ("https://matplotlib.org/stable/", None),
146+
}
147+
139148
# -- Options for HTML output -------------------------------------------------
140149

141150
html_theme = "qiskit_sphinx_theme"

0 commit comments

Comments
 (0)