This repository was archived by the owner on Dec 7, 2021. It is now read-only.
Commit a2f95f3
committed
mkdocs: add mkdocs-macros-plugin
Add the macros plugin which enables using jinja2 in markdown source
files and provides hooks to inject variables, macros, and filters into
the jinja2 rendering context.
This plugin is injected into the mkdocs plugin list before mdpo which
means that mdpo sees the output of macros when collecting translation
units from the English source. This will allow us to use macros to
generate translation units, but comes with a side effect that some
output may break mdpo. A really easy example of this is that adding
a `{{ macros_info() }}` block produces output which causes mdpo's
initialization code to fall into a recursion loop which eventually
crashes mkdocs.1 parent 390291f commit a2f95f3
4 files changed
+60
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments