[libsoup/fix-docs: 21/21] ci: Install glib documentation for website
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/fix-docs: 21/21] ci: Install glib documentation for website
- Date: Thu, 16 Sep 2021 15:32:56 +0000 (UTC)
commit 7b2e7d4369e9388b50168cef1061b0b90f70ad06
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Aug 3 12:18:59 2021 -0500
ci: Install glib documentation for website
.gitlab-ci.yml | 12 +++++++-----
.gitlab-ci/Dockerfile | 4 +++-
.gitlab-ci/index.html | 11 +++++++++++
.gitlab-ci/run-docker.sh | 2 +-
docs/reference/libsoup-3.0-docs.xml | 2 +-
5 files changed, 23 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4f2ca416..f24daf13 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: registry.gitlab.gnome.org/gnome/libsoup/master:v14
+image: registry.gitlab.gnome.org/gnome/libsoup/master:v15
stages:
- build
@@ -87,12 +87,14 @@ 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,libsoup-2.4} _reference
+ - cp .gitlab-ci/index.html _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 1b589497..7af3c129 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -16,6 +16,7 @@ RUN dnf update -y \
libasan \
libpsl-devel \
libnghttp2-devel \
+ libsoup-doc \
lsof \
make \
meson \
@@ -28,6 +29,7 @@ RUN dnf update -y \
valgrind \
which \
&& dnf builddep -y glib2 \
+ && rm -f /etc/rpm/macros.image-language-conf \
&& dnf install --releasever=35 -y vala \
&& dnf clean all \
&& python2.7 -m ensurepip \
@@ -37,7 +39,7 @@ RUN dnf update -y \
RUN git clone https://gitlab.gnome.org/GNOME/glib.git \
&& pushd glib \
&& git checkout 2.69.1 \
- && meson _build --prefix=/usr \
+ && meson _build --prefix=/usr -Dgtk_doc=true \
&& ninja -C _build install \
&& popd \
&& rm -rf glib
diff --git a/.gitlab-ci/index.html b/.gitlab-ci/index.html
new file mode 100644
index 00000000..14412f50
--- /dev/null
+++ b/.gitlab-ci/index.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="refresh" content="0; url='./libsoup-3.0/index.html'" />
+ <link rel="stylesheet" href="./libsoup-3.0/style.css" />
+ </head>
+ <body>
+ <ul><p><a href="https://libsoup.org/libsoup-3.0">libsoup 3 documentation</a></p></ul>
+ <ul><p><a href="https://libsoup.org/libsoup-2.4">libsoup 2 documentation</a></p></ul>
+ </body>
+</html>
diff --git a/.gitlab-ci/run-docker.sh b/.gitlab-ci/run-docker.sh
index f23c8151..882b35f4 100755
--- a/.gitlab-ci/run-docker.sh
+++ b/.gitlab-ci/run-docker.sh
@@ -2,7 +2,7 @@
set -e
-TAG="registry.gitlab.gnome.org/gnome/libsoup/master:v14"
+TAG="registry.gitlab.gnome.org/gnome/libsoup/master:v15"
SUDO_CMD="sudo"
if docker -v |& grep -q podman; then
diff --git a/docs/reference/libsoup-3.0-docs.xml b/docs/reference/libsoup-3.0-docs.xml
index b1fa54d6..5c2fbaf6 100644
--- a/docs/reference/libsoup-3.0-docs.xml
+++ b/docs/reference/libsoup-3.0-docs.xml
@@ -6,7 +6,7 @@
<title>libsoup Reference Manual</title>
<releaseinfo>
This documentation is for libsoup 3.0 which is in development.
- You can find older versions online at <ulink role="online-location"
url="https://developer.gnome.org/libsoup/stable/">https://developer.gnome.org/libsoup/stable/</ulink>.
+ You can find older versions online at <ulink role="online-location"
url="https://libsoup.org/libsoup-2.4/index.html">https://libsoup.org/libsoup-2.4/</ulink>.
</releaseinfo>
</bookinfo>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]