mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-25 17:21:52 -07:00
GenerateManpage: port the utility to pandoc 2.10.x
This commit is contained in:
@@ -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 }
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user