diff options
author | Adam Vogt <vogt.adam@gmail.com> | 2010-04-03 20:13:54 +0200 |
---|---|---|
committer | Adam Vogt <vogt.adam@gmail.com> | 2010-04-03 20:13:54 +0200 |
commit | e729dbc1077d1a78779709caa783528bc7772745 (patch) | |
tree | 7479961825cfc53c99f279a1aa37181381613d43 /util | |
parent | d81864f2359235c22ede29e5a7fa9cbdc43328d4 (diff) | |
download | xmonad-e729dbc1077d1a78779709caa783528bc7772745.tar.gz xmonad-e729dbc1077d1a78779709caa783528bc7772745.tar.xz xmonad-e729dbc1077d1a78779709caa783528bc7772745.zip |
Update util/GenerateManpage to be pandoc-1.4 compatible
Ignore-this: 3f5efd5786ef0182a6f86494d1d933c9
darcs-hash:20100403181354-1499c-56cae48d86405d346010fb6d0d20afa71f1caa4c.gz
Diffstat (limited to 'util')
-rw-r--r-- | util/GenerateManpage.hs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/util/GenerateManpage.hs b/util/GenerateManpage.hs index 9c7e2e0..e0acb31 100644 --- a/util/GenerateManpage.hs +++ b/util/GenerateManpage.hs @@ -76,19 +76,23 @@ main = do . lines <$> readFile "./man/xmonad.1.markdown" + Right template <- getDefaultTemplate "man" writeFile "./man/xmonad.1" . (manHeader ++) - . writeMan writeOpts + . writeMan writeOpts{ writerStandalone = True, writerTemplate = template } $ parsed putStrLn "Documentation created: man/xmonad.1" + Right template <- getDefaultTemplate "html" writeFile "./man/xmonad.1.html" . writeHtmlString writeOpts - { writerHeader = "<h1>"++releaseName++"</h1>"++ - "<p>Section: xmonad manual (1)<br>"++ + { writerIncludeBefore = + "<h1>"++releaseName++"</h1>"++ + "<p>Section: xmonad manual (1)<br/>"++ "Updated: "++releaseDate++"</p>"++ - "<hr>" + "<hr/>" , writerStandalone = True + , writerTemplate = template , writerTableOfContents = True } $ parsed putStrLn "Documentation created: man/xmonad.1.html" |