I have a documentation project made with MkDocs. I would like to define global variables in the configuration file (mkdocs.yml
) to be used in the markdown pages (*.md
).
Reading this issue, it seems it can be done by including an extra
configuration in the mkdocs.yml
file, for example:
extra:
version: 1.0
... and then, use that variable in page for example as follows:
---> My version: {{ config.extra.version }}
I tried that, but unfortunately it is not working in my example (no variable substution):
- Am I doing something wrong?
- Is is possible to make this work?