Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blog posts #49

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 3 additions & 1 deletion docs/extensions/check_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ 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
5 changes: 2 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ html_theme.sidebar_secondary.remove: true

```{toctree}
:hidden:
Home <self>
Download <sections/download.md>
Docs <https://aiida-core.readthedocs.io>
Support <sections/mailing_list.md>
Plugins <https://aiidateam.github.io/aiida-registry>
Posts <news/index.md>
About <sections/about.md>
News <news/index.md>
Tutorials <https://aiida-tutorials.readthedocs.io>
sections/team.md
sections/events.md
Expand Down Expand Up @@ -118,7 +117,7 @@ Open Source
::::{div} section-flex alternate-bg
:::{div} section-contents

<h2 class="front">Latest News
<h2 class="front">Latest posts
<a class="headerlink" href="#latest-news" title="Permalink to this heading">#</a>
</h2>

Expand Down