INNER CODE UNIT · Python

macros_info

fralau/mkdocs-macros-plugin · mkdocs_macros/context.py:366

    def macros_info():
        """
        *Test/debug function*:
        list useful documentation on the mkdocs_macro environment.
        """
        # NOTE: this is template
        return render_file('macros_info.md')

    @env.macro
    def now():
        """
        *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.
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…