Or maybe connect to the build-finished event? https://www.sphinx-doc.org/en/master/extdev/appapi.html#event-build-finished
Eric On Sun, Oct 25, 2020 at 12:15 PM Komiya Takeshi <[email protected]> wrote: > Hi, > > How about add an instruction into Makefile? I believe it's very simple! > > Thanks, > Takeshi KOMIYA > > 2020年10月22日(木) 19:34 Zoltan <[email protected]>: > > > > > > I need to copy a file before the documentation generation starts. I put > this to the beginning of conf.py: > > > > from shutil import copy > > copy('../../README.md', '.') > > > > I want to delete this file after the documentation has been generated. > How can I instruct Sphinx to execute code after the generation? > > > > -- > > You received this message because you are subscribed to the Google > Groups "sphinx-users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/bb5f66de-4664-4673-a293-37e3eacd314cn%40googlegroups.com > . > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/CAFmkQANcH92JOkusUAympaLFm3CZb7FwWNVoYCGtoENw8-%3Du8w%40mail.gmail.com > . > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAGu2niXr-Odv0Ja49N_UG6SVJaF%2BkQqxqL-Z3T1dNzRVY04AFw%40mail.gmail.com.
