[PATCH 4/8] tools/build-docs-container: create symlink to latest build output

Antonin Godard
2025-12-22T12:28:31Z

This is useful to open the output always at the same location.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
documentation/tools/build-docs-container | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/documentation/tools/build-docs-container b/documentation/tools/build-docs-container
index b377777ed..7f3ba3680 100755
--- a/documentation/tools/build-docs-container
+++ b/documentation/tools/build-docs-container
@@ -185,6 +185,10 @@ main ()
--env BUILDDIR="_build/$orig_image-$image_sha"
)

+ # Create a symlink pointing to the latest build output
+ mkdir -p "$DOCS_DIR"/documentation/_build
+ ln -snf "$orig_image-$image_sha" "$DOCS_DIR"/documentation/_build/latest
+
if [ "$(basename "$OCI")" = "docker" ]; then
args_run+=(
--user="$(id -u)":"$(id -g)"

--
2.51.0