GenerateManpage: port the utility to pandoc 2.10.x

This commit is contained in:
Peter Simons
2020-08-25 11:46:30 +02:00
parent 11814bfec3
commit 66d2241703
2 changed files with 3 additions and 3 deletions

View File

@@ -30,12 +30,12 @@ main = do
. lines
$ markdownSource
manTemplate <- getDefaultTemplate "man"
manTemplate <- compileDefaultTemplate (T.pack "man")
manBody <- writeMan def { writerTemplate = Just manTemplate } parsed
liftIO $ TIO.writeFile "./man/xmonad.1" $ manBody
liftIO $ putStrLn "Documentation created: man/xmonad.1"
htmltemplate <- getDefaultTemplate "html"
htmltemplate <- compileDefaultTemplate (T.pack "html")
htmlBody <- writeHtml5String def
{ writerTemplate = Just htmltemplate
, writerTableOfContents = True }

View File

@@ -100,7 +100,7 @@ executable generatemanpage
hs-source-dirs: util
if flag(generatemanpage)
build-depends: base, pandoc >= 2, regex-posix, text
build-depends: base, pandoc > 2.10, regex-posix, text
else
buildable: False