ammaraskar / sphinx-action

Github action that builds docs using sphinx and places errors inline
Apache License 2.0
189 stars 114 forks source link

make latexpdf failes #53

Open fhg-isi opened 11 months ago

fhg-isi commented 11 months ago

My GitHub action includes following job:

      - name: build pdf doc
        uses: ammaraskar/sphinx-action@master
        with:
          pre-build-command: 'apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended'
          build-command: 'make latexpdf'
          docs-folder: 'doc'

Also see

https://github.com/fraunhofer-isi/micat/blob/dd3c19369f16eeec4fc3db761d0597c28188a8d5/.github/workflows/doc_pdf.yml

Folder structure:

image

I get following error:

====================================
Building docs in doc
Traceback (most recent call last):
====================================
  File "/entrypoint.py", line 22, in <module>
[sphinx-action] Running: ['make', 'latexpdf', '-e']
    action.build_all_docs(github_env, [os.environ.get("INPUT_DOCS-FOLDER")])
[sphinx-action] Build failed with 0 warnings
  File "/sphinx_action/action.py", line 167, in build_all_docs
    raise RuntimeError("Build failed")

=> How to fix this?

Related:

https://github.com/ammaraskar/sphinx-action/issues/32