From 05999219944fdaca2c0652b084f157206b2550c6 Mon Sep 17 00:00:00 2001 From: jkl <sagitta1618@gmail.com> Date: Fri, 14 Jun 2024 10:41:22 +0200 Subject: [PATCH] Update to fix latexpdf doc build --- .gitlab-ci.yml | 4 ++-- doc/readme.rst | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e4a1222..9e2b77c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,9 +11,9 @@ pages: - pip install sphinx numpydoc sphinx_rtd_theme pandoc recommonmark linuxdoc - cp configs/config_default.py ohmpi/config.py # needed otherwise, module ohmpi cannot be instantiated (no API doc) - cd doc - - make latexpdf + - sphinx-build -M latexpdf source build - mv build/latex/ohmpi.pdf source/_static/ohmpi.pdf - - make html + - sphinx-build -M html source build - cd .. - mv doc/build/html/ public/ - ls public/ diff --git a/doc/readme.rst b/doc/readme.rst index c44bc437..aad4e4b8 100644 --- a/doc/readme.rst +++ b/doc/readme.rst @@ -1,6 +1,11 @@ To compile the documentation: +Copy a default config just to be able to instantiate the ohmpi class, then build the doc. + +```bash +cp configs/config_default.py ohmpi/config.py cd doc/ rm -r build sphinx-build source build +``` -- GitLab