Skip to content

Commit 89404e5

Browse files
committed
Add intersphinx to docs
1 parent afb8184 commit 89404e5

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docs/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"sphinx_gallery.gen_gallery",
3333
"sphinx_automodapi.automodapi",
3434
"sphinx_automodapi.smart_resolver",
35+
"sphinx.ext.intersphinx",
3536
]
3637

3738
sphinx_gallery_conf = {
@@ -42,6 +43,11 @@
4243

4344
numpydoc_show_class_members = False
4445

46+
intersphinx_mapping = {
47+
"napari": ("https://napari.org/", None),
48+
"matplotlib": ("https://matplotlib.org/", None),
49+
}
50+
4551
# Add any paths that contain templates here, relative to this directory.
4652
templates_path = ["_templates"]
4753

src/napari_matplotlib/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ class NapariMPLWidget(QWidget):
1010
"""
1111
Attributes
1212
----------
13-
viewer : napari.viewer.Viewer
13+
viewer : `napari.Viewer`
1414
Main napari viewer.
15-
figure : matplotlib.figure.Figure
15+
figure : `matplotlib.figure.Figure`
1616
Matplotlib figure.
1717
canvas : matplotlib.backends.backend_qt5agg.FigureCanvas
1818
Matplotlib canvas.
19-
axes : matplotlib.axes.Axes
19+
axes : `matplotlib.axes.Axes`
2020
Matplotlib axes.
2121
"""
2222

src/napari_matplotlib/histogram.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class HistogramWidget(NapariMPLWidget):
1212
1313
Attributes
1414
----------
15-
layer : napari.layers.Layer
15+
layer : `napari.layers.Layer`
1616
Current layer being histogrammed.
1717
"""
1818

0 commit comments

Comments
 (0)