Skip to content

Commit

Permalink
Add the Blog category for news posts
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber committed Oct 16, 2023
1 parent 7e13de7 commit 576eead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The top-matter `category` should be one of the following:
- `Events`: To announce an event
- `Reports`: To report on an event
- `Release`: To announce a new release
- `Blog`: A blog post

You can use the [update](https://ablog.readthedocs.io/en/latest/manual/posting-and-listing/#directive-update) directive to note an update to an existing post.

Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/check_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def check_events(app: Sphinx, env: BuildEnvironment):
if post["docname"] in env.config.aiida_ignore_event_checks:
continue
category: set[str] = post["category"]
if not category.intersection(("Reports", "News", "Events", "Releases")):
if not category.intersection(("Reports", "News", "Events", "Releases", "Blog")):
LOGGER.warning(
f"Post does not have a valid category [aiida]",
location=post["docname"],
Expand Down

0 comments on commit 576eead

Please sign in to comment.