Sphinx 5.2.0 adds domain objects to the toctree by default. This is causing duplicate entries to appear in the table of contents when autoapi is in use, since autoapi also adds domain objects to the toctree by default (e.g. #369). It seems sensible to allow sphinx to handle the addition of domain objects to the toctree instead of post-processing it ourselves in autoapi.
If merged, this PR will cause autoapi to defer to sphinx to handle adding domain objects to the toctree.
Sphinx 5.2.0 adds domain objects to the toctree by default. This is causing duplicate entries to appear in the table of contents when autoapi is in use, since autoapi also adds domain objects to the toctree by default (e.g. #369). It seems sensible to allow sphinx to handle the addition of domain objects to the toctree instead of post-processing it ourselves in autoapi.
If merged, this PR will cause autoapi to defer to sphinx to handle adding domain objects to the toctree.