From b19b1de0cb2567136b970a9325265df40ffd6d73 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 19 Sep 2021 06:58:16 -1000 Subject: [PATCH] ;imp: doc: orgify ROADMAP 3: generate .ROADMAP.md for site --- ROADMAP.org | 2 -- Shake.hs | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ROADMAP.org b/ROADMAP.org index 50b6d0651..7ed9bd163 100644 --- a/ROADMAP.org +++ b/ROADMAP.org @@ -1,7 +1,5 @@ * hledger ROADMAP - - Current ideas about where the hledger project should be going next. ** Targets diff --git a/Shake.hs b/Shake.hs index a074de79c..b55376fac 100755 --- a/Shake.hs +++ b/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 [ + "" + ,"
" + ,"" + ,"
" + ,"" + ] + cmd_ Shell pandoc fromorg towebmd src ">>" out + -- MISC -- Generate the web manuals based on the current checkout and save