plano/docs/build_docs.sh
Salman Paracha 2a36dd7376
fixing the build scripts for documentation (#711)
Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-342.local>
2026-01-28 18:55:35 -08:00

21 lines
603 B
Bash

docker build -f docs/Dockerfile . -t sphinx
# Clean build output locally
rm -rf docs/build
mkdir -p docs/build
chmod -R 777 docs/build
# Run make clean/html while keeping provider_models.yaml from the image
docker run --user $(id -u):$(id -g) --rm \
-v $(pwd)/docs/source:/docs/source \
-v $(pwd)/docs/Makefile:/docs/Makefile \
-v $(pwd)/docs/build:/docs/build \
sphinx make clean
docker run --user $(id -u):$(id -g) --rm \
-v $(pwd)/docs/source:/docs/source \
-v $(pwd)/docs/Makefile:/docs/Makefile \
-v $(pwd)/docs/build:/docs/build \
sphinx make html
chmod -R 777 docs/build/html