[libsoup/fix-docs] ci: Install glib documentation for website
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/fix-docs] ci: Install glib documentation for website
- Date: Tue, 3 Aug 2021 21:27:56 +0000 (UTC)
commit c50224d14500359346f00cada9512fc71463d929
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Aug 3 12:18:59 2021 -0500
ci: Install glib documentation for website
.gitlab-ci.yml | 10 ++++++----
.gitlab-ci/Dockerfile | 17 ++++++++---------
.gitlab-ci/index.html | 11 +++++++++++
docs/reference/libsoup-3.0-docs.xml | 2 +-
4 files changed, 26 insertions(+), 14 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b2530f61..c873d869 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,12 +86,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 bc4d4b4e..83674601 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -16,9 +16,10 @@ RUN dnf update -y \
libasan \
libpsl-devel \
libnghttp2-devel \
+ libsoup-doc \
lsof \
make \
- meson \
+ meson-0.56.2-2.fc34 \
mod_ssl \
python2.7 \
redhat-rpm-config \
@@ -32,17 +33,15 @@ RUN dnf update -y \
&& dnf clean all \
&& python2.7 -m ensurepip \
&& pip2.7 install virtualenv autobahntestsuite \
- && pip3 install quart
-
-RUN git clone https://gitlab.gnome.org/GNOME/glib.git \
+ && pip3 install quart \
+ && git clone https://gitlab.gnome.org/GNOME/glib.git \
&& pushd glib \
- && git checkout 02742ef957b532789c003eef80ec7f51c370e3d5 \
- && meson _build --prefix=/usr \
+ && git checkout 709df8eeb47cd18a9e086e53982b1077a531c0f5 \
+ && meson _build --prefix=/usr -Dgtk_doc=true \
&& ninja -C _build install \
&& popd \
- && rm -rf glib
-
-RUN git clone https://gitlab.gnome.org/GNOME/glib-networking.git \
+ && rm -rf glib \
+ && git clone https://gitlab.gnome.org/GNOME/glib-networking.git \
&& pushd glib-networking \
&& git checkout 2.70.alpha \
&& meson _build --prefix=/usr \
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/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]