File tree Expand file tree Collapse file tree 3 files changed +65
-1
lines changed Expand file tree Collapse file tree 3 files changed +65
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Docs
2
+ on : [push, release]
3
+
4
+ jobs :
5
+ notebooks :
6
+ name : " Build the notebooks for the docs"
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ with :
11
+ lfs : true
12
+ - name : Set up Python
13
+ uses : actions/setup-python@v5
14
+ with :
15
+ python-version : 3.11
16
+ - name : Install llvmpipe and lavapipe for offscreen canvas
17
+ run : |
18
+ sudo apt-get update -y -qq
19
+ sudo apt-get install --no-install-recommends -y ffmpeg libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers git-lfs
20
+ - name : Install dev dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip setuptools
23
+ # remove pygfx from install_requires, we install using pygfx@main
24
+ sed -i "/pygfx/d" ./setup.py
25
+ pip install git+https://github.com/pygfx/pygfx.git@main
26
+ pip install -e ".["tests"]"
27
+ - name : Show wgpu backend
28
+ run :
29
+ python -c "from examples.tests.testutils import wgpu_backend; print(wgpu_backend)"
30
+ - name : make gallery
31
+ run : |
32
+ RTD_BUILD=1 sphinx-build -b dummy source/ /tmp/
33
+
34
+ - uses : actions/upload-artifact@v4
35
+ with :
36
+ name : gallery-${{ github.sha }}
37
+ path : docs/source/_gallery
38
+
39
+ - name : Trigger RTDs build
40
+ uses : dfm/rtds-action@v1
41
+ with :
42
+ webhook_url : ${{ secrets.RTDS_WEBHOOK_URL }}
43
+ webhook_token : ${{ secrets.RTDS_WEBHOOK_TOKEN }}
44
+ commit_ref : ${{ github.ref }}
Original file line number Diff line number Diff line change 44
44
"sphinx.ext.viewcode" ,
45
45
"sphinx_copybutton" ,
46
46
"sphinx_design" ,
47
- "sphinx_gallery.gen_gallery"
47
+ "sphinx_gallery.gen_gallery" ,
48
+ "rtds_action" ,
48
49
]
49
50
51
+ # The name of your GitHub repository
52
+ rtds_action_github_repo = "fastplotlib/fastplotlib"
53
+
54
+ # The path where the artifact should be extracted
55
+ # Note: this is relative to the conf.py file!
56
+ rtds_action_path = "_gallery"
57
+
58
+ # The "prefix" used in the `upload-artifact` step of the action
59
+ rtds_action_artifact_prefix = "gallery-"
60
+
61
+ # A GitHub personal access token is required, more info below
62
+ rtds_action_github_token = os .environ ["GITHUB_TOKEN" ]
63
+
64
+ # Whether or not to raise an error on Read the Docs if the
65
+ # artifact containing the notebooks can't be downloaded (optional)
66
+ rtds_action_error_if_missing = False
67
+
68
+
50
69
sphinx_gallery_conf = {
51
70
"gallery_dirs" : "_gallery" ,
52
71
"backreferences_dir" : "_gallery/backreferences" ,
Original file line number Diff line number Diff line change 15
15
"sphinx" ,
16
16
"sphinx-gallery" ,
17
17
"furo" ,
18
+ "rtds-action" ,
18
19
"glfw" ,
19
20
"jupyter-rfb>=0.4.1" , # required so ImageWidget docs show up
20
21
"ipywidgets>=8.0.0,<9" ,
You can’t perform that action at this time.
0 commit comments