angr/docs
Kevin Phoenix 7fd4ac3bf9
docs: Auto-generate the API reference via autosummary (#6460)
Replace the hand-maintained ``api.rst`` listing with a single
``.. autosummary:: :recursive:`` entry point, and add an autosummary
template under ``_templates/autosummary/module.rst`` that recursively
emits a page per submodule. The output directory ``docs/api/`` is
gitignored.

The template uses ``.. rubric:: Submodules`` instead of a section
heading so the autogenerated pages don't all register a duplicate
"Submodules" autosectionlabel.

Adjustments to ``conf.py`` to make the auto-generated pages readable:

- ``autodoc_class_signature = "separated"`` so the class declaration line
  does not duplicate the ``__init__`` parameter list.
- ``skip_inherited_undocumented`` (autodoc-skip-member): when a subclass
  overrides a method without its own docstring, do not document the
  override on the subclass page; the parent's "Bases:" link already
  points readers to the canonical entry. Avoids duplicating the parent's
  full docstring on every subclass.
- ``_patch_directive_header_for_reexports`` (monkey-patch of
  ``_directive_header_lines``): for re-exported symbols (e.g.
  ``angr.SimState`` re-exporting ``angr.sim_state.SimState``), inject
  ``:no-index:`` so the entry still renders on the parent page but the
  canonical defining-module page is the unambiguous cross-reference
  target.
2026-06-04 08:32:27 -07:00
..
_templates/autosummary docs: Auto-generate the API reference via autosummary (#6460) 2026-06-04 08:32:27 -07:00
advanced-topics docs: Disambiguate narrative cross-references (#6459) 2026-06-03 12:19:46 -07:00
analyses docs: Fix warnings generated during build (#6433) 2026-05-22 15:37:45 -07:00
appendix docs: Disambiguate narrative cross-references (#6459) 2026-06-03 12:19:46 -07:00
core-concepts docs: Disambiguate narrative cross-references (#6459) 2026-06-03 12:19:46 -07:00
extending-angr docs: Disambiguate narrative cross-references (#6459) 2026-06-03 12:19:46 -07:00
getting-started docs: Drop ailment external package references 2025-05-28 17:50:20 -07:00
api.rst docs: Auto-generate the API reference via autosummary (#6460) 2026-06-04 08:32:27 -07:00
conf.py docs: Auto-generate the API reference via autosummary (#6460) 2026-06-04 08:32:27 -07:00
examples.rst docs: Disambiguate narrative cross-references (#6459) 2026-06-03 12:19:46 -07:00
faq.rst docs: Disambiguate narrative cross-references (#6459) 2026-06-03 12:19:46 -07:00
index.rst docs: Drop ailment external package references 2025-05-28 17:50:20 -07:00
make.bat Add in-tree docs (#3849) 2023-03-08 18:06:10 -07:00
Makefile Add in-tree docs (#3849) 2023-03-08 18:06:10 -07:00
quickstart.rst docs: Drop semicolon from 'Going further' section 2024-11-12 14:41:18 -07:00