def METHOD_NAME(app):
    app.add_node(bibtex, html=(visit_bibtex_node, depart_bibtex_node))
    app.add_directive("bibtex", Bibtex)
    # Sphinx already comes with jquery, otherwise the following is needed.
    # app.add_javascript('http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/'
    #                   'jquery.min.js')
    bibjs = "bibtex_js.js"
    app.add_javascript(bibjs)
    source = os.path.abspath(os.path.join(os.path.dirname(__file__), bibjs))
    target = os.path.join(app.outdir, "_static", bibjs)
    ensuredir(os.path.dirname(target))
    shutil.copyfile(source, target)