From 4f86b6b0fdca1359ba39c5a584caae776318a17e Mon Sep 17 00:00:00 2001 From: nd0001 Date: Fri, 3 Jul 2026 12:19:06 +1000 Subject: [PATCH] Fix mkdocs build: move blogging locale/time_format under the plugin The blogging plugin's `locale`, `time_format` and `meta_time_format` keys were nested under `theme:`, where mkdocs-material ignores them. The blogging plugin therefore fell back to the runner's `LC_TIME=C`; newer babel rejects that with `UnknownLocaleError: 'c'`, breaking `mkdocs build -c -s` (make docs-validate). Move the three keys under `- blogging:` so `locale: en` actually applies. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_018eaV2mYYQztC3xJtxWpRQN --- mkdocs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 8e1f04bc..a6863dc3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -28,6 +28,9 @@ plugins: - Blog/blog_template.md - blogging: template: templates/aucloud_blog.html + locale: en # babel locale for date localization; without it the runner's LC_TIME=C breaks newer babel (UnknownLocaleError: 'c') + time_format: "%Y-%m-%d %H:%M:%S" # The format used to display the time + meta_time_format: "%Y-%m-%d %H:%M:%S" features: tags: {} @@ -110,9 +113,6 @@ site_description: AUCyber's technical documentation site, managed as code from G site_name: Technical Documentation site_url: !ENV SITE_URL theme: - locale: en # The locale for time localizations, default: system's locale - time_format: "%Y-%m-%d %H:%M:%S" # The format used to display the time - meta_time_format: "%Y-%m-%d %H:%M:%S" logo: aucyber.svg favicon: images/favicon.ico features: