fix(pages): missing assets (#183)

* fix(pages): missing assets

This is a PR to try understanding why some assets are not present

* fix(ci): correct path

* fix(ci): fix path..

* chore(ci): add debug

* chore(ci): more and more debug
This commit is contained in:
Jérome Eertmans
2023-05-08 17:43:58 +02:00
committed by GitHub
parent bfad43bd38
commit c9ef5e9a75
2 changed files with 12 additions and 4 deletions

View File

@ -54,12 +54,16 @@ jobs:
with: with:
path: media path: media
key: ${{ runner.os }}-media key: ${{ runner.os }}-media
- name: Build animation and convert it into HTML slides - name: Build animations
run: | run: |
poetry run manim example.py ConvertExample BasicExample ThreeDExample poetry run manim example.py ConvertExample BasicExample ThreeDExample
poetry run manim-slides convert ConvertExample docs/source/_static/slides.html -ccontrols=true - name: Convert animations to HTML slides
poetry run manim-slides convert BasicExample docs/source/_static/basic_example.html -ccontrols=true run: |
poetry run manim-slides convert ThreeDExample docs/source/_static/three_d_example.html -ccontrols=true poetry run manim-slides convert -v DEBUG ConvertExample docs/source/_static/slides.html -ccontrols=true
poetry run manim-slides convert -v DEBUG BasicExample docs/source/_static/basic_example.html -ccontrols=true
poetry run manim-slides convert -v DEBUG ThreeDExample docs/source/_static/three_d_example.html -ccontrols=true
- name: Show docs/source/_static/ dir content (video only)
run: tree -L 3 docs/source/_static/ -P '*.mp4'
- name: Clear cache - name: Clear cache
run: | run: |
gh extension install actions/gh-actions-cache gh extension install actions/gh-actions-cache
@ -80,6 +84,8 @@ jobs:
with: with:
# Upload docs/build/html dir # Upload docs/build/html dir
path: docs/build/html/ path: docs/build/html/
- name: Show docs/build/html/_static/ dir content (video only)
run: tree -L 3 docs/build/html/_static/ -P '*.mp4'
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'

View File

@ -349,6 +349,8 @@ class RevealJS(Converter):
) )
full_assets_dir = dirname / assets_dir full_assets_dir = dirname / assets_dir
logger.debug(f"Assets will be saved to: {full_assets_dir}")
os.makedirs(full_assets_dir, exist_ok=True) os.makedirs(full_assets_dir, exist_ok=True)
for presentation_config in self.presentation_configs: for presentation_config in self.presentation_configs: