def METHOD_NAME(app):
    this_dir = os.path.dirname(__file__)
    theme_dir = os.path.abspath(os.path.join(this_dir, 'theme'))
    app.add_css_file('flames.css')
    app.add_html_theme('flames', theme_dir)
    app.connect("html-page-context", on_html_page_context)