Skip to content

fix(docs): /reference /backtest redirects + Google docstrings + typed options API (5ipk.5)#6

Merged
lavs9 merged 1 commit into
mainfrom
fix/5ipk5-reference-backtest-autorefs
Jul 11, 2026
Merged

fix(docs): /reference /backtest redirects + Google docstrings + typed options API (5ipk.5)#6
lavs9 merged 1 commit into
mainfrom
fix/5ipk5-reference-backtest-autorefs

Conversation

@lavs9

@lavs9 lavs9 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Closes the substantive remainder of quantwave-5ipk.5.

Fixes

  • /reference/ and /backtest/ 404s (review-flagged) → redirect stubs matching the existing native-page meta-refresh pattern (/reference//api/, /backtest//guides/backtest/).
  • 8 mkdocs_autorefs warnings → 0: quantwave/polars.py used NumPy-style docstrings while mkdocstrings is configured docstring_style: google (as every other module uses), so its doctest output ([0], [24800.0]) was misread as cross-references. Converted to Google style.
  • Typed options API: added _Col/_ColOrVal aliases and -> pl.Expr returns to all options methods, clearing the griffe "no annotation" warnings and giving the flagship Options India surface full type coverage.

Verification

  • mkdocs build --strict0 autorefs, 0 link warnings
  • doctests (11) + tests/options_india (42) pass
  • check_doc_links / check_doc_latex / check_doc_drift all green

Deferred (cosmetic, documented on the bead)

Migrating the 162 native redirect stubs to mkdocs-redirects — that plugin also emits meta-refresh HTML (no functional gain) and would require the sync_indicator_docs.py generator to programmatically rewrite mkdocs.yml. Not worth the risk; the stubs work and are generator-maintained.

Docstring conversion + annotations done by a Sonnet subagent; orchestration + redirects + verification by the main agent.

🤖 Generated with Claude Code

…tions API (5ipk.5)

Three doc-quality fixes closing the substantive 5ipk.5 remainder:

- Add /reference/ and /backtest/ redirect stubs (both 404'd on the live site;
  the review flagged them). Match the existing native-page meta-refresh pattern:
  /reference/ → /api/, /backtest/ → /guides/backtest/.
- Convert quantwave/polars.py docstrings from NumPy to Google style (the style
  every other module uses under mkdocstrings' docstring_style: google). The
  NumPy sections were mis-parsed as prose, so mkdocs_autorefs read doctest output
  like [0]/[24800.0] as cross-references — 8 warnings, now 0.
- Add type annotations to the options-class methods (`_Col`/`_ColOrVal` aliases,
  `-> pl.Expr` returns) so griffe no longer warns about undocumented types, and
  the public options surface is now fully typed.

Verified: mkdocs build --strict → 0 autorefs + 0 link warnings; doctests (11) and
tests/options_india (42) pass.

Not included (deferred, cosmetic): migrating the 162 native redirect stubs to the
mkdocs-redirects plugin. mkdocs-redirects also emits meta-refresh HTML, so it's
purely repo hygiene, and it would require the sync_indicator_docs.py generator to
programmatically rewrite mkdocs.yml — not worth that risk. The stubs work and are
generator-maintained.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lavs9
lavs9 merged commit 7e137b4 into main Jul 11, 2026
7 checks passed
@lavs9
lavs9 deleted the fix/5ipk5-reference-backtest-autorefs branch July 11, 2026 07:34
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