Skip to content

Commit

Permalink
python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
phtournier committed Jan 10, 2025
1 parent e940d87 commit 469b0b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
pip install sphinxcontrib-inlinesyntaxhighlight
pip install sphinx-sitemap
git clone https://github.com/FreeFem/FreeFem-parser-pygments.git ~/pygments
sudo cp ~/pygments/freefem.py /home/runner/.local/lib/python3.10/site-packages/pygments/lexers/
(cd /home/runner/.local/lib/python3.10/site-packages/pygments/lexers/ && sudo python _mapping.py)
sed -i 's/, BaseTranslator//g' /home/runner/.local/lib/python3.10/site-packages/sphinxcontrib/inlinesyntaxhighlight.py
sed -i "s/self.highlightlang/'python'/g" /home/runner/.local/lib/python3.10/site-packages/sphinxcontrib/inlinesyntaxhighlight.py
sudo cp ~/pygments/freefem.py /home/runner/.local/lib/python3.12/site-packages/pygments/lexers/
(cd /home/runner/.local/lib/python3.12/site-packages/pygments/lexers/ && sudo python _mapping.py)
sed -i 's/, BaseTranslator//g' /home/runner/.local/lib/python3.12/site-packages/sphinxcontrib/inlinesyntaxhighlight.py
sed -i "s/self.highlightlang/'python'/g" /home/runner/.local/lib/python3.12/site-packages/sphinxcontrib/inlinesyntaxhighlight.py
- name: Build PDF
run: |
Expand Down

0 comments on commit 469b0b8

Please sign in to comment.