[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 18:23:57 +0000 (UTC)
commit cfca408e513698805a30ec44151b225928d6a8e2
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 | 10 ++++++----
.gitlab-ci/index.html | 11 +++++++++++
docs/reference/libsoup-3.0-docs.xml | 2 +-
4 files changed, 24 insertions(+), 9 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..30a248fe 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -16,10 +16,12 @@ RUN dnf update -y \
libasan \
libpsl-devel \
libnghttp2-devel \
+ libsoup-doc \
lsof \
make \
- meson \
mod_ssl \
+ ninja-build \
+ pkgconf \
python2.7 \
redhat-rpm-config \
samba-winbind-clients \
@@ -32,12 +34,12 @@ RUN dnf update -y \
&& dnf clean all \
&& python2.7 -m ensurepip \
&& pip2.7 install virtualenv autobahntestsuite \
- && pip3 install quart
+ && pip3 install quart meson==0.58.1
RUN 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
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]