mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;shake: drop ".webmanuals" from website markdown filenames
This commit is contained in:
parent
5ff6e0b618
commit
941574423a
6
Shake.hs
6
Shake.hs
@ -215,8 +215,8 @@ main = do
|
||||
-- manuals as info, ready for info (hledger/hledger.info)
|
||||
infomanuals = [manualDir m </> m <.> "info" | m <- manualNames]
|
||||
|
||||
-- manuals as sphinx-ready markdown, to be rendered as part of the website (hledger/hledger.webmanual.md)
|
||||
webmanuals = [manualDir m </> m <.> "webmanual.md" | m <- manualNames]
|
||||
-- manuals as sphinx-ready markdown, to be rendered as part of the website (hledger/hledger.md)
|
||||
webmanuals = [manualDir m </> m <.> "md" | m <- manualNames]
|
||||
|
||||
-- -- old versions of the manuals rendered to html (site/_site/doc/1.14/hledger.html)
|
||||
-- oldhtmlmanuals = map (normalise . ("site/_site/doc" </>) . (<.> "html")) $
|
||||
@ -464,7 +464,7 @@ main = do
|
||||
-- Generate the individual web manuals' markdown source, using m4
|
||||
-- and pandoc to tweak content.
|
||||
phony "webmanuals" $ need webmanuals
|
||||
webmanuals |%> \out -> do -- hledger/hledger.webmanual.md, hledger-lib/journal.webmanual.md
|
||||
webmanuals |%> \out -> do -- hledger/hledger.md, hledger/hledger-ui.md ..
|
||||
let
|
||||
dir = takeDirectory out -- hledger, hledger-lib
|
||||
manpage = webManualNameToManpageName $ dropExtension $ dropExtension $ takeFileName out -- hledger, journal
|
||||
|
Loading…
Reference in New Issue
Block a user