From 12c1c7b8d6c2e950ee72a0c5963d03c09798ca5e Mon Sep 17 00:00:00 2001 From: James Westman Date: Sun, 2 Oct 2022 14:42:06 -0500 Subject: [PATCH] docs: Fix build setting The docs need to be set to build_always_stale so you don't need to delete the directory to rebuild them. This also means we want to disable build_by_default. --- .gitlab-ci.yml | 1 + docs/meson.build | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 79cac6a..1315899 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,7 @@ build: - ninja -C _build - ninja -C _build test - ninja -C _build install + - ninja -C _build docs/en - git clone https://gitlab.gnome.org/jwestman/blueprint-regression-tests.git - cd blueprint-regression-tests - git checkout 6f164f5e259f1602fd3bfae5e64852fed7687b9f diff --git a/docs/meson.build b/docs/meson.build index 9b76852..95e545d 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -3,9 +3,9 @@ if get_option('docs') sphinx = find_program(['sphinx-build-3', 'sphinx-build'], required: true) custom_target('docs', - command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'], - output: 'en', - build_by_default: true + command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'], + output: 'en', + build_always_stale: true, ) endif