[libsoup/fix-docs: 2/2] ci: Install glib documentation for website




commit b559d987455afec0577422885a07993d24eb77d2
Author: Patrick Griffis <pgriffis igalia com>
Date:   Tue Aug 3 12:18:59 2021 -0500

    ci: Install glib documentation for website

 .gitlab-ci.yml        | 9 +++++----
 .gitlab-ci/Dockerfile | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b2530f61..87221717 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,12 +86,13 @@ reference:
     DESTDIR: _install
   needs: []
   script:
-    - meson _build -Dgtk_doc=true
+    - meson _build --prefix=/usr -Dgtk_doc=true
     - ninja -C _build libsoup-3.0-doc
-    - ninja -C _build install
-    - mv _build/docs/reference/html/ _reference/
     - .gitlab-ci/check-docs.py
-    - gtkdoc-rebase --html-dir=_reference/ --online
+    - mkdir -p _reference/libsoup-3.0
+    - cp -R _build/docs/reference/html/* _reference/libsoup-3.0/
+    - cp -R /usr/share/gtk-doc/html/{glib,gio,gobject} _reference
+    - gtkdoc-rebase --relative --html-dir=./_reference/ --verbose
   artifacts:
     paths:
       - _build/docs/reference/libsoup-3.0-*.txt
diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile
index bc4d4b4e..13b3c584 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -37,7 +37,7 @@ RUN dnf update -y \
 RUN git clone https://gitlab.gnome.org/GNOME/glib.git \
     && pushd glib \
     && git checkout 02742ef957b532789c003eef80ec7f51c370e3d5 \
-    && meson _build --prefix=/usr \
+    && meson _build --prefix=/usr -Dgtk_doc=true \
     && ninja -C _build install \
     && popd \
     && rm -rf glib


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]