mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 04:13:11 +03:00
doc: macro cleanups
This commit is contained in:
parent
e8d649c2bc
commit
0c74dcde67
50
doc/lib.m4
50
doc/lib.m4
@ -1,7 +1,31 @@
|
||||
m4_changequote({{,}})m4_dnl
|
||||
m4_define({{_man_}}, m4_ifdef({{MAN}},{{$1}}))m4_dnl
|
||||
m4_define({{_web_}}, m4_ifdef({{WEB}},{{$1}}))m4_dnl
|
||||
m4_define({{_include_}}, m4_defn({{m4_include}}))m4_dnl
|
||||
m4_dnl
|
||||
m4_define({{_include_}}, m4_defn({{m4_include}}) )m4_dnl
|
||||
m4_define({{_man_}}, m4_ifdef({{MAN}},{{$1}}) )m4_dnl
|
||||
m4_define({{_web_}}, m4_ifdef({{WEB}},{{$1}}) )m4_dnl
|
||||
m4_define({{_webseparate_}}, m4_ifdef({{WEB && SEPARATE}},{{$1}}) )m4_dnl
|
||||
m4_define({{_webcombined_}}, m4_ifdef({{WEB && COMBINED}},{{$1}}) )m4_dnl
|
||||
m4_dnl
|
||||
m4_define({{_currentrelease_}}, {{0.27}})m4_dnl
|
||||
m4_dnl
|
||||
m4_define({{_versions_}},
|
||||
<div class="versions">
|
||||
version:
|
||||
<a href="$1.html">dev</a>
|
||||
| <a href="doc/_currentrelease_()/manual.html{{#}}m4_patsubst($1,{{hledger-}})">_currentrelease_()</a>
|
||||
</div>)m4_dnl
|
||||
m4_dnl
|
||||
m4_define({{_toc_}}, {{* toc}})m4_dnl
|
||||
m4_dnl
|
||||
m4_dnl _table_({{
|
||||
m4_dnl | cell1 | cell2 ...
|
||||
m4_dnl | cell1 | cell2 ...
|
||||
m4_dnl ...
|
||||
m4_dnl }})
|
||||
m4_define({{_table2_}}, {{
|
||||
|
|
||||
|-|-$1}})m4_dnl
|
||||
m4_dnl
|
||||
m4_define({{_col2_}},
|
||||
{{<div class="container-fluid">
|
||||
<div class="row">
|
||||
@ -9,6 +33,7 @@ m4_define({{_col2_}},
|
||||
<div class="col-sm-6">$2</div>
|
||||
</div>
|
||||
</div>}})m4_dnl
|
||||
m4_dnl
|
||||
m4_define({{_col3_}},
|
||||
{{<div class="container-fluid">
|
||||
<div class="row">
|
||||
@ -17,14 +42,11 @@ m4_define({{_col3_}},
|
||||
<div class="col-sm-4">$3</div>
|
||||
</div>
|
||||
</div>}})m4_dnl
|
||||
m4_define({{_shell_}}, {{```{.shell .clear}$1```}})m4_dnl
|
||||
m4_define({{_shellbold_}}, {{```{.shell .bold .clear}$1```}})m4_dnl
|
||||
m4_define({{_journal_}}, {{```{.journal .clear}$1```}})m4_dnl
|
||||
m4_define({{_currentrelease_}}, {{0.27}})m4_dnl
|
||||
m4_define({{_versions_}},
|
||||
<div class="versions">
|
||||
version:
|
||||
<a href="$1.html">dev</a>
|
||||
| <a href="doc/_currentrelease_()/manual.html{{#}}m4_patsubst($1,{{hledger-}})">_currentrelease_()</a>
|
||||
</div>)m4_dnl
|
||||
m4_define({{_toc_}}, {{* toc}})m4_dnl
|
||||
m4_dnl
|
||||
m4_define({{_shell_}}, {{```shell$1```}} )m4_dnl
|
||||
m4_define({{_shellbold_}}, {{```{.shell .bold}$1```}} )m4_dnl
|
||||
m4_define({{_journal_}}, {{```journal$1```}} )m4_dnl
|
||||
m4_define({{_csv_}}, {{```csv$1```}} )m4_dnl
|
||||
m4_define({{_rules_}}, {{```rules$1```}} )m4_dnl
|
||||
m4_define({{_timeclock_}}, {{```timeclock$1```}} )m4_dnl
|
||||
m4_define({{_timedot_}}, {{```timedot$1```}} )m4_dnl
|
||||
|
Loading…
Reference in New Issue
Block a user