docs: improvements to building and docs (#5234)

This commit is contained in:
Henrique Dias
2025-06-29 09:28:39 +02:00
committed by GitHub
parent 5a07291306
commit 2d1a82b73f
28 changed files with 122 additions and 170 deletions

View File

@@ -1,17 +0,0 @@
#!/bin/sh
# Initial setup
cp /tmp/README.md /build/docs/index.md
sed -i 's|site/docs/||g' /build/docs/index.md
# Start mkdocs in the background
mkdocs serve -a 0.0.0.0:8000 --dirtyreload &
# Watch for changes in README.md
while true; do
inotifywait -e modify /tmp/README.md
echo "README.md changed. Updating index.md..."
cp /tmp/README.md /build/docs/index.md
sed -i 's|site/docs/||g' /build/docs/index.md
done