diff --git a/.github/workflows/compile_docs.yml b/.github/workflows/compile_docs.yml index 3df3829e58..15274490e4 100644 --- a/.github/workflows/compile_docs.yml +++ b/.github/workflows/compile_docs.yml @@ -34,7 +34,7 @@ jobs: !${{ env.pythonLocation }}/lib/python*/site-packages/setuptools* key: ${{ env.pythonLocation }} - name: Install Doxygen and Latex dependencies - run: sudo apt-get install doxygen texlive-xetex + run: sudo apt-get install doxygen texlive-xetex makeindex texlive-lang-english - name: Install requirements run: | pip install --upgrade --upgrade-strategy eager sphinx recommonmark commonmark breathe sphinx-rtd-theme sphinx-markdown-tables sphinx-sitemap diff --git a/docs/build.py b/docs/build.py index 7699173972..9b094bc3a0 100755 --- a/docs/build.py +++ b/docs/build.py @@ -60,9 +60,7 @@ cmd("cd ../scripts && doxygen Doxyfile") cmd("sphinx-build -b latex . out_latex") # Generate PDF -cmd("cd out_latex && makeindex LVGL.idx") -cmd("cd out_latex && makeindex -s python.ist -o LVGL.ind LVGL.idx") -cmd("cd out_latex && xelatex -interaction=batchmode *.tex") +cmd("cd out_latex && latexmk -pdf 'LVGL.tex'") # Copy the result PDF to the main directory to make it avaiable for the HTML build cmd("cd out_latex && cp -f LVGL.pdf ../LVGL.pdf") diff --git a/docs/conf.py b/docs/conf.py index ab2ad52e27..89f01e9ebc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -146,6 +146,8 @@ html_last_updated_fmt = '' # -- Options for LaTeX output --------------------------------------------- +latex_engine = 'xelatex' +latex_use_xindy = False latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # @@ -166,6 +168,7 @@ latex_elements = { 'inputenc': '', 'utf8extra': '', 'classoptions': ',openany,oneside', + 'babel': '\\usepackage{babel}', 'preamble': r''' \usepackage{fontspec} \setmonofont{DejaVu Sans Mono}