Suppose the following documentation structure for sphinx:
doc
|_ _static
|_ _templates
|_ api
|_ index.rst
|_ classes.rst
|_ functions.rst
|_ index.rst
|_ more_functions.rst
|_ conf.py
And that classes.rst, functions.rst and more_functions.rst have classes and functions to auto-document with autodoc/autosummary. The build will generate .rst files for those classes and functions in:
doc/generated for more_functions.rstdoc/api/generated for classes.rst and functions.rstIs there a way to control where those generated folders are created?
I'm trying to get a unique generated folder in the end. In this case, with this structure:
doc
|_ generated
|_ generated-from-more-functions.rst
|_ api
|_ generated-from-api/classes.rst
|_ generated-from-api/functions-rst
I don't think there is such native functionality in sphinx.
The fastest way to achieve this without many headaches is to create a shell script to run the build and then move (with mv or rm if you're on gnu/linux) the files according to your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With