Repository navigation
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
link_intro_pickssplits each bullet at its last": ", so on lines that pair several situations (- A: x; B: y), only the final pick gets linked. Five lines inscience.mduse that form. This change splits each bullet on"; "and links every pair. It also adds aColour→colour-sciencealias, 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).ty check website, all pass.categories/science/index.htmlchanges, on exactly the five paired lines.llms.txtis identical, andsitemap.xmldiffers only in dates.link_intro_picksfor 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.