def main(): logging.basicConfig(level=logging.DEBUG) if len(sys.argv) < 2: print "Missing start dir of weblog" sys.exit(1) sermonlogdir = sys.argv[1] setup_for_plain_docutils() sermonlog = Sermonlog(sermonlogdir) sermonlog.collect_entries() sermonlog.write_years() sermonlog.write_index() sermonlog.write_overviews()
def main(): if len(sys.argv) < 2: print("Missing root dir of sphinx (with source/, build/ and so)") sys.exit(1) weblogdir = sys.argv[1] setup_for_plain_docutils() weblog = Weblog(weblogdir) weblog.assign_entries() weblog.create_files() weblog.create_atom() weblog.create_for_homepage() weblog.create_stats()