mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
docs: use {% raw %} to wrap jinja2 tags in documentation
As reported by @mrc0mmand:
> Since 89f52a780e (diff-b842e6ab4a95a695d9449d106f091e6a134d9eac8d2aee1cd8b169fcb6b3a98bR109)
> the GH pages fail to build, since they use the Liquid templating language,
> which coincidentally uses a very similar tags as jinja:
> https://shopify.github.io/liquid/tags/control-flow/
>
>> The tag elif on line 112 in HACKING.md is not a recognized Liquid tag.
This commit is contained in:
parent
31db4c20ea
commit
c9d311c787
|
@ -114,11 +114,12 @@ Some source files are generated during build. We use two templating engines:
|
|||
See https://mesonbuild.com/Reference-manual.html#configure_file for
|
||||
details.
|
||||
|
||||
{% raw %}
|
||||
* most files are rendered using jinja2, with `{{VARIABLE}}` and `{% if … %}`,
|
||||
`{% elif … %}`, `{% else … %}`, `{% endif … %}` blocks. `{# … #}` is a
|
||||
jinja2 comment, i.e. that block will not be visible in the rendered
|
||||
output. `{% raw %} … {% endraw %}` creates a block where the jinja2 syntax
|
||||
is not interpreted.
|
||||
output. `{% raw %} … `{% endraw %}`{{ '{' }}{{ '% endraw %' }}}` creates a block
|
||||
where jinja2 syntax is not interpreted.
|
||||
|
||||
See https://jinja2docs.readthedocs.io/en/stable/templates.html#synopsis
|
||||
for details.
|
||||
|
|
Loading…
Reference in a new issue