Skip to content

Commit fa90b96

Browse files
author
Laurent Franceschetti
committed
Fix print statement left in code #242
1 parent e8b3f45 commit fa90b96

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

mkdocs_macros/context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ def macros_info():
369369
@env.macro
370370
def now():
371371
"""
372-
Get the current time (returns a datetime object).
372+
*Default Mkdocs-Macro*:
373+
Get the current time (at the moment of the project build).
374+
It returns a datetime object.
373375
Used alone, it provides a timestamp.
374376
To get the year use `now().year`, for the month number
375377
`now().month`, etc.

mkdocs_macros/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,9 @@ def add_function(funcname: str, funclist: list):
507507
add_function('on_pre_page_macros', self.pre_macro_functions)
508508
add_function('on_post_page_macros', self.post_macro_functions)
509509
add_function('on_post_build', self.post_build_functions)
510-
print(STANDARD_FUNCTIONS)
511-
if not function_found:
510+
if function_found:
511+
trace("Functions found:", ','.join(STANDARD_FUNCTIONS))
512+
else:
512513
raise NameError("None of the standard functions was found "
513514
"in module '%s':\n%s" %
514515
(module_name, STANDARD_FUNCTIONS))

webdoc/docs/registration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Registering macros/variables/filters in MkDocs-Macros
22

3+
_As of 1.1.2 (Experimental)_
4+
35
!!! Info "Important note"
46
This is technical documentation for writers of MkDocs Plugins.
57

0 commit comments

Comments
 (0)