I currently have a software that I documented using sphinx. I created a website and display the actual documentation part using sphin autodoc. For now, I have the package installed on my local python version so I can simply say
.. autoclass:: packagename.Classname
:members:
and have the contents of the class be displayed.
The goal is to create multiple versions of the documentation and be able to select one in a sidebar dropdown menu using e.g. sphinx-multiversion, however because the documentation is seperate from the actual source code I cannot simply use autoclass, since this directive only looks at the package that is installed for the local python version. Is there a good way to generate a documentation for each version and then reference it from within my actual website using a similar directive?