Skip to content

Commit

Permalink
change sphinx math extension, removed install latex code
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Apr 24, 2024
1 parent 3f4a1c4 commit f8265d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:

permissions:
contents: write

env:
imgmath_latex: "/home/runner/work/_temp/setup-texlive-action/2024/bin/x86_64-linux/latex"

steps:
- uses: actions/checkout@v4
Expand All @@ -22,23 +19,6 @@ jobs:
with:
packages: scheme-basic # Or choose the appropriate package scheme
cache: false

# - name: Update symbolic link for LaTeX
# run: ln -sf /home/runner/work/_temp/setup-texlive-action/2024/bin/x86_64-linux/latex $(which latex)
- name: Check LaTeX permissions
run: |
ls -l $(which latex)
ls -l $(which dvipng)
ls -ld $(dirname $(which latex))
ls -l /home/runner/work/_temp/setup-texlive-action/2024/bin/x86_64-linux
- name: Add LaTeX and dvipng directories to PATH
run: |
echo "PATH=$PATH:/home/runner/work/_temp/setup-texlive-action/2024/bin/x86_64-linux" >> $GITHUB_ENV
- name: Print PATH
run: echo $PATH
- name: Replace placeholder with actual path in conf.py
run: sed -i "s|imgmath_latex = 'latex'|imgmath_latex = '/home/runner/work/_temp/setup-texlive-action/2024/bin/x86_64-linux/pdftex'|g" Documentation/conf.py
- name: Build HTML
uses: ammaraskar/sphinx-action@master
with:
Expand Down
5 changes: 1 addition & 4 deletions Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
'sphinxcontrib.youtube',
'sphinx_collapse',
'sphinx_design',
'sphinx.ext.imgmath']
'sphinx.ext.jsmath']

bibtex_bibfiles = ['refs.bib']

Expand All @@ -61,9 +61,6 @@
# The encoding of source files.
#source_encoding = 'utf-8-sig'

# Add the latex path when build is done in CI pipeline
imgmath_latex = 'latex'

# The master toctree document.
master_doc = 'index'

Expand Down

0 comments on commit f8265d0

Please sign in to comment.