luaprettydoc/luafile.py
def should_update_markdown(self, filepath: str, output: str) -> bool:
        """Check if Markdown needs to be re-exported.
        If it doesn't exist yet, return True"""

        lua_file = Path(filepath).resolve()
        markdown = Path(output).resolve()

        if not markdown.exists():
            return True

        return lua_file.stat().st_mtime > markdown.stat().st_mtime
Check if Markdown needs to be re-exported.
        If it doesn't exist yet, return True
Check if Markdown needs to be re-exported.
If it doesn't exist yet, return True
Check if Markdown needs to be re - exported . If it doesn ' t exist yet return True
def should_update_markdown(self, filepath: str, output: str) -> bool:
        lua_file = Path(filepath).resolve()
        markdown = Path(output).resolve()
        if not markdown.exists():
            return True
        return lua_file.stat().st_mtime > markdown.stat().st_mtime
def should_update_markdown ( self , filepath : str , output : str ) -> bool : lua_file = Path ( filepath ) . resolve ( ) markdown = Path ( output ) . resolve ( ) if not markdown . exists ( ) : return True return lua_file . stat ( ) . st_mtime > markdown . stat ( ) . st_mtime
Check if Markdown needs to be re-exported.
Check if Markdown needs to be re - exported .
"""Check if Markdown needs to be re-exported.
        If it doesn't exist yet, return True"""
self
filepath
str
output
str