def METHOD_NAME(app):
    app.add_config_value('number_figures', True, True)
    app.add_config_value('figure_caption_prefix', "Figure", True)
    app.add_node(page_ref,
                 text=(skip_page_ref, None),
                 html=(skip_page_ref, None),
                 singlehtml=(skip_page_ref, None),
                 latex=(latex_visit_page_ref, None))
    app.add_role('page', XRefRole(nodeclass=page_ref))
    app.add_node(num_ref,
                 latex=(latex_visit_num_ref, None),
                 text=(skip_page_ref, None))
    app.add_role('num', XRefRole(nodeclass=num_ref))
    app.connect('doctree-read', doctree_read)
    app.connect('doctree-resolved', doctree_resolved)