Skip to content

Commit

Permalink
Fix print statement left in code #242
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Franceschetti committed Sep 18, 2024
1 parent e8b3f45 commit fa90b96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion mkdocs_macros/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ def macros_info():
@env.macro
def now():
"""
Get the current time (returns a datetime object).
*Default Mkdocs-Macro*:
Get the current time (at the moment of the project build).
It returns a datetime object.
Used alone, it provides a timestamp.
To get the year use `now().year`, for the month number
`now().month`, etc.
Expand Down
5 changes: 3 additions & 2 deletions mkdocs_macros/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,9 @@ def add_function(funcname: str, funclist: list):
add_function('on_pre_page_macros', self.pre_macro_functions)
add_function('on_post_page_macros', self.post_macro_functions)
add_function('on_post_build', self.post_build_functions)
print(STANDARD_FUNCTIONS)
if not function_found:
if function_found:
trace("Functions found:", ','.join(STANDARD_FUNCTIONS))
else:
raise NameError("None of the standard functions was found "
"in module '%s':\n%s" %
(module_name, STANDARD_FUNCTIONS))
Expand Down
2 changes: 2 additions & 0 deletions webdoc/docs/registration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Registering macros/variables/filters in MkDocs-Macros

_As of 1.1.2 (Experimental)_

!!! Info "Important note"
This is technical documentation for writers of MkDocs Plugins.

Expand Down

0 comments on commit fa90b96

Please sign in to comment.