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:
@ -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
|
||||
|
Reference in New Issue
Block a user