File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -172,13 +172,13 @@ env.markdown contains the markdown of the page, before rendering
172172
173173env.page contains notably the following information:
174174
175- | Attribute | Value |
176- | --------------- | --------------------------------------------------------------------------------------------------------------------------------- |
177- | ` title ` | title of the page |
178- | ` abs_url ` | the absolute url of the page from the top of the hierarchy |
179- | ` canonical_url ` | the complete url of the page (typically with ` https://... ` ) |
180- | ` markdown ` | the whole markdown code (before or after rendering). |
181- | ` meta ` | the meta data dictionary, as updated (typically) from the YAML header. |
175+ | Attribute | Value |
176+ | --------------- | ---------------------------------------------------------------------- |
177+ | ` title ` | title of the page |
178+ | ` abs_url ` | the absolute url of the page from the top of the hierarchy |
179+ | ` canonical_url ` | the complete url of the page (typically with ` https://... ` ) |
180+ | ` markdown ` | the whole markdown code (before or after rendering). |
181+ | ` meta ` | the meta data dictionary, as updated (typically) from the YAML header. |
182182
183183---
184184
@@ -347,6 +347,8 @@ my_HTML = None
347347
348348def define_env(env):
349349 "Definition of the module"
350+ # necessary if you want to modify a global variable
351+ global my_html
350352
351353 # put here your HTML content
352354 my_HTML = ......
You can’t perform that action at this time.
0 commit comments