1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-03 15:03:22 +02:00

util/docker: Update the script that updates the website

- Update the base system (alpine 3.8 -> 3.21)
- Update sphinx and its modules (and from pip-install to alpine-install)
- Remove unused features that increase maintenance overhead
  (autobuild/livehtml and ditaa)
- Use the build system to generate docs (instead of calling sphinx in
  its own, custom ways)

Change-Id: I844e4ea84b94444c96f29325fee205b0deb972da
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/86681
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Georgi
2025-03-02 13:23:56 +01:00
parent 73666de3f2
commit f5a3c7a35b
3 changed files with 12 additions and 35 deletions

View File

@ -1,12 +1,8 @@
#!/usr/bin/env bash
if [ "$1" == "livehtml" ]; then
echo "Starting live documentation build"
cd /data-in/ && sphinx-autobuild -b html doc /tmp/build/html
else
echo "Starting production documentation build"
cd /data-in/ \
&& sphinx-build -b html doc /tmp/build/html \
&& rm -rf /data-out/* \
&& mv /tmp/build/html/* /data-out/
fi
set -e
cd /data-in/
meson setup /tmp/build -Ddocumentation=enabled -Dgenerate_authors_list=enabled
ninja -C /tmp/build doc/html
rm -rf /data-out/*
mv /tmp/build/doc/html/* /data-out/
rm -rf /tmp/build