From 648e84ff9b0a974cdccf3c0570e0f59600042f8b Mon Sep 17 00:00:00 2001 From: Pagwin Date: Fri, 2 Aug 2024 01:03:09 -0400 Subject: [PATCH] minor fuckup with static files --- .gitignore | 1 + .shake/.shake.database | Bin 945 -> 0 bytes .shake/.shake.lock | 0 app/Config.hs | 2 +- app/Main.hs | 2 +- 5 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 .shake/.shake.database delete mode 100644 .shake/.shake.lock 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 7ccfa30d1fd1cc044bcc3146a82da61baedc9a8c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 945 zcmbW0OH0E*5XaXCMJnC|ZwfsKRPzsQL;uddxaoUc5+rrD39QG;~LNHM8N5m~Bu kxqsfGm|jW&7h_9ETA$ulAeB~?GS_kNU5lHy+ig^_ck%@QUH||9 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