Skip to content

Commit

Permalink
Record the docutils version in render_posts dependencies to ensure co…
Browse files Browse the repository at this point in the history
…nsistency
  • Loading branch information
Kwpolska committed Feb 3, 2023
1 parent f9a7043 commit 13aac43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/plugins/task/posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

"""Build HTML fragments from metadata and text."""

import docutils
import os
from copy import copy

Expand Down Expand Up @@ -57,6 +58,7 @@ def gen_tasks(self):
"default_lang": self.site.config["DEFAULT_LANG"],
"show_untranslated_posts": self.site.config['SHOW_UNTRANSLATED_POSTS'],
"demote_headers": self.site.config['DEMOTE_HEADERS'],
"docutils_version": docutils.__version__,
}
self.tl_changed = False

Expand Down

0 comments on commit 13aac43

Please sign in to comment.