1
0

start a ledger and a finance page

This commit is contained in:
Simon Michael
2024-04-02 19:52:24 -10:00
parent 4e8d2a63e3
commit 18b319abd3
3 changed files with 62 additions and 0 deletions

View File

@@ -10,6 +10,16 @@ clean:
PANDOC?=pandoc
# help update finance.md from finance/* (manual edits needed)
finance-md:
( \
echo 'Finances of the Plain Text Accounting org.'; \
echo '<!-- Generated by "make src/finance.md", do not edit directly. -->'; \
echo '```cli'; hledger -f finance/pta.journal bs; echo '```'; \
echo '```cli'; hledger -f finance/pta.journal is; echo '```'; \
echo '```hledger'; hledger -f finance/pta.journal print -x; echo '```'; \
) >src/finance.md
# temporary workaround for cloudflare pages (pandoc is too old in V1, missing in V2)
html-cfp:
pandoc --version || ( \