def docs_up_to_date(path):
 if (hasattr(sys, 'frozen') or (not is_git_repo())):
  return True
 html_path = os.path.join(qutebrowser.basedir, 'html', 'doc', path)
 filename = os.path.splitext(path)[0]
 asciidoc_path = os.path.join(qutebrowser.basedir, os.path.pardir, 'doc', 'help', (filename + '.asciidoc'))
 try:
  html_time = os.path.getmtime(html_path)
  asciidoc_time = os.path.getmtime(asciidoc_path)
 except FileNotFoundError:
  return True
 return (asciidoc_time <= html_time)

def docs_up_to_date ( path ) : if ( hasattr ( sys , 'frozen' ) or ( not is_git_repo ( ) ) ) : return True html_path = os . path . join ( qutebrowser . basedir , 'html' , 'doc' , path ) filename = os . path . splitext ( path ) [ 0 ] asciidoc_path = os . path . join ( qutebrowser . basedir , os . path . pardir , 'doc' , 'help' , ( filename + '.asciidoc' ) ) try : html_time = os . path . getmtime ( html_path ) asciidoc_time = os . path . getmtime ( asciidoc_path ) except FileNotFoundError : return True return ( asciidoc_time <= html_time )
check if the generated html documentation is up to date .