diff --git a/docs/conf.py b/docs/conf.py index 8ceb00cc..8bc20ae9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -86,23 +86,23 @@ "index": [], "sections/**": ["sbar-aiida", "sidebar-nav-bs"], "news/index": [ - "recentposts", - "tagcloud", - "categories", - "archives", + "ablog/recentposts.html", + "ablog/tagcloud.html", + "ablog/categories.html", + "ablog/archives.html", ], "news/index/**": [ - "recentposts", - "tagcloud", - "categories", - "archives", + "ablog/recentposts.html", + "ablog/tagcloud.html", + "ablog/categories.html", + "ablog/archives.html", ], "news/posts/*": [ - "postcard", - "recentposts", - "tagcloud", - "categories", - "archives", + "ablog/postcard.html", + "ablog/recentposts.html", + "ablog/tagcloud.html", + "ablog/categories.html", + "ablog/archives.html", ], } diff --git a/docs/extensions/check_events.py b/docs/extensions/check_events.py index 550f7a5b..01259a06 100644 --- a/docs/extensions/check_events.py +++ b/docs/extensions/check_events.py @@ -24,7 +24,11 @@ def check_events(app: Sphinx, env: BuildEnvironment): for post in posts: if post["docname"] in env.config.aiida_ignore_event_checks: continue - category: set[str] = post["category"] + # Handle both list (ablog 0.11+) and set (ablog 0.10) formats + category_raw = post["category"] + category: set[str] = ( + set(category_raw) if isinstance(category_raw, list) else category_raw + ) if not category.intersection( ("Reports", "News", "Events", "Releases", "Blog") ): diff --git a/requirements.txt b/requirements.txt index b3336a48..71b9bd5a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ setuptools<70 sphinx~=8.0.0 myst-parser~=4.0.0 pydata-sphinx-theme~=0.15.4 -ablog~=0.10.25 +ablog~=0.11.0 sphinx-design~=0.6.1 sphinx_subfigure~=0.2.4 sphinx-notfound-page~=1.0.4