Open j2bbayle opened 1 year ago
First of all, thanks a lot for this super-useful package!
I'm currently building a multi-version documentation, mostly written in Markdown using myst-parser. Everything works fine, except that I can't seem to be able to use substitutions (https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#substitutions-with-jinja2) to access the current_version variable.
current_version
I've made sure that 'substitution' was in my myst_enable_extensions, and I've tried to use
'substitution'
myst_enable_extensions
{{ current_version.name }}
as well as
{{ env.config.current_version.name }}
but none of these are defined.
Is there a way to access this variable (defined in the HTML context)?
Thanks a lot!
Got the same question regarding current version in rst files.
Is this what you are looking for: https://holzhaus.github.io/sphinx-multiversion/master/context.html
First of all, thanks a lot for this super-useful package!
I'm currently building a multi-version documentation, mostly written in Markdown using myst-parser. Everything works fine, except that I can't seem to be able to use substitutions (https://myst-parser.readthedocs.io/en/latest/syntax/optional.html#substitutions-with-jinja2) to access the
current_version
variable.I've made sure that
'substitution'
was in mymyst_enable_extensions
, and I've tried to useas well as
but none of these are defined.
Is there a way to access this variable (defined in the HTML context)?
Thanks a lot!