Skip to content
Open
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:
autoupdate_schedule: "quarterly"
repos:
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.7
rev: v1.7.8
hooks:
- id: docformatter
args: ["--in-place", "--pre-summary-newline", "--make-summary-multi"]
Expand All @@ -19,7 +19,7 @@ repos:
]
exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.9"
rev: "v0.15.20"
hooks:
- id: ruff
args: ["--fix", "--unsafe-fixes"]
Expand All @@ -44,11 +44,11 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.1
rev: v3.9.4
hooks:
- id: prettier
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.36.4
rev: v1.40.3
hooks:
- id: djlint-jinja
types_or: ["html"]
5 changes: 2 additions & 3 deletions src/ablog/blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ def html_builder_write_doc(self, docname, doctree, img_url=False):
Part of :meth:`sphinx.builders.html.StandaloneHTMLBuilder.write_doc` method
used to convert *doctree* to HTML.

Extra argument `img_url` enables conversion of `<img>` source paths to
fully qualified URLs based on `blog_baseurl`.
Extra argument `img_url` enables conversion of `<img>` source paths
to fully qualified URLs based on `blog_baseurl`.
"""
# Source of images
img_folder = "_images"
Expand Down Expand Up @@ -408,7 +408,6 @@ def to_html(self, pagename, fulltext=False, drop_h1=True, img_url=False):
`img_url` enables conversion of `<img>` source paths to fully
qualified URLs based on `blog_baseurl`.
"""

doctree = new_document("")
if fulltext:
deepcopy = self.doctree.deepcopy()
Expand Down
1 change: 0 additions & 1 deletion src/ablog/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def purge_posts(app, env, docname):
Remove post and reference to it from the standard domain when its document
is removed or changed.
"""

if hasattr(env, "ablog_posts"):
env.ablog_posts.pop(docname, None)
filename = os.path.split(docname)[1]
Expand Down
Loading