INNER CODE UNIT · Python
define_env
fralau/mkdocs-macros-plugin · mkdocs_macros/context.py:284
def define_env(env):
"""
This is the hook for declaring variables, macros and filters
"""
# Get data on the environment (versions)
try:
environment = {
'system': system_name(),
'system_version': system_version(),
'python_version': python_version(),
'mkdocs_version': mkdocs.__version__,
'macros_plugin_version': package_version(PACKAGE_NAME),
'jinja2_version': jinja2.__version__,
# 'site_git_version': site_git_version(),
}
except Exception as e:
# Avoid breaking the system if error in reading the system info: