diff mbox series

[yocto-autobuilder-helper,3/4] scripts/run-docs-build: export AUTOBUILDER_BUILD when building the docs

Message ID 20261124-docs-build-oecore-functions-v1-3-ce9f3c4fbad4@bootlin.com
State New
Headers show
Series Preparation patches for auto-documenting oecore's library | expand

Commit Message

Antonin Godard Nov. 24, 2026, 1:14 p.m. UTC
yocto-docs reads this variable to perform stricter checks to make sure
everything is setup correctly for building the docs. This ensures that
docs are built correctly before publishing them. See how it is used in
yocto-docs directly.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 scripts/run-docs-build | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index 157a201..36e0793 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -21,6 +21,12 @@  set -u
 set -o pipefail
 set -x
 
+# yocto-docs reads this variable to perform stricter checks to make sure
+# everything is setup correctly for building the docs. This ensures that docs
+# are built correctly before publishing them. See how it is used in yocto-docs
+# directly.
+export AUTOBUILDER_BUILD=1
+
 builddir=$(realpath "$1")
 ypdocs=$(realpath "$2/documentation/")
 bbdocs=$(realpath "$3/doc/")