From 518b8e04ea5586fd88086a9203cec2c37ee166a1 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Thu, 14 Jul 2022 18:36:14 +0200 Subject: ci: Build docs --- .gitlab-ci.yml | 19 +++++++++++++++---- README.md | 4 ++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23a8276..6b9fa5a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ variables: stages: - build + - deploy build:ubuntu: stage: build @@ -11,7 +12,6 @@ build:ubuntu: - apt-get update && - apt-get install -q -y --no-install-recommends gobject-introspection - gtk-doc-tools libgdk-pixbuf2.0-dev libgirepository1.0-dev libglib2.0-dev @@ -23,15 +23,26 @@ build:ubuntu: python3-setuptools xsltproc docbook-xsl-ns - - pip3 install meson + - pip3 install meson gi-docgen script: - meson _build -Ddocbook_docs=enabled - ninja -C _build install + - mv _build/docs/reference/libnotify-0 _reference artifacts: expose_as: "Build artifacts" paths: - _build/docs/notification-spec.html - - _build/docs/reference/html - - _build/docs/reference/html/index.html + - _reference - _build/meson-logs +pages: + stage: deploy + script: + - mkdir public + - mv _reference/* public/ + artifacts: + when: on_success + paths: + - public + # https://github.com/linux-test-project/lcov/issues/58 + allow_failure: true diff --git a/README.md b/README.md index 219d209..3e52a19 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ or display some form of information without getting in the user's way. It is also a simple wrapper to send cross-desktop Notifications for sandboxed applications using the [XDG Portal Notification API][portal]. +### Documentation + +You can find the nightly documentation at https://gnome.pages.gitlab.gnome.org/libnotify/. + ## Notice For GLib based applications the [GNotification][gnotif] API should be used -- cgit v1.2.1