;imp: doc: orgify ROADMAP 3: generate .ROADMAP.md for site

This commit is contained in:
Simon Michael 2021-09-19 06:58:16 -10:00
parent 2bfa1cb672
commit b19b1de0cb
2 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,5 @@
* hledger ROADMAP
<!-- toc -->
Current ideas about where the hledger project should be going next.
** Targets

View File

@ -123,6 +123,9 @@ grep = "grep -E"
-- would be nice to find a way to avoid this.
fromsrcmd = "-f markdown-smart-tex_math_dollars"
-- The kind of org markup used in any org source files.
fromorg = "-f org"
-- The kind of markdown we like to generate for the website.
-- This will be consumed by sphinx extensions:
-- recommonmark (Commonmark syntax, https://spec.commonmark.org)
@ -738,6 +741,17 @@ main = do
,"changelogs"
]
".ROADMAP.md" %> \out -> do
let src = "ROADMAP.org"
liftIO $ writeFile out $ unlines [
"<!-- " ++ "Generated by \"Shake " ++ out ++ " from " ++ src ++ " -->"
,"<div class=\"pagetoc\">"
,"<!-- toc -->"
,"</div>"
,""
]
cmd_ Shell pandoc fromorg towebmd src ">>" out
-- MISC
-- Generate the web manuals based on the current checkout and save