Skip to content

Commit 7e4577e

Browse files
committed
Release notes
1 parent ac3ca5e commit 7e4577e

File tree

9 files changed

+47
-25
lines changed

9 files changed

+47
-25
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33
autoupdate_schedule: "quarterly"
44
repos:
55
- repo: https://github.com/PyCQA/docformatter
6-
rev: v1.7.5
6+
rev: eb1df347edd128b30cd3368dddc3aa65edcfac38
77
hooks:
88
- id: docformatter
99
args: ["--in-place", "--pre-summary-newline", "--make-summary-multi"]
@@ -19,13 +19,13 @@ repos:
1919
]
2020
exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$"
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.5.0"
22+
rev: "v0.7.2"
2323
hooks:
2424
- id: ruff
2525
args: ["--fix", "--unsafe-fixes"]
2626
- id: ruff-format
2727
- repo: https://github.com/pre-commit/pre-commit-hooks
28-
rev: v4.6.0
28+
rev: v5.0.0
2929
hooks:
3030
- id: check-ast
3131
- id: check-case-conflict
@@ -48,7 +48,7 @@ repos:
4848
hooks:
4949
- id: prettier
5050
- repo: https://github.com/Riverside-Healthcare/djLint
51-
rev: v1.34.1
51+
rev: v1.35.4
5252
hooks:
5353
- id: djlint-jinja
5454
types_or: ["html"]

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"Ahmet": ("Ahmet Bakan", "https://ahmetbakan.com"),
5555
"Luc": ("Luc Saffre", "https://saffre-rumma.net/luc/"),
5656
"Mehmet": ("Mehmet Gerçeker", "https://github.com/mehmetg"),
57-
"Libor": ("Libor Jelínek", "https://liborjelinek.github.io/")
57+
"Libor": ("Libor Jelínek", "https://liborjelinek.github.io/"),
5858
}
5959
blog_feed_archives = True
6060
blog_feed_fulltext = True

docs/manual/templates-themes.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Blog sidebars
2020

2121
Sidebars are a common way to provide additional information to the reader. There are seven Ablog sidebars you can include in your HTML output using the Sphinx_ :confval:`html_sidebars` configuration option (in addition to your theme sidebars).
2222

23-
- ``alog/postcard.html`` provides information regarding the current post (when on a post page).
24-
- ``alog/recentposts.html`` lists the most recent five posts.
25-
- ``alog/tagcloud.html`` provides links to archive pages generated for each tag.
26-
- ``alog/category.html``, ``alog/authors.html``, ``alog/languages.html``, and ``alog/locations.html`` sidebars generate lists of links to respective archive pages with the number of matching posts (e.g., "Manual (14)", "2023 (8)", "English (22)").
23+
- ``ablog/postcard.html`` provides information regarding the current post (when on a post page).
24+
- ``ablog/recentposts.html`` lists the most recent five posts.
25+
- ``ablog/tagcloud.html`` provides links to archive pages generated for each tag.
26+
- ``ablog/category.html``, ``ablog/authors.html``, ``ablog/languages.html``, and ``ablog/locations.html`` sidebars generate lists of links to respective archive pages with the number of matching posts (e.g., "Manual (14)", "2023 (8)", "English (22)").
2727

2828
For example, the sidebars that you see on this website on the left are:
2929

