File tree Expand file tree Collapse file tree 3 files changed +34
-6
lines changed Expand file tree Collapse file tree 3 files changed +34
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Docs
2
+
3
+ on : [push, pull_request]
4
+
5
+
6
+ defaults :
7
+ run :
8
+ shell : bash -l {0}
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-20.04
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Setup conda
15
+ uses : conda-incubator/setup-miniconda@v2
16
+ with :
17
+ activate-environment : ipympl-dev
18
+ environment-file : dev-environment.yml
19
+ python-version : ${{ matrix.python-version }}
20
+ mamba-version : " *"
21
+ auto-activate-base : false
22
+ channels : conda-forge
23
+ - name : Install
24
+ run : python -m pip install -v .[docs]
25
+ - name : Build
26
+ run : make -C docs html
27
+ - name : Publish
28
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
29
+ uses : peaceiris/actions-gh-pages@v3
30
+ with :
31
+ github_token : ${{ secrets.GITHUB_TOKEN }}
32
+ publish_dir : ./docs/_build/html
33
+ force_orphan : true
Original file line number Diff line number Diff line change 34
34
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
35
35
# ones.
36
36
extensions = [
37
- "jupyter_sphinx" ,
38
37
"myst_nb" ,
39
38
"sphinx.ext.intersphinx" ,
40
39
"sphinx.ext.linkcode" ,
41
40
"sphinx.ext.mathjax" ,
42
41
"sphinx_copybutton" ,
43
- "sphinx_panels" ,
44
42
"sphinx_thebe" ,
45
43
"sphinx_togglebutton" ,
46
44
]
59
57
"python" : ("https://docs.python.org/3" , None ),
60
58
}
61
59
62
- # remove panels css to get wider main content
63
- panels_add_bootstrap_css = False
64
60
65
61
# Settings for copybutton
66
62
copybutton_prompt_is_regexp = True
Original file line number Diff line number Diff line change 66
66
'ipywidgets>=7.6.0,<8' ,
67
67
'matplotlib>=2.0.0,<4' ,
68
68
],
69
- extra_requires = {
69
+ extras_require = {
70
70
"docs" : [
71
71
"myst-nb" ,
72
72
"Sphinx >= 1.5" ,
73
73
"sphinx-copybutton" ,
74
- "sphinx-panels" ,
75
74
"sphinx-thebe" ,
76
75
"sphinx-togglebutton" ,
77
76
"sphinx-book-theme" ,
You can’t perform that action at this time.
0 commit comments