Commit 292bb65957
Unregistered key
Layout: unified · split
build.py +9
| @@ -268,6 +268,13 @@ def run_emacs_publish(dev_mode=True): | |||
| 268 | ) | 268 | ) |
| 269 | 269 | ||
| 270 | 270 | ||
| 271 | def copy_org_sources(content_dir="./content", build_dir="./.build/org"): | ||
| 272 | print(f"Copying org sources: {content_dir} → {build_dir}") | ||
| 273 | if os.path.exists(build_dir): | ||
| 274 | shutil.rmtree(build_dir) | ||
| 275 | shutil.copytree(content_dir, build_dir) | ||
| 276 | |||
| 277 | |||
| 271 | def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"): | 278 | def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"): |
| 272 | """ | 279 | """ |
| 273 | Generates a sitemap.xml based on contents of the .build directory. | 280 | Generates a sitemap.xml based on contents of the .build directory. |
| @@ -355,6 +362,7 @@ def main(): | |||
| 355 | remove_build_directory(build_dir) | 362 | remove_build_directory(build_dir) |
| 356 | minify_css(css_src, css_min) | 363 | minify_css(css_src, css_min) |
| 357 | run_emacs_publish(dev_mode=False) | 364 | run_emacs_publish(dev_mode=False) |
| 365 | copy_org_sources() | ||
| 358 | update_index_html(html_snippet) | 366 | update_index_html(html_snippet) |
| 359 | minify_html("./.build/index.html", "./.build/index.html") | 367 | minify_html("./.build/index.html", "./.build/index.html") |
| 360 | generate_sitemap() | 368 | generate_sitemap() |
| @@ -368,6 +376,7 @@ def main(): | |||
| 368 | remove_build_directory(build_dir) | 376 | remove_build_directory(build_dir) |
| 369 | minify_css(css_src, css_min) | 377 | minify_css(css_src, css_min) |
| 370 | run_emacs_publish(dev_mode=True) | 378 | run_emacs_publish(dev_mode=True) |
| 379 | copy_org_sources() | ||
| 371 | update_index_html(html_snippet) | 380 | update_index_html(html_snippet) |
| 372 | minify_html("./.build/index.html", "./.build/index.html") | 381 | minify_html("./.build/index.html", "./.build/index.html") |
| 373 | generate_sitemap() | 382 | generate_sitemap() |
content/blog/2026-02-21-auditing-aws-passwords.org +1 −1
| @@ -101,7 +101,7 @@ account. | |||
| 101 | 101 | ||
| 102 | #+caption: Policy Evaluation Results | 102 | #+caption: Policy Evaluation Results |
| 103 | #+attr_html: :alt Terminal output of evaluate_policy.py showing the interactive prompts and pass/fail summary for each password policy rule. | 103 | #+attr_html: :alt Terminal output of evaluate_policy.py showing the interactive prompts and pass/fail summary for each password policy rule. |
| 104 | [[https://img.cleberg.net/blog/20260221-auditing-aws-password-policy/results.webp]] | 104 | [[https://img.cleberg.net/blog/20260221-auditing-aws-passwords/results.webp]] |
| 105 | 105 | ||
| 106 | * Step 2: Evaluate the Policy | 106 | * Step 2: Evaluate the Policy |
| 107 | 107 | ||