Skip to content

Commit

Permalink
apply use_code_language filter to everything that might contain code …
Browse files Browse the repository at this point in the history
…blocks
  • Loading branch information
r-braun committed Apr 2, 2024
1 parent 1c61f01 commit 835024b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
7 changes: 3 additions & 4 deletions mkdoxy/templates/example.jinja2
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% filter indent(config.get('indent_level', 0), True) %}
# {{node.title}}

{{node.details}}
{{node.details | use_code_language(node.code_language)}}

{{node.programlisting | use_code_language(node.code_language)}}

```{{ node.code_language }}
{{node.programlisting}}
```
{% endfilter %}
6 changes: 2 additions & 4 deletions mkdoxy/templates/memDef.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ url_source: True
{%- endif -%}
{%- endif -%}

```{{node.code_language}}
{{node.codeblock}}
```
{{node.codeblock | use_code_language(node.code_language)}}


{% if configMemDef.get('details') -%}
{% if node.has_details -%}
{{node.details}}
{{node.details | use_code_language(node.code_language)}}
{%- endif -%}
{%- endif -%}

Expand Down
2 changes: 1 addition & 1 deletion mkdoxy/templates/member.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Inherited by the following classes:
{%- if node.has_details %}
# Detailed Description

{{node.details}}
{{node.details | use_code_language(node.code_language)}}
{%- endif %}

{%- for visibility in ['public', 'protected'] -%}
Expand Down
2 changes: 1 addition & 1 deletion mkdoxy/templates/page.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if node.title %}{{node.title}}{% else %}# Related Pages{% endif %}

{% if node.details %}
{{node.details}}
{{node.details | use_code_language(node.code_language)}}
{% else %}
No related pages found.
{% endif %}
Expand Down
4 changes: 1 addition & 3 deletions mkdoxy/templates/programlisting.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ breadcrumbs: False

[Go to the documentation of this file]({{node.url}})

```{{ node.code_language }}
{{node.programlisting}}
```
{{node.programlisting | use_code_language(node.code_language)}}

{% endfilter %}

0 comments on commit 835024b

Please sign in to comment.