Shake.hs: organize

This commit is contained in:
Everett Hildenbrandt 2018-04-27 21:23:14 -06:00 committed by Simon Michael
parent 1a909fe2a3
commit 2618455ab9

View File

@ -299,10 +299,6 @@ main = do
, not ("_site//*" ?== file)
]
"site/_site/files/README" : [ "site/_site//*" <.> ext | ext <- webcopyfileexts ] |%> \out -> do
let input = "site" </> dropDirectory2 out
copyFile' input out
phony "website-render" $ do
need webhtmlpages
@ -311,6 +307,10 @@ main = do
need [source]
cmd "stack --stack-yaml=stack-ghc8.2.yaml ghc --package pandoc -- -o" out source
"site/_site/files/README" : [ "site/_site//*" <.> ext | ext <- webcopyfileexts ] |%> \out -> do
let input = "site" </> dropDirectory2 out
copyFile' input out
"site/_site//*.html" %> \out -> do
let source = "site" </> dropDirectory2 out -<.> "md"
pageTitle = takeBaseName out