On Feb 16, 10:17 am, Georg Brandl <[email protected]> wrote: > I'd recommend using not atexit, but Sphinx' "build-finished" event, like this: > > def setup(app) > app.connect('build-finished', generate_sitemap) > > The function generate_sitemap will then be called at the end of each build. > (It needs to take an additional parameter, which will be the exception if > one happened during building, or None. In your case, I'd skip building the > sitemap if the exception parameter is not None.)
Thanks. It works. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
