Skip to content

v0.4.0

Compare
Choose a tag to compare
@WaylonWalker WaylonWalker released this 24 Sep 00:22
· 89 commits to main since this release

0.4.0

  • feat: add html logging with setup_logging
    plugin is all new closes #37
  • fix: remove HTML tidy as the site generator tag
  • feat: create configurable navbar
  • perf: prevent double runs on pre-render and post-render #39
  • perf: prevent duplicate ruun from to_dict calling pre-render #53
    • to_dict only runs up to render phase if necessary as directed by register_attr
  • perf: only prettify if configured #54
  • fix: pyinstrument will not create a second profiler causing it to end in errors #50
  • fix: sites without feeds config do not create an index #55

Double Runs

Previously markata would catch AttributeError and run the previous step any
time you ran a step too early. The way this was implemented caused some steps
such as pre-render and post-render to run twice with every single run.

This change will no longer catch attribute errors. If you run into any issues
with your plugins not running before asking for attributes created by your
plugin make sure that you implement the
@register_attr
decorator.

Prettify

prettify html has been turned off by default as beautifulsoup4 prettify was
taking a significant time, and was often popping up as the slowest parts in my
personal _profile. If you want to continue running prettify throughout the
build you can set a flag in your config to continue running prettify.

[markata]
prettify_html = true