mirror of
https://github.com/simonmichael/hledger.git
synced 2024-10-06 10:57:30 +03:00
;doc: move most dev docs to doc/
This commit is contained in:
parent
e74854e5ef
commit
5dee1fe78c
12
Shake.hs
12
Shake.hs
@ -762,18 +762,18 @@ main = do
|
||||
|
||||
phony "orgfiles" $
|
||||
need [
|
||||
".BACKLOG.md"
|
||||
,".ROADMAP.md"
|
||||
"doc/BACKLOG.md"
|
||||
,"doc/ROADMAP.md"
|
||||
]
|
||||
|
||||
-- These org files are converted to markdown for the website.
|
||||
[ ".ROADMAP.md"
|
||||
,".BACKLOG.md"
|
||||
[ "doc/ROADMAP.md"
|
||||
,"doc/BACKLOG.md"
|
||||
] |%> \out -> do
|
||||
let src = drop 1 out -<.> "org"
|
||||
let src = out -<.> "org"
|
||||
need [src]
|
||||
-- replace the generated top heading with our own so we can insert the TOC after it
|
||||
let heading = dropExtension $ drop 1 out
|
||||
let heading = dropExtension out
|
||||
mdlines <- drop 1 . lines . fromStdout <$> (cmd Shell pandoc fromorg towebmd src :: Action (Stdout String))
|
||||
liftIO $ writeFile out $ unlines $ [
|
||||
"<!-- " ++ "Generated by \"Shake " ++ out ++ " from " ++ src ++ " -->"
|
||||
|
Loading…
Reference in New Issue
Block a user