need to figure out rules for index.html and index.xml
This commit is contained in:
parent
9485e9af58
commit
2dc9cb3dc6
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@ indexHtmlOutputPath srcPath =
|
|||
|
||||
indexHtmlSourcePath :: FilePath -> FilePath
|
||||
indexHtmlSourcePath =
|
||||
Shake.dropDirectory1
|
||||
Shake.dropDirectory1
|
||||
. (<.> "typ")
|
||||
. Shake.dropTrailingPathSeparator
|
||||
. Shake.dropFileName
|
||||
|
|
Loading…
Reference in a new issue