diff --git a/.gitignore b/.gitignore index 48a004c..9cf1186 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ dist-newstyle +.shake diff --git a/.shake/.shake.database b/.shake/.shake.database deleted file mode 100644 index 7ccfa30..0000000 Binary files a/.shake/.shake.database and /dev/null differ diff --git a/.shake/.shake.lock b/.shake/.shake.lock deleted file mode 100644 index e69de29..0000000 diff --git a/app/Config.hs b/app/Config.hs index 1ea786e..767635a 100644 --- a/app/Config.hs +++ b/app/Config.hs @@ -4,7 +4,7 @@ outputDir :: String outputDir = "publish" assetGlobs :: [String] -assetGlobs = ["static/*"] +assetGlobs = ["static//*"] pagePaths :: [String] pagePaths = ["links.typ"] diff --git a/app/Main.hs b/app/Main.hs index bc1149e..cb4aca5 100755 --- a/app/Main.hs +++ b/app/Main.hs @@ -60,7 +60,7 @@ buildRules = do -- make a rule of the pattern outputDir/asset_name which copes from outputDir/../pages assets :: Rules () assets = map (outputDir ) assetGlobs |%> \target -> do - let src = Shake.dropDirectory1 target "pages" + let src = Shake.dropDirectory1 target Shake.copyFileChanged src target Shake.putInfo $ "Copied " <> target <> " from " <> src