def create_sitemap(app, exception):

    filename = app.outdir + "/sitemap.txt"
    print("Generating sitemap.txt in %s" % filename)

    with open(filename, 'w') as f:
        for link in app.sitemap_links:
            f.write(link)
            f.write('\n')
Generates the ``sitemap.txt`` from the collected HTML page links.
dataset/ETHPy150Open bokeh/bokeh/bokeh/sphinxext/bokeh_sitemap.py/create_sitemap