Skip to content

Commit 7d65064

Browse files
authored
FIX: fix github actions rendering issue for plotly images (#87)
* FIX: fix github actions rendering issue for plotly images * clear sphinx .doctrees before building final HTML
1 parent 30315df commit 7d65064

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ jobs:
5353
mkdir -p _build/html/_notebooks
5454
cp -u _build/jupyter/*.ipynb _build/html/_notebooks
5555
# Build HTML (Website)
56+
# BUG: rm .doctress to remove `sphinx` rendering issues for ipywidget mimetypes
57+
# and clear the sphinx cache for building final HTML documents.
5658
- name: Build HTML
5759
shell: bash -l {0}
5860
run: |
61+
rm -r _build/.doctrees
5962
jb build lectures --path-output ./
6063
- name: Save Build as Artifact
6164
uses: actions/upload-artifact@v1

.github/workflows/publish.yml

+3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ jobs:
6363
mkdir -p _build/html/_notebooks
6464
cp -u _build/jupyter/*.ipynb _build/html/_notebooks
6565
# Build HTML (Website)
66+
# BUG: rm .doctress to remove `sphinx` rendering issues for ipywidget mimetypes
67+
# and clear the sphinx cache for building final HTML documents.
6668
- name: Build HTML
6769
shell: bash -l {0}
6870
run: |
71+
rm -r _build/.doctrees
6972
jb build lectures --path-output ./
7073
- name: Deploy website to gh-pages
7174
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)