Shake.hs: use system-wide install of pandoc instead of stack exec pandoc

This commit is contained in:
Everett Hildenbrandt 2018-05-20 21:19:50 -06:00 committed by Simon Michael
parent 35a1f96501
commit 615ca04813

View File

@ -66,7 +66,7 @@ usage = unlines
,"./Shake --help # show options, eg --color"
]
pandoc = "stack exec -- pandoc" -- pandoc from project's stackage snapshot
pandoc = "pandoc" -- assume pandoc from system or user install
makeinfo = "makeinfo"
-- nroff = "nroff"
groff = "groff"
@ -269,7 +269,7 @@ main = do
liftIO $ writeFile webmanall "\\$toc\\$" -- # Big Manual\n\n -- TOC style is better without main heading,
forM_ webmanpages $ \f -> do -- site/hledger.md, site/journal.md
cmd Shell ("printf '\\n\\n' >>") webmanall :: Action ExitCode
cmd Shell "pandoc" f "-t markdown-fenced_divs --atx-headers"
cmd Shell pandoc f "-t markdown-fenced_divs --atx-headers"
"--lua-filter tools/pandoc-drop-toc.lua"
"--lua-filter tools/pandoc-demote-headers.lua"
">>" webmanall :: Action ExitCode