File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 3737
3838 - name : Optimize images
3939 run : |
40- python image_optimizer .py --mode build
40+ python site_manager .py optimize --mode all --quiet
4141
4242 - name : Deploy Github Pages
4343 env :
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ RUN pip install -r requirements.txt
1717
1818COPY mkdocs.yml .
1919COPY overrides ./overrides
20- COPY image_optimizer.py .
20+ COPY pre_build_hook.py .
21+ COPY docs ./docs
22+ # Copy site manager which includes image optimization utilities
23+ COPY site_manager.py .
2124COPY pre_build_hook.py .
2225COPY docs ./docs
2326
24- # Run image optimization before build
25- RUN python image_optimizer.py --mode build --quiet
26-
27- # Build with quiet logging
28- RUN PYTHONWARNINGS=ignore mkdocs build --quiet
27+ # Build (site_manager handles image optimization then mkdocs build)
28+ RUN python site_manager.py build --quiet
2929
3030FROM nginx:alpine
3131RUN apk add --no-cache certbot certbot-nginx openssl curl
Original file line number Diff line number Diff line change @@ -122,15 +122,12 @@ RUN pip install -r requirements.txt
122122
123123COPY mkdocs.yml .
124124COPY overrides ./overrides
125- COPY image_optimizer .py .
125+ COPY site_manager .py .
126126COPY pre_build_hook.py .
127127COPY docs ./docs
128128
129- # Run image optimization before build
130- RUN python image_optimizer.py --mode build --quiet
131-
132- # Build with quiet logging
133- RUN PYTHONWARNINGS=ignore mkdocs build --quiet
129+ # Build (site_manager handles image optimization then mkdocs build)
130+ RUN python site_manager.py build --quiet
134131
135132FROM nginx:alpine
136133RUN apk add --no-cache certbot certbot-nginx openssl curl
@@ -187,6 +184,9 @@ python build.py --serve
187184# PowerShell build script (Windows)
188185.\b uild.ps1 -Serve
189186
190- # Manual image optimization
191- python image_optimizer.py --mode build
187+ # Manual image optimization (use site_manager)
188+ # - Full build (includes image optimization):
189+ python site_manager.py build
190+ # - Only optimize images (convert, update refs, cleanup):
191+ python site_manager.py optimize --mode all
192192```
You can’t perform that action at this time.
0 commit comments