Skip to content

Commit ee3aea1

Browse files
author
f@bi.an
committed
docs: update build process to use site_manager for image optimization and site build
1 parent d2f1fa1 commit ee3aea1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/workflows/build-0xfab1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
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:

dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ RUN pip install -r requirements.txt
1717

1818
COPY mkdocs.yml .
1919
COPY 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 .
2124
COPY pre_build_hook.py .
2225
COPY 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

3030
FROM nginx:alpine
3131
RUN apk add --no-cache certbot certbot-nginx openssl curl

docs/about/website/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,12 @@ RUN pip install -r requirements.txt
122122

123123
COPY mkdocs.yml .
124124
COPY overrides ./overrides
125-
COPY image_optimizer.py .
125+
COPY site_manager.py .
126126
COPY pre_build_hook.py .
127127
COPY 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

135132
FROM nginx:alpine
136133
RUN apk add --no-cache certbot certbot-nginx openssl curl
@@ -187,6 +184,9 @@ python build.py --serve
187184
# PowerShell build script (Windows)
188185
.\build.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
```

0 commit comments

Comments
 (0)