You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@ All notable changes to this project are documented in this file.
4
4
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## 1.4.1, 2025-10-18
8
+
* Added: support for j2_extensions paramater in config file (#272)
9
+
7
10
## 1.4.0, 2025-09-21
8
11
* Removed: auto-install of missing pluglet (meaningful error message #262)
Copy file name to clipboardExpand all lines: webdoc/docs/index.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -338,22 +338,23 @@ The other parts give you more detailed information.
338
338
Here are all the possible arguments in the `plugin` section
339
339
of the MkDocs' config file:
340
340
341
-
| Argument | Default | Description
342
-
| -- | -- | --
343
-
|`render_by_default`|`true`|Render macros on all pages by default. If set to false, sets an [opt-in mode](rendering.md/#solution-2-opt-in-specify-which-pages-must-be-rendered) where only pages marked with `render_macros: true` in header will be displayed.
344
-
| `module_name` | main| [Name of the Python module](macros.md/#local-module) containing macros, filters and variables. Indicate the file or directory, without extension; you may specify a path (e.g. `include/module`). If no `main` module is available, it is ignored.
345
-
| `modules` | `[]`| [List of pluglets](pluglets.md) to be added to mkdocs-macros (preinstalled Python modules that can be listed by `pip list`).
346
-
| `include_dir` | | [Directory for including external files](advanced.md/#changing-the-directory-of-the-includes)
347
-
| `include_yaml`| `[]` | [List of yaml files or `key: filename` pairs to be included](advanced.md/#including-external-yaml-files)
348
-
| `j2_block_start_string` | | [Non-standard Jinja2 marker for start of block](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros)
349
-
| `j2_block_end_string` || [Non-standard Jinja2 marker for end of block](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros)
350
-
| `j2_variable_start_string` || [Non-standard Jinja2 marker for start of variable](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros)
351
-
| `j2_variable_end_string` || [Non-standard Jinja2 marker for end of variable](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros)
352
-
| `j2_comment_start_string` || [Non-standard Jinja2 marker for start of comment](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros)
353
-
| `j2_comment_end_string` || [Non-standard Jinja2 marker for end of comment](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros)
354
-
|`on_error_fail`|`false`| [Make the building process fail in case of an error in macro rendering](troubleshooting.md/#make-the-build-process-fail-in-case-of-error) (this is useful when the website is rebuilt automatically and errors must be detected.)
355
-
|`on_undefined`|keep|[Behavior of the macros renderer in case of an undefined variable in a page](troubleshooting.md/#is-it-possible-to-make-the-building-process-fail-in-case-of-page-error). By default, it leaves the Jinja2 statement untouched (e.g. `{{ foo }}` will appear as such in the page.) Use the value 'strict' to make it fail.
356
-
|`verbose`|`false`| Print [debug (more detailed) statements](troubleshooting.md/#verbose-debug-statements-in-macros) in the console.
| `render_by_default` | `true` | Render macros on all pages by default. If set to false, sets an [opt-in mode](rendering.md/#solution-2-opt-in-specify-which-pages-must-be-rendered) where only pages marked with `render_macros: true` in header will be displayed. |
344
+
| `module_name` | main | [Name of the Python module](macros.md/#local-module) containing macros, filters and variables. Indicate the file or directory, without extension; you may specify a path (e.g. `include/module`). If no `main` module is available, it is ignored. |
345
+
| `modules` | `[]` | [List of pluglets](pluglets.md) to be added to mkdocs-macros (preinstalled Python modules that can be listed by `pip list`). |
346
+
| `include_dir` | | [Directory for including external files](advanced.md/#changing-the-directory-of-the-includes) |
347
+
| `include_yaml` | `[]` | [List of yaml files or `key: filename` pairs to be included](advanced.md/#including-external-yaml-files) |
348
+
| `j2_block_start_string` | | [Non-standard Jinja2 marker for start of block](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros) |
349
+
| `j2_block_end_string` | | [Non-standard Jinja2 marker for end of block](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros) |
350
+
| `j2_variable_start_string` | | [Non-standard Jinja2 marker for start of variable](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros) |
351
+
| `j2_variable_end_string` | | [Non-standard Jinja2 marker for end of variable](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros) |
352
+
| `j2_comment_start_string` | | [Non-standard Jinja2 marker for start of comment](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros) |
353
+
| `j2_comment_end_string` | | [Non-standard Jinja2 marker for end of comment](rendering.md/#solution-5-altering-the-syntax-of-jinja2-for-mkdocs-macros) |
354
+
| `j2_extensions` | `[]` | _From version 1.4.1:_ List of Jinja2 extensions (for more information see the [Jinja2 page on extensions](https://jinja.palletsprojects.com/en/stable/extensions)). |
355
+
| `on_error_fail` | `false` | [Make the building process fail in case of an error in macro rendering](troubleshooting.md/#make-the-build-process-fail-in-case-of-error) (this is useful when the website is rebuilt automatically and errors must be detected.) |
356
+
| `on_undefined` | keep | [Behavior of the macros renderer in case of an undefined variable in a page](troubleshooting.md/#is-it-possible-to-make-the-building-process-fail-in-case-of-page-error). By default, it leaves the Jinja2 statement untouched (e.g. `{{ foo }}` will appear as such in the page.) Use the value 'strict' to make it fail. |
357
+
| `verbose` | `false` | Print [debug (more detailed) statements](troubleshooting.md/#verbose-debug-statements-in-macros) in the console. |
0 commit comments