Shake.hs: organize
This commit is contained in:
parent
1a909fe2a3
commit
2618455ab9
8
Shake.hs
8
Shake.hs
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user