Skip to content

Commit

Permalink
fix not rendering docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Waylon S. Walker committed Jan 29, 2025
1 parent 3966e03 commit 6adaa29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions markata/plugins/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ def load(markata: "MarkataDocs") -> None:
"""
similar to [glob](../glob)
"""
if "articles" not in markata.__dict__:
markata.articles = []
# if "articles" not in markata.__dict__:
# markata.articles = []
for py_file in markata.py_files:
with markata.cache as cache:
markata.articles.append(make_article(markata, py_file, cache))
2 changes: 1 addition & 1 deletion markata/plugins/post_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def date_is_date(cls, v, info):
# print(f"date_is_date received value: {v!r} of type {type(v)}") # Debug log
if v is None:
# return None
return info.data.get("markata").config.default_date
return info.data.get("markata").config.post_model.default_date

if isinstance(v, datetime.date) and not isinstance(v, datetime.datetime):
return v
Expand Down

0 comments on commit 6adaa29

Please sign in to comment.