doc: add main heading to combined manual & cookbook
[ci skip]
This commit is contained in:
parent
2afc955f45
commit
4d91013182
4
Shake.hs
4
Shake.hs
@ -265,7 +265,7 @@ main = do
|
|||||||
|
|
||||||
webmanall %> \out -> do
|
webmanall %> \out -> do
|
||||||
need webmanpages
|
need webmanpages
|
||||||
liftIO $ writeFile webmanall "* toc\n\n"
|
liftIO $ writeFile webmanall "# Big Manual\n\n* toc\n\n"
|
||||||
forM_ webmanpages $ \f -> do -- site/hledger.md, site/journal.md
|
forM_ webmanpages $ \f -> do -- site/hledger.md, site/journal.md
|
||||||
cmd Shell ("printf '\\n\\n' >>") webmanall :: Action ExitCode
|
cmd Shell ("printf '\\n\\n' >>") webmanall :: Action ExitCode
|
||||||
cmd Shell "pandoc" f "-t markdown --atx-headers"
|
cmd Shell "pandoc" f "-t markdown --atx-headers"
|
||||||
@ -280,7 +280,7 @@ main = do
|
|||||||
|
|
||||||
cookbookall %> \out -> do
|
cookbookall %> \out -> do
|
||||||
need cookbookpages
|
need cookbookpages
|
||||||
liftIO $ writeFile cookbookall "* toc\n\n"
|
liftIO $ writeFile cookbookall "# User Cookbook\n\n* toc\n\n"
|
||||||
forM_ cookbookpages $ \f -> do -- site/csv-import.md, site/account-aliases.md, ...
|
forM_ cookbookpages $ \f -> do -- site/csv-import.md, site/account-aliases.md, ...
|
||||||
cmd Shell ("printf '\\n\\n' >>") cookbookall :: Action ExitCode
|
cmd Shell ("printf '\\n\\n' >>") cookbookall :: Action ExitCode
|
||||||
cmd Shell "pandoc" f "-t markdown --atx-headers"
|
cmd Shell "pandoc" f "-t markdown --atx-headers"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user