mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 03:42:25 +03:00
;imp: doc: orgify ROADMAP 3: generate .ROADMAP.md for site
This commit is contained in:
parent
2bfa1cb672
commit
b19b1de0cb
@ -1,7 +1,5 @@
|
||||
* hledger ROADMAP
|
||||
|
||||
<!-- toc -->
|
||||
|
||||
Current ideas about where the hledger project should be going next.
|
||||
|
||||
** Targets
|
||||
|
14
Shake.hs
14
Shake.hs
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user