I create my sphinx document for a django project as follows:
sphinx-apidoc app -o docs/source/app --force
Now it includes all southern migrations that I do not want to have in my documentation. Now I tried to exclude them as follows:
conf.py: def skip_migrations(app, what, name, obj, skip, options): return skip or (what == 'module' and name.find('Migration') != -1)\ or str(obj).find('migrations') != -1 def setup(app): app.connect('autodoc-skip-member', skip_migrations)
Now they are no longer documented, but are still listed in the modules. How can I exclude them?
source share