Skip to content

Commit 9f4fe77

Browse files
committed
Pygments
1 parent 9545c46 commit 9f4fe77

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/sphinx.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121
pip install Sphinx
2222
pip install sphinxcontrib-inlinesyntaxhighlight
2323
pip install sphinx-sitemap
24-
pip install Pygments
2524
git clone https://github.com/FreeFem/FreeFem-parser-pygments.git ~/pygments
26-
sudo cp ~/pygments/freefem.py /home/runner/.local/lib/python3.12/site-packages/pygments/lexers/
25+
sudo cp ~/pygments/freefem.py /usr/lib/python3/dist-packages/pygments/lexers/
2726
(cd /home/runner/.local/lib/python3.12/site-packages/pygments/lexers/ && sudo python _mapping.py)
2827
sed -i 's/, BaseTranslator//g' /home/runner/.local/lib/python3.12/site-packages/sphinxcontrib/inlinesyntaxhighlight.py
2928
sed -i "s/self.highlightlang/'python'/g" /home/runner/.local/lib/python3.12/site-packages/sphinxcontrib/inlinesyntaxhighlight.py

0 commit comments

Comments
 (0)