mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
doc: some convenient m4 macros for docs
This commit is contained in:
parent
febfa3fd0f
commit
3c7e1a7399
18
doc/lib.m4
18
doc/lib.m4
@ -2,3 +2,21 @@ 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_define({{_col2_}},
|
||||
{{<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">$1</div>
|
||||
<div class="col-sm-6">$2</div>
|
||||
</div>
|
||||
</div>}})m4_dnl
|
||||
m4_define({{_col3_}},
|
||||
{{<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">$1</div>
|
||||
<div class="col-sm-4">$2</div>
|
||||
<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
|
||||
|
Loading…
Reference in New Issue
Block a user