From c56c8a69b0e08e3f5187c291f4bcb1c8eaf84cd7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= <bneron@pasteur.fr>
Date: Sun, 4 Sep 2022 21:26:36 +0200
Subject: [PATCH] generate a downloadable latex version

pdf is generate by gitlab-ci
then mv at right location to work with lik in index.rst
---
 .gitlab-ci.yml   | 3 +++
 source/index.rst | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 05d04e8..4eff377 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,9 @@ image: registry-gitlab.pasteur.fr/hub-courses/unix_tunis
 sphinx:
   stage: build
   script:
+    - make latexpdf
+    - mkdir -p build/html/_static/
+    - mv build/latex/unixcourseforsars-cov-2sequenceanalysis.pdf build/html/_static/unix_course_for_sars-cov-2_sequence_analysis.pdf
     - make html
     - mv build/html/ .
   artifacts:
diff --git a/source/index.rst b/source/index.rst
index 5c4f5e9..51514a5 100644
--- a/source/index.rst
+++ b/source/index.rst
@@ -23,3 +23,6 @@ Indices and tables
 * :ref:`genindex`
 * :ref:`modindex`
 * :ref:`search`
+
+
+:download:`Latex version <_static/unix_course_for_sars-cov-2_sequence_analysis.pdf>`
-- 
GitLab