Bad macro response. title=[blank] only in the root folder #268
-
![]()
![]() Why are tittles in "blank"? Is a bug? Another discussion has similar problem. Why does navigation.pages not return full page objects? #198, but the response "forward to mkdocs team" It's not a good answer until we rule out the possibility that it's the macros plugin malfunctioning. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The subject of navigation comes back often (see #198, #267). The key fact to know about MkDocs-Macros is that, by design choice, the environment variables are copied at the time of the mkdocs-macros-plugin/mkdocs_macros/plugin.py Line 742 in 86e31f7 You get the config with what's in there at the time of the The program does a shallow copy, so you might have a mix of states. from copy import copy However the mkdocs-macros-plugin/mkdocs_macros/plugin.py Line 896 in 86e31f7 In truth, MkDocs-Macros was not developed with the purpose of exposing that kind of information and it was an added as a bonus. It does not manipulate those objects, so it exposes what they contain without further promises or guarantees. |
Beta Was this translation helpful? Give feedback.
-
Thanks. #267 is a very good response, problem of the chicken and the egg |
Beta Was this translation helpful? Give feedback.
The subject of navigation comes back often (see #198, #267).
The key fact to know about MkDocs-Macros is that, by design choice, the environment variables are copied at the time of the
on_config
event.mkdocs-macros-plugin/mkdocs_macros/plugin.py
Line 742 in 86e31f7
You get the config with what's in there at the time of the
on_page
event.The program does a shallow copy, so you might have a mix of states.
However the
navigation
andfiles
variables are defined at the time of theon_nav
:mkdocs-macros-plugin/mkdocs_macros/plugin.py
Line 896 in 86e31f7
In truth, MkDocs…