File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 16
16
import subprocess
17
17
import platform
18
18
import traceback
19
- import pkg_resources
19
+ from importlib . metadata import version as package_version
20
20
import datetime
21
21
from dateutil .parser import parse as date_parse
22
22
from functools import partial
@@ -289,8 +289,7 @@ def define_env(env):
289
289
'system_version' : system_version (),
290
290
'python_version' : python_version (),
291
291
'mkdocs_version' : mkdocs .__version__ ,
292
- 'macros_plugin_version' :
293
- pkg_resources .get_distribution (PACKAGE_NAME ).version ,
292
+ 'macros_plugin_version' : package_version (PACKAGE_NAME ),
294
293
'jinja2_version' : jinja2 .__version__ ,
295
294
# 'site_git_version': site_git_version(),
296
295
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Including external files in pages
17
17
### Usage
18
18
19
19
To include external files within a page, you may use the
20
- ` include ` directive from jinja2, directly in your markdown code e.g.:
20
+ [ ` include ` directive of jinja2] ( https://jinja.palletsprojects.com/en/3.1.x/templates/#include ) , directly in your markdown code e.g.:
21
21
22
22
``` jinja2
23
23
## Paragraph
You can’t perform that action at this time.
0 commit comments