From 2dc9cb3dc6aee2761207e5f763504a29adab4d01 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Mon, 22 Jul 2024 00:32:58 -0400 Subject: [PATCH] need to figure out rules for index.html and index.xml --- app/Main.hs | 3 ++- app/Utilities.hs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Main.hs b/app/Main.hs index 893705d..b930357 100755 --- a/app/Main.hs +++ b/app/Main.hs @@ -1,5 +1,6 @@ -- pulling heavily from https://abhinavsarkar.net/posts/static-site-generator-using-shake/ -- docs: +-- https://hackage.haskell.org/package/shake-0.19.8/docs/doc-index-All.html -- https://hackage.haskell.org/package/pandoc-3.2.1/docs/doc-index-All.html -- https://hackage.haskell.org/package/mustache-2.4.2/docs/doc-index.html -- @@ -31,7 +32,7 @@ main = Shake.shakeArgs Shake.shakeOptions $ do "build" ~> buildSite Shake.withTargetDocs "Clean the built site" $ "clean" ~> Shake.removeFilesAfter outputDir ["//*"] - + Shake.withoutTargets buildRules buildSite :: Action () buildSite = do diff --git a/app/Utilities.hs b/app/Utilities.hs index be5d891..29357f5 100644 --- a/app/Utilities.hs +++ b/app/Utilities.hs @@ -18,7 +18,7 @@ indexHtmlOutputPath srcPath = indexHtmlSourcePath :: FilePath -> FilePath indexHtmlSourcePath = - Shake.dropDirectory1 + Shake.dropDirectory1 . (<.> "typ") . Shake.dropTrailingPathSeparator . Shake.dropFileName