diff options
author | Fraser Tweedale <frase@frase.id.au> | 2021-06-23 03:26:20 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 20:26:20 +0300 |
commit | 6885325146aa46adf255c55de0e0345a0f84961e (patch) | |
tree | d0df09061ace02e436f740ffbf44a37abc8b7a23 /tests/data | |
parent | 6d9bc845d5233c67e5eba3f54dcc7772ca1d79e2 (diff) | |
download | hakyll-6885325146aa46adf255c55de0e0345a0f84961e.tar.gz |
add 'forceCompile' rules modifier (#857)
Compilers that use data from sources other than local files may need
to be recompiled, but Hakyll's file-based dependency checking does
not handle this situation.
Add a new kind of dependency called 'AlwaysOutOfDate'. If an item
has this dependency, it will be unconditionally rebuilt.
Also add the 'forceCompile' rule modifier, which is a user-friendly
way to force recompilation of specific items. Example usage:
forceCompile $ create ["foo"] $ do
route $ idRoute
compile $ unsafeCompiler $ doSomeIO
Diffstat (limited to 'tests/data')
0 files changed, 0 insertions, 0 deletions