CI: Export also developer documentation into the web pages

This commit is contained in:
Milan Crha
2024-09-04 09:43:29 +02:00
parent b1d054d1fb
commit edfcd69747
6 changed files with 19 additions and 6 deletions

View File

@ -40,6 +40,11 @@ flatpak:
- ".flatpak-builder/build/${FLATPAK_MODULE}/CMakeFiles/CMakeError.log"
- ".flatpak-builder/build/${FLATPAK_MODULE}/CMakeFiles/CMakeOutput.log"
- ".flatpak-builder/build/${FLATPAK_MODULE}/help/"
- ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-mail-composer/html/"
- ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-mail-engine/html/"
- ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-mail-formatter/html/"
- ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-shell/html/"
- ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-util/html/"
expire_in: 14 days
pages:
@ -54,8 +59,10 @@ pages:
- |
dnf install -qy yelp-tools gcc glib2-devel
export PUBDIR=$(pwd)/public/help
export DOCSDIR=$(pwd)/public/docs
LANGLINKS=" "
mkdir -p $PUBDIR
mkdir -p $DOCSDIR
for d in ".flatpak-builder/build/${FLATPAK_MODULE}/help/"*
do
if [ -d "$d" ] && [ $(basename $d) != "CMakeFiles" ]; then
@ -74,9 +81,15 @@ pages:
done
gcc `pkg-config --cflags --libs glib-2.0` .gitlab-ci/update-help.c -g -O0 -o update-help
./update-help $PUBDIR
echo "Go to Evolution <a href='https://gitlab.gnome.org/GNOME/evolution/-/wikis'>Wiki pages</a> or the <a href='help/'>user documentation</a> (${LANGLINKS})">$(pwd)/public/index.html
echo "Go to Evolution <a href='https://gitlab.gnome.org/GNOME/evolution/-/wikis'>Wiki pages</a> or the <a href='help/'>user documentation</a> (${LANGLINKS})<br><br>Developer documentation is <a href='docs/'>here</a>">$(pwd)/public/index.html
mkdir $(pwd)/public/YahooOAuth2
echo "Wait a bit, please...<br><br>The page URL contains an authorization code, which can be copied into the credentials prompt dialog.">$(pwd)/public/YahooOAuth2/index.html
mv ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-mail-composer/html" $DOCSDIR/evolution-mail-composer
mv ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-mail-engine/html" $DOCSDIR/evolution-mail-engine
mv ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-mail-formatter/html" $DOCSDIR/evolution-mail-formatter
mv ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-shell/html" $DOCSDIR/evolution-shell
mv ".flatpak-builder/build/${FLATPAK_MODULE}/docs/reference/evolution-util/html" $DOCSDIR/evolution-util
echo "<h4>Developer documentation for Evolution libraries</h4><a href='evolution-mail-composer'>evolution-mail-composer</a><br><a href='evolution-mail-engine'>evolution-mail-engine</a><br><a href='evolution-mail-formatter'>evolution-mail-formatter</a><br><a href='evolution-shell'>evolution-shell</a><br><a href='evolution-util'>evolution-util</a><br>" >$DOCSDIR/index.html
artifacts:
paths:
- public

View File

@ -9,7 +9,7 @@
<title>Evolution Mail Composer Reference Manual</title>
<releaseinfo>
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="http://developer.gnome.org/evolution-mail-composer/">http://developer.gnome.org/evolution-mail-composer/</ulink>.
<ulink role="online-location" url="https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-mail-composer/">https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-mail-composer/</ulink>.
</releaseinfo>
</bookinfo>

View File

@ -9,7 +9,7 @@
<title>Evolution Mail Engine Reference Manual</title>
<releaseinfo>
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="http://developer.gnome.org/evolution-mail-engine/">http://developer.gnome.org/evolution-mail-engine/</ulink>.
<ulink role="online-location" url="https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-mail-engine/">https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-mail-engine/</ulink>.
</releaseinfo>
</bookinfo>

View File

@ -9,7 +9,7 @@
<title>Evolution Mail Formatter Reference Manual</title>
<releaseinfo>
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="http://developer.gnome.org/evolution-mail-formatter/">http://developer.gnome.org/evolution-mail-formatter/</ulink>.
<ulink role="online-location" url="https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-mail-formatter/">https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-mail-formatter/</ulink>.
</releaseinfo>
</bookinfo>

View File

@ -9,7 +9,7 @@
<title>Evolution Shell Reference Manual</title>
<releaseinfo>
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="http://developer.gnome.org/evolution-shell/">http://developer.gnome.org/evolution-shell/</ulink>.
<ulink role="online-location" url="https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-shell/">https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-shell/</ulink>.
</releaseinfo>
</bookinfo>

View File

@ -9,7 +9,7 @@
<title>Evolution Utilities Reference Manual</title>
<releaseinfo>
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="http://developer.gnome.org/evolution-util/">http://developer.gnome.org/evolution-util/</ulink>.
<ulink role="online-location" url="https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-util/">https://gnome.pages.gitlab.gnome.org/evolution/docs/evolution-util/</ulink>.
</releaseinfo>
</bookinfo>