minor fuckup with static files

This commit is contained in:
Pagwin 2024-08-02 01:03:09 -04:00
parent 8f8b33517a
commit 648e84ff9b
No known key found for this signature in database
GPG key ID: 81137023740CA260
5 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
dist-newstyle
.shake

Binary file not shown.

View file

View file

@ -4,7 +4,7 @@ outputDir :: String
outputDir = "publish"
assetGlobs :: [String]
assetGlobs = ["static/*"]
assetGlobs = ["static//*"]
pagePaths :: [String]
pagePaths = ["links.typ"]

View file

@ -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