mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
;imp: tools: ./Shake site builds the website
This commit is contained in:
parent
b19b1de0cb
commit
87b532b43d
3
Makefile
3
Makefile
@ -823,8 +823,7 @@ site: $(call def-help,site, update the hledger.org website (run on hledger.org,
|
|||||||
&& echo 'Please run "make Shake" first (manual compilation of Shake.hs is required)' \
|
&& echo 'Please run "make Shake" first (manual compilation of Shake.hs is required)' \
|
||||||
|| ( \
|
|| ( \
|
||||||
echo; \
|
echo; \
|
||||||
./Shake -V webmanuals; \
|
./Shake -V site; \
|
||||||
make -C site build; \
|
|
||||||
) 2>&1 | tee -a site.log
|
) 2>&1 | tee -a site.log
|
||||||
|
|
||||||
BROWSE=open
|
BROWSE=open
|
||||||
|
10
Shake.hs
10
Shake.hs
@ -53,7 +53,6 @@ import "base" Control.Exception as C
|
|||||||
-- required packages, keep synced with Makefile -> SHAKEDEPS:
|
-- required packages, keep synced with Makefile -> SHAKEDEPS:
|
||||||
import "directory" System.Directory as S (getDirectoryContents)
|
import "directory" System.Directory as S (getDirectoryContents)
|
||||||
import "extra" Data.List.Extra hiding (headDef, lastDef)
|
import "extra" Data.List.Extra hiding (headDef, lastDef)
|
||||||
import "process" System.Process
|
|
||||||
import "regex" Text.RE.TDFA.String
|
import "regex" Text.RE.TDFA.String
|
||||||
import "regex" Text.RE.Replace
|
import "regex" Text.RE.Replace
|
||||||
import "safe" Safe
|
import "safe" Safe
|
||||||
@ -82,6 +81,7 @@ usage =
|
|||||||
,"./Shake changelogs [-c] [-n/--dry-run]"
|
,"./Shake changelogs [-c] [-n/--dry-run]"
|
||||||
," update CHANGES.md files, adding new commits & headings"
|
," update CHANGES.md files, adding new commits & headings"
|
||||||
,"./Shake docs [-c] update all program docs (CLI help, manuals, changelogs)"
|
,"./Shake docs [-c] update all program docs (CLI help, manuals, changelogs)"
|
||||||
|
,"./Shake site update (render) the website, in ./site"
|
||||||
,"./Shake build [PKGS] build hledger packages and their embedded docs"
|
,"./Shake build [PKGS] build hledger packages and their embedded docs"
|
||||||
,"./Shake clean remove generated texts, manuals"
|
,"./Shake clean remove generated texts, manuals"
|
||||||
,"./Shake Clean also remove object files, Shake's cache"
|
,"./Shake Clean also remove object files, Shake's cache"
|
||||||
@ -741,6 +741,14 @@ main = do
|
|||||||
,"changelogs"
|
,"changelogs"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
-- Update (render) the website, which should be checked out as ./site
|
||||||
|
phony "site" $ do
|
||||||
|
need [
|
||||||
|
"webmanuals"
|
||||||
|
,".ROADMAP.md"
|
||||||
|
]
|
||||||
|
cmd_ "make -C site build"
|
||||||
|
|
||||||
".ROADMAP.md" %> \out -> do
|
".ROADMAP.md" %> \out -> do
|
||||||
let src = "ROADMAP.org"
|
let src = "ROADMAP.org"
|
||||||
liftIO $ writeFile out $ unlines [
|
liftIO $ writeFile out $ unlines [
|
||||||
|
Loading…
Reference in New Issue
Block a user