Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build-deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,38 @@ jobs:
pip install --upgrade pip
pip install -r requirements.txt

- name: Get list of changed Python notebooks
id: changed-ipynb-files
uses: tj-actions/changed-files@v45
with:
files: |
**.ipynb

- name: Check for dirty Python notebooks
if: steps.changed-ipynb-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-ipynb-files.outputs.all_changed_files }}
run: |
# Check if there are dirty notebooks
dirty_ipynb=()
for file in ${ALL_CHANGED_FILES[*]}; do
echo "Checking $file..."
if ! nb-clean check $file >/dev/null 2>&1; then
dirty_ipynb+=($file)
fi
done

# Trigger failure if dirty notebooks were found
if [[ ! -z "${dirty_ipynb[@]}" ]]; then
echo "ERROR: Found dirty Python notebooks. Please clean the notebooks by running"
echo ""
echo "nb-clean clean --remove-empty-cells --remove-all-notebook-metadata ${dirty_ipynb[*]}"
echo ""
exit 1
else
echo "SUCCESS: All changed notebooks are clean."
fi

- name: Build Jupyter Book
run: make docs

Expand Down
7 changes: 5 additions & 2 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,8 @@ parts:
- file: chapter5/multiphysics
- caption: Documentation
chapters:
- file: documentation/sympde
- file: documentation/psydac
- url: https://pyccel.github.io/psydac/index.html
title: Psydac
- url: https://sympde.readthedocs.io/en/latest/
title: SymPDE

19 changes: 0 additions & 19 deletions documentation/psydac.rst

This file was deleted.

14 changes: 0 additions & 14 deletions documentation/sympde.rst

This file was deleted.