This commit is contained in:
parent
d3afeadcf9
commit
c9526ed35f
4 changed files with 36 additions and 2 deletions
10
macros/__init__.py
Normal file
10
macros/__init__.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import mkdocs_exporter
|
||||
import importlib.metadata
|
||||
|
||||
|
||||
def define_env(env):
|
||||
"""
|
||||
A hook for the MkDocs Macros plugin.
|
||||
"""
|
||||
|
||||
env.variables['version'] = importlib.metadata.version(mkdocs_exporter.__name__)
|
Loading…
Add table
Add a link
Reference in a new issue