diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml
index 27016766..9dab43ed 100644
--- a/.github/workflows/Documentation.yml
+++ b/.github/workflows/Documentation.yml
@@ -41,7 +41,7 @@ jobs:
# copy the examples from the examples branch (.md, .svg) and copy the readme in the docs folder
run: |
git fetch
- git --work-tree=$WORK_TREE/.. checkout $SRC_BRANCH -- $SRC_FOLDER_PATH/*.md $SRC_FOLDER_PATH/*.svg
+ git --work-tree=$WORK_TREE/.. checkout $SRC_BRANCH -- $SRC_FOLDER_PATH/*.md $SRC_FOLDER_PATH/*.svg $SRC_FOLDER_PATH/*.gif
mv $WORK_TREE/src/* $WORK_TREE
rm -r $WORK_TREE/src
cp ./README.md ./docs/src/index.md
diff --git a/.github/workflows/Example.yml b/.github/workflows/Example.yml
index 74b77f27..2e46d408 100644
--- a/.github/workflows/Example.yml
+++ b/.github/workflows/Example.yml
@@ -48,15 +48,14 @@ jobs:
jupyter nbconvert --to script ${{ env.FILE }}
jupyter nbconvert --to markdown ${{ env.FILE }}
- - name: "Fix GIF"
+ - name: "Fix GIFs"
run: |
- if ("${{ matrix.file-name }}" -eq "juliacon_2023")
- {
- echo "starting the mess"
- $env:Path += ";C:\Program Files\Git\usr\bin"
- sed -i -E 's~()~\`\`\`@raw html\n\1\n\`\`\`~g' examples/src/${{ matrix.file-name }}.md
- echo "mess finished"
- }
+ echo "starting gif fixing"
+ mv examples/src/gif_*.gif examples/src/${{ matrix.file-name }}_files
+ $env:Path += ";C:\Program Files\Git\usr\bin"
+ awk '{if($0~//) {sub(//,"gif_"++i".gif")}}1' examples/src/${{ matrix.file-name }}.md > examples/src/tmp_${{ matrix.file-name }}.md
+ mv -f examples/src/tmp_${{ matrix.file-name }}.md examples/src/${{ matrix.file-name }}.md
+ echo "gifs should be fixed"
- name: Archive examples artifacts
if: success() && matrix.os == 'windows-latest'