File tree 5 files changed +9
-14
lines changed
5 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 22
22
* .egg-info /
23
23
.installed.cfg
24
24
* .egg
25
- doc /_build /
26
25
27
26
# PyInstaller
28
27
# Usually these files are written by a python script from a template
@@ -52,7 +51,8 @@ coverage.xml
52
51
* .log
53
52
54
53
# Sphinx documentation
55
- docs /_build /
54
+ doc /_build /
55
+ doc /generated /
56
56
57
57
# PyBuilder
58
58
target /
Original file line number Diff line number Diff line change 36
36
rev : v2.6.2
37
37
hooks :
38
38
- id : prettier
39
- language_version : system
40
39
41
40
- repo : https://github.com/pre-commit/mirrors-mypy
42
41
rev : v0.942
Original file line number Diff line number Diff line change 48
48
49
49
clean :
50
50
rm -rf $(BUILDDIR ) /*
51
+ rm -rf generated/*
51
52
52
53
html :
53
54
$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
Original file line number Diff line number Diff line change 14
14
15
15
# type: ignore
16
16
17
- import os
18
17
import sys
19
18
20
19
import sphinx_autosummary_accessors
@@ -71,6 +70,8 @@ def setup(app):
71
70
app .connect ('autodoc-skip-member' , skip )
72
71
73
72
73
+ autodoc_mock_imports = ['torch' ]
74
+
74
75
# link to github issues
75
76
extlinks = {
76
77
'issue' : ('https://github.com/pangeo-data/xbatcher/issues/%s' , 'GH' )
@@ -146,18 +147,10 @@ def setup(app):
146
147
147
148
# -- Options for HTML output ----------------------------------------------
148
149
149
- on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
150
-
151
- if not on_rtd : # only import and set the theme if we're building docs locally
152
- import sphinx_rtd_theme
153
-
154
- html_theme = 'sphinx_rtd_theme'
155
- html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
156
-
157
150
# The theme to use for HTML and HTML Help pages. See the documentation for
158
151
# a list of builtin themes.
159
152
# tml_theme = 'default'
160
- html_theme = 'sphinx_rtd_theme '
153
+ html_theme = 'pangeo_sphinx_book_theme '
161
154
162
155
# Theme options are theme-specific and customize the look and feel of a theme
163
156
# further. For a list of options available for each theme, see the
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ channels:
3
3
- conda-forge
4
4
- nodefaults
5
5
dependencies :
6
- - python=3.7
6
+ - python=3.8
7
7
- dask
8
8
- docrep
9
9
- ipython
@@ -17,3 +17,5 @@ dependencies:
17
17
- sphinx-copybutton
18
18
- xarray
19
19
- pip
20
+ - pip :
21
+ - pangeo-sphinx-book-theme
You can’t perform that action at this time.
0 commit comments