Should Nikola build when shortcode files are modified?

9 views
Skip to first unread message

Mitch Berkson

unread,
Apr 30, 2023, 12:02:31 PM4/30/23
to nikola-discuss
When I change a .py shortcode file, Nikola doesn't notice it when it builds. Is that right?

Chris Warrick

unread,
Apr 30, 2023, 12:21:13 PM4/30/23
to nikola-...@googlegroups.com
On Sun, 30 Apr 2023 at 18:02, Mitch Berkson <mitc...@gmail.com> wrote:
>
> When I change a .py shortcode file, Nikola doesn't notice it when it builds. Is that right?

You would need to specify the appropriate dependencies manually. For
Python-based shortcodes, you can just return [__file__] as the
dependency list and it should work (in typical environments, i.e. if
the path to the .py file doesn’t change very often).

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16
Reply all
Reply to author
Forward
0 new messages