@@ -32,7 +32,7 @@ For example, the sidebars that you see on this website on the left are:
3232
html_sidebars = {
3333
"**": [
3434
# Comes from Alabaster theme
35-
"about.html",
35+
"about.html",
3636
"searchfield.html",
3737
# Ablog sidebars
3838
"ablog/postcard.html",
@@ -54,7 +54,7 @@ Ablog standard sidebars are wrapped in ``<div>`` with CSS classes like :samp:`ab
5454
For example, the ``recentposts.html`` template is wrapped in ``<div class="ablog-sidebar-item ablog__recentposts">``.
5555

5656
.. seealso::
57-
57+
5858
Built-in sidebars can be found in the ``ablog/`` folder in the `Ablog source code <https://github.com/sunpy/ablog/tree/main/src/ablog/templates/ablog>`_.
5959

6060
If styling is not enough, you can override the Ablog templates in your Sphinx project or in the Sphinx theme.
@@ -65,7 +65,7 @@ Partial or complete override of Ablog templates
6565
To control whether Ablog injects its own templates into the Sphinx build, you can use the following ``conf.py`` configuration option:
6666

6767
.. confval:: skip_injecting_base_ablog_templates
68-
68+
6969
If set to ``True``, Ablog will not inject its own templates into the Sphinx build. This is useful if you want to completely override Ablog templates in your Sphinx project or in the Sphinx theme. The default is ``False``.
7070

7171
Customizing templates in the project
@@ -95,7 +95,7 @@ If you are a Sphinx theme author, you can ship customized Ablog templates in you
9595
#. In your ``theme.toml`` file, add the following (under the ``[options]`` section):
9696

9797
.. code-block:: toml
98-
98+
9999
ablog_inject_templates_after_theme = true
100-
101-
This will ensure that Ablog templates are injected *after* the theme templates, so you can override them while still using the Ablog templates as a fallback.
100+
101+
This will ensure that Ablog templates are injected *after* the theme templates, so you can override them while still using the Ablog templates as a fallback.

docs/release/ablog-v0.11-released.rst

+11
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,14 @@ Mark Ablog parallel safe.
115115

116116
Dropped support for Python 3.9, Sphinx less than 6.2.
117117
This mirrors the requirements for alabaster 1.0.0.
118+
119+
ABlog v0.11.12 released
120+
-----------------------
121+
122+
`Improve ablog-configuration-options.rst. <https://github.com/sunpy/ablog/pull/292>`__ from `Libor Jelínek <https://github.com/liborjelinek>`__.
123+
124+
`Fix sidebars CSS naming. <https://github.com/sunpy/ablog/pull/298>`__ from `Libor Jelínek <https://github.com/liborjelinek>`__.
125+
126+
`Ablog is NOT safe for parallel read. <https://github.com/sunpy/ablog/pull/299>`__ from `Libor Jelínek <https://github.com/liborjelinek>`__.
127+
128+
`Fix theme support for ablog. <https://github.com/sunpy/ablog/pull/295>`__ from `Libor Jelínek <https://github.com/liborjelinek>`__.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
custom postcard.html
1+
custom postcard.html
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
custom postcard.html from theme
1+
custom postcard.html from theme

roots/test-templates/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
extensions = ["ablog"]
2-

src/ablog/tests/test_parallel.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44

55
def test_not_safe_for_parallel_read(rootdir: Path, tmp_path: Path):
6-
"""Ablog is NOT safe for parallel read. In such case, it doesn't collect any posts."""
6+
"""
7+
Ablog is NOT safe for parallel read.
8+
9+
In such case, it doesn't collect any posts.
10+
"""
711
# https://github.com/sunpy/ablog/issues/297
812
# Very ugly hack to change the parallel_read_safe value to True
913
good_read_safe = '"parallel_read_safe": False'

src/ablog/tests/test_templates.py

+14-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
@pytest.mark.sphinx("html", testroot="templates", confoverrides={"skip_injecting_base_ablog_templates": True})
88
def test_skip_ablog_templates_but_missing_templates(app: Sphinx):
9-
"""Completely override the templates used by ablog, but not provide them."""
9+
"""
10+
Completely override the templates used by ablog, but not provide them.
11+
"""
1012
with pytest.raises(
1113
ThemeError,
1214
match=r"An error happened in rendering the page blog/author\.\nReason: TemplateNotFound\(\"'ablog/catalog.html' not found in *.",
@@ -22,7 +24,7 @@ def test_skip_ablog_templates_but_missing_templates(app: Sphinx):
2224
"skip_injecting_base_ablog_templates": False, # default value
2325
"html_sidebars": {
2426
"**": [
25-
# overriden by user
27+
# overridden by user
2628
"ablog/postcard.html",
2729
# fallback to builtin
2830
"ablog/authors.html",
@@ -31,7 +33,10 @@ def test_skip_ablog_templates_but_missing_templates(app: Sphinx):
3133
},
3234
)
3335
def test_override_template_but_fallback_missing(app: Sphinx, rootdir: Path):
34-
"""Partically override the only some Ablog templates, but use the Ablog ones for missing as fallback."""
36+
"""
37+
Partially override the only some Ablog templates, but use the Ablog ones
38+
for missing as fallback.
39+
"""
3540
app.build()
3641

3742
# is the customized template it in the output?
@@ -50,7 +55,7 @@ def test_override_template_but_fallback_missing(app: Sphinx, rootdir: Path):
5055
confoverrides={
5156
"html_sidebars": {
5257
"**": [
53-
# overriden by theme
58+
# overridden by theme
5459
"ablog/postcard.html",
5560
# fallback to builtin
5661
"ablog/authors.html",
@@ -61,7 +66,10 @@ def test_override_template_but_fallback_missing(app: Sphinx, rootdir: Path):
6166
},
6267
)
6368
def test_themes_templates_come_first(app: Sphinx, rootdir: Path):
64-
"""Ensures that if theme supplies own Ablog template, it is used over the builtin one, but fallback to builtin for missing ones."""
69+
"""
70+
Ensures that if theme supplies own Ablog template, it is used over the
71+
builtin one, but fallback to builtin for missing ones.
72+
"""
6573
app.build()
6674

6775
# is the customized template it in the output?
@@ -71,4 +79,4 @@ def test_themes_templates_come_first(app: Sphinx, rootdir: Path):
7179

7280
# is builtin template in the output?
7381
builtin = '<div class="ablog-sidebar-item ablog__authors">'
74-
assert builtin in source
82+
assert builtin in source

0 commit comments

Comments
 (0)