Skip to content

fix(website): link every pick on intro lines that pair several situations - #3408

Open
divya0795 wants to merge 1 commit into
vinta:masterfrom
divya0795:fix/intro-multi-pick-links
Open

divya0795 wants to merge 1 commit into
vinta:masterfrom
divya0795:fix/intro-multi-pick-links

Conversation

@divya0795

@divya0795 divya0795 commented Nov 16, 2026 •

Copy link
Copy Markdown

On the Science page, six of the eleven "How to choose" picks are plain text instead of links to their table rows: statsmodels, Biopython, Pint, Astropy, SimPy and Colour. Live HTML today:

<li>Physical units: Pint; astronomy: Astropy; seismology: <a href="#entry-obspy">ObsPy</a></li>
<li>Colour science: Colour; math animations: <a href="#entry-manim">Manim</a></li>

link_intro_picks splits each bullet at its last ": ", so on lines that pair several situations (- A: x; B: y), only the final pick gets linked. Five lines in science.md use that form. This change splits each bullet on "; " and links every pair. It also adds a Colour → colour-science alias, since the README entry's name doesn't match the intro's.

There was also a latent problem in the same loop: a bullet with no ": " was rewritten to ": - …", which stops it parsing as a list item, so the whole list disappeared from the intro. Such a bullet is now left unchanged.

Two regression cases (paired situations with the alias, and a bullet with no situation) both fail on the unchanged base.

Validation, on Python 3.14.10 (macOS):

  • pytest website/tests/: 172 passed (170 on the base, plus the 2 new cases).
  • Ruff lint and format check, and ty check website, all pass.
  • Full site build: across all generated pages, only categories/science/index.html changes, on exactly the five paired lines. llms.txt is identical, and sitemap.xml differs only in dates.
  • Before/after on link_intro_picks for the existing forms (Big apps: Django, Django - LTS releases, Django Ninja, or `uv tool` on uv, and a situation containing ": "): identical output.

This fixes the website and does not add a project listing, so the project-admission template does not apply.

…ions

link_intro_picks split each "How to choose" bullet at its last ": ", so
on lines like "- Physical units: Pint; astronomy: Astropy; seismology:
ObsPy" only the final pick was linked. Split on "; " first and link each
pair. Add the Colour -> colour-science alias, and leave a bullet without
a ": " unchanged instead of rewriting it to ": - ...", which dropped the
whole list.

This branch has not been deployed

No deployments
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