Skip to content

docs: TOC nesting fix + clarify compile_model backends (ils_*) - #4

Merged
thisiscam merged 3 commits into
mainfrom
examples-and-docs
May 24, 2026
Merged

thisiscam merged 3 commits into
mainfrom
examples-and-docs

Conversation

@thisiscam

Copy link
Copy Markdown
Owner

Two doc fixes that landed on examples-and-docs just after #3 was merged (so they missed the merge point).

  • 09751b9 TOC nesting: api.md section headers are ## (h2) but mkdocstrings rendered symbols at heading_level: 2, making e.g. acopula.copula a sibling of "Defining a copula" instead of a child — flat TOC. Bumped to heading_level: 3 → symbols nest as h3 under each h2 section, members h4 under their class.
  • 5ec815c compile_model backends: method doc listed "nested" but the dispatch keys on "integral" (compile.py:174); documented the real set (auto/bell/single_layer/integral). ils_method/ils_params now state explicitly they are used only by method="integral" and ignored by bell and single_layer.

mkdocs build --strict clean.

thisiscam added 3 commits May 24, 2026 13:10
api.md section headers are ## (h2); mkdocstrings was rendering symbols at
heading_level 2, making them siblings of the sections instead of children, so
the TOC was flat. Bump to heading_level 3 -> symbols are h3 under each h2
section, members h4 under their class.
- method: document the real keyword set (auto/bell/single_layer/integral).
  The numerical inverse-Laplace path keys on "integral" (compile.py:174),
  not "nested" as the docstring claimed — passing "nested" at depth<=1
  silently falls through to single_layer.
- ils_method / ils_params: state explicitly they are used ONLY by
  method="integral" and ignored by the bell and single_layer backends
  (which assemble the density analytically).
The decorator docstring used a 'Usage:' section (not a Google section) with
an unfenced indented code block, so mkdocstrings parsed it as Markdown and the
Python comment '# Can instantiate...' rendered as a stray heading. Switch to a
recognized 'Examples:' section with a fenced ```python block; the code now
renders as code and the bogus heading is gone.
@thisiscam
thisiscam merged commit 127e372 into main May 24, 2026
0 of 3 checks passed
@thisiscam
thisiscam deleted the examples-and-docs branch May 24, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant