From 7ea499ab58f7ddd8e4dbab17bef7a951c08bc017 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Thu, 3 Feb 2022 13:48:24 +0100
Subject: [PATCH] CI: webdoc runner also generate Doxygen API

---
 .gitlab-ci.yml                      | 12 +++++++++++-
 hugo/content/py/python-api/index.md |  4 ++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b4d9dfa102..8a99844876b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -102,4 +102,14 @@ webdoc:
   script:
     - cd hugo
     - hugo
-    - cp -rf public ~/ba-main-hugo-public
+    - cp -rf public ~/ba-main/hugo-public
+    - cd ..
+    - mkdir build
+    - cd build
+    - cmake .. -DCONFIGURE_DOXY=ON
+    - make doxyuser
+    - cp -rf html/user ~/ba-main/doxy/
+    - make doxylong
+    - cp -rf html/long ~/ba-main/doxy/
+    - make doxygui
+    - cp -rf html/gui ~/ba-main/doxy/
diff --git a/hugo/content/py/python-api/index.md b/hugo/content/py/python-api/index.md
index b02d9edb60e..2581b70b6fa 100644
--- a/hugo/content/py/python-api/index.md
+++ b/hugo/content/py/python-api/index.md
@@ -19,9 +19,9 @@ can be found at
 [https://bornagainproject.org/ext/api](https://bornagainproject.org/ext/api).
 For the latest release, see
 
-  * [master/user-API](https://bornagainproject.org/ext/api/master/user-API/index.html),
+  * [master/user-API](https://bornagainproject.org/ext/api/git-main/user-API/index.html),
 which documents all classes and functions that are available for Python scripting;
-  * [master/full-API](https://bornagainproject.org/ext/api/master/full-API/index.html),
+  * [master/full-API](https://bornagainproject.org/ext/api/git-main/full-API/index.html),
 which is mainly intended for developers and covers all classes and functions,
 whether exposed to Python or not.
 
-- 
GitLab