Skip to content

Commit afb8184

Browse files
committed
Add some design info
1 parent 522735f commit afb8184

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?=
6+
SPHINXOPTS ?= -W
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = _build

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"numpydoc",
3232
"sphinx_gallery.gen_gallery",
3333
"sphinx_automodapi.automodapi",
34+
"sphinx_automodapi.smart_resolver",
3435
]
3536

3637
sphinx_gallery_conf = {
@@ -49,6 +50,7 @@
4950
# This pattern also affects html_static_path and html_extra_path.
5051
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5152

53+
default_role = "py:obj"
5254

5355
# -- Options for HTML output -------------------------------------------------
5456

docs/index.rst

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
.. matplotlib-napari documentation master file, created by
2-
sphinx-quickstart on Fri Apr 29 20:57:13 2022.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
1+
matplotlib-napari
2+
=================
3+
``matplotlib-napari`` is a ``napari`` plugin for generating ``Matplotlib`` plots
4+
from one or more ``napari`` Layers.
55

6-
Welcome to matplotlib-napari's documentation!
7-
=============================================
6+
Design
7+
------
8+
``matplotlib-napari`` contains a number of different ``napari`` widgets. Each
9+
widget is designed to map one or more ``napari`` Layers on to a ``Matplotlib``
10+
plot. As an example, the `~.HistogramWidget` is used to
11+
map one or more Image layers on to a 1D histogram plot.
812

913
.. toctree::
10-
:maxdepth: 2
14+
:maxdepth: 1
1115
:caption: Contents:
1216

1317
auto_examples/index

src/napari_matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
__version__ = "unknown"
55

66

7-
from ._widget import * # NoQA
7+
from .histogram import * # NoQA
File renamed without changes.

0 commit comments

Comments
 (0)