Keeping the API updated in Sphinx

sphinx-apidoc only needs to be re-run when the module structure of your project changes. If adding, removing, and renaming modules is an uncommon occurrence for you, it may be easiest to just place the rst files under version control and update them by hand. Adding or removing a module only requires changing a few lines of rst, so you don’t even need to use sphinx-apidoc once you’ve run it once.

Leave a Comment