Skip to content

Commit 7b4102b

Browse files
authored
Merge pull request #83 from dstansby/readthedocs
Add doc hosting on readthedocs
2 parents fe1d614 + 27dcdc9 commit 7b4102b

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

.readthedocs.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
python:
4+
install:
5+
- method: pip
6+
path: .
7+
extra_requirements:
8+
- docs
9+
10+
build:
11+
os: ubuntu-22.04
12+
tools:
13+
python: "3.10"
14+
apt_packages:
15+
- xvfb

docs/conf.py

+16-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# import os
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
16-
import qtgallery
16+
# import qtgallery
1717

1818
# -- Project information -----------------------------------------------------
1919

@@ -30,18 +30,30 @@
3030
extensions = [
3131
"numpydoc",
3232
"sphinx_gallery.gen_gallery",
33+
# "qtgallery",
3334
"sphinx_automodapi.automodapi",
3435
"sphinx_automodapi.smart_resolver",
3536
"sphinx.ext.intersphinx",
3637
]
3738

3839
sphinx_gallery_conf = {
39-
"filename_pattern": ".",
40-
"image_scrapers": (qtgallery.qtscraper,),
41-
"reset_modules": (qtgallery.reset_qapp,),
40+
# Don't run any gallery examples, because they're not working on
41+
# readthedocs at the moment
42+
"filename_pattern": "a^",
43+
# "image_scrapers": (qtgallery.qtscraper,),
44+
# "reset_modules": (qtgallery.reset_qapp,),
4245
}
4346

47+
48+
# qtgallery_conf = {
49+
# "xvfb_size": (640, 480),
50+
# "xvfb_color_depth": 24,
51+
# "xfvb_use_xauth": False,
52+
# "xfvb_extra_args": [],
53+
# }
54+
4455
numpydoc_show_class_members = False
56+
automodapi_inheritance_diagram = False
4557

4658
intersphinx_mapping = {
4759
"napari": ("https://napari.org/", None),

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ napari.manifest =
4646

4747
[options.extras_require]
4848
docs =
49+
napari[all]
4950
numpydoc
5051
pydata-sphinx-theme
51-
qtgallery
5252
sphinx
5353
sphinx-automodapi
5454
sphinx-gallery

0 commit comments

Comments
 (0)