Skip to content

Commit

Permalink
added imgmath_latex doc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenaH84 committed Apr 11, 2024
1 parent 0cf686f commit 422fba6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ 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 @@ -29,12 +32,12 @@ jobs:
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|latex|/home/runner/work/_temp/setup-texlive-action/2024/bin/x86_64-linux/latex|g" Documentation/conf.py
- name: Build HTML
run: sphinx-build -M html -D imgmath_latex=$HOME/work/_temp/setup-texlive-action/2024/bin/x86_64-linux/latex Documentation/ _build
# - name: Build HTML
# uses: ammaraskar/sphinx-action@master
# with:
# docs-folder: "Documentation/"
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "Documentation/"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
# 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 422fba6

Please sign in to comment.