Skip to content

[DOC] fixing link in user_guide/index & fixing section heading in triangle.py - #1175

Open
henrydingliu wants to merge 5 commits into
mainfrom
henrydingliu-patch-1
Open

[DOC] fixing link in user_guide/index & fixing section heading in triangle.py#1175
henrydingliu wants to merge 5 commits into
mainfrom
henrydingliu-patch-1

Conversation

@henrydingliu

@henrydingliu henrydingliu commented Aug 1, 2026

Copy link
Copy Markdown
Member

Summary of Changes

updating a link in the user guide index
updating an unrecognized numpydoc section in triangle.py

but mostly to test out the new rtd webhook

Related GitHub Issue(s)

Additional Context for Reviewers

see here

  • I passed tests locally for both code (uv run pytest) and documentation changes (uv run jb build docs --builder=custom --custom-builder=doctest)

Note

Low Risk
Doc and doctest markup only; no runtime or API behavior changes.

Overview
Documentation-only updates for Sphinx/Read the Docs.

In triangle.py, the ultimate-values narrative is moved under a proper Notes section (replacing a heading style numpydoc did not recognize). The ultimate-values subsection is labeled with bold text, and the long-format ultimate example doctest now includes import pandas as pd.

On the user guide index, the Triangles card Classes line switches from a broken py:class reference to a Sphinx {ref} to triangle:structure, matching how other cards link to doc sections.

Reviewed by Cursor Bugbot for commit 692453c. Bugbot is set up for automated code reviews on this repo. Configure here.

updating a link in the user guide index

but mostly to test out the new rtd webhook
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Pyright Type Completeness

View the full pyright --verifytypes output for this commit

Project (full chainladder package, at this PR's head): 15.0% of exported symbols fully typed (196 / 1305)

Known Ambiguous Unknown Total
Project (head) 196 110 999 1305

Other symbols referenced but not exported by chainladder: 13

Known Ambiguous Unknown Total
Other (head) 3 1 9 13

Symbols without documentation:

  • Functions without docstring: 315
  • Functions without default param: 0
  • Classes without docstring: 10

Patch (exported symbols added or changed by this PR): no exported symbol type-completeness changes detected.

@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.14%. Comparing base (bb16128) to head (692453c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1175   +/-   ##
=======================================
  Coverage   91.14%   91.14%           
=======================================
  Files          91       91           
  Lines        5365     5365           
  Branches      681      681           
=======================================
  Hits         4890     4890           
  Misses        340      340           
  Partials      135      135           
Flag Coverage Δ
unittests 91.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@henrydingliu
henrydingliu marked this pull request as ready for review August 1, 2026 01:31
@henrydingliu
henrydingliu marked this pull request as draft August 1, 2026 01:36
@henrydingliu
henrydingliu marked this pull request as ready for review August 1, 2026 01:44
kennethshsu
kennethshsu previously approved these changes Aug 1, 2026
@kennethshsu

Copy link
Copy Markdown
Member

I would just recommend updating the PR subject title

@kennethshsu
kennethshsu dismissed their stale review August 1, 2026 05:19

Dismiss too

@kennethshsu

Copy link
Copy Markdown
Member

@priyam0k can you review this too? :)

@henrydingliu henrydingliu changed the title Small doc change [DOC] fixing link in user_guide/index & fixing section heading in triangle.py Aug 1, 2026
@priyam0k

priyam0k commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

thanks @kennethshsu for the nudge to start picking up reviews, still finding my footing here so please correct me if i'm reading things wrong.

@henrydingliu nice, and the rtd preview link works, so the webhook side looks good too.

two things i checked:

the {ref}Triangle `` resolves. the label is defined in docs/user_guide/triangle.ipynb. dropping the bold and switching to … also brings the triangle card in line with the other cards on that page, which already use {ref} and …. minor note for later, not this PR: the other pages use the docname:anchor form (development:development, tails:tailcurve) while triangle's label is just triangle. works either way, just inconsistent.

the Notes block is the last thing in the class docstring, so nothing else gets pulled under it by numpydoc. clean fix.

one nit: the import pandas as pd in that testcode looks redundant. the class docstring already has a.. testsetup::at the top that imports both pandas and chainladder, which is why the earlier blocks work without it. harmless, but if the intent is making snippets copy-pasteable on their own, the other blocks would need the same treatment.

@henrydingliu

Copy link
Copy Markdown
Member Author

minor note for later, not this PR: the other pages use the docname:anchor form (development:development, tails:tailcurve) while triangle's label is just triangle. works either way, just inconsistent.

I actually want to blow up the overall panel setup. both this index and the example gallery index. these panels are super finicky. links can become unclickable as you scroll around.

the import pandas as pd in that testcode looks redundant. the class docstring already has a.. testsetup::at the top that imports both pandas and chainladder, which is why the earlier blocks work without it. harmless, but if the intent is making snippets copy-pasteable on their own, the other blocks would need the same treatment.

numpydoc seems to reset the environment for every section. doctest actually fails without this new import.

@priyam0k

priyam0k commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

the section-level triangle:structure reads better than pointing at the whole page, nice. and fair enough on the panels, if the whole setup's getting redone then the label convention will sort itself out there. good by me.

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.

3 participants