Skip to content

Follow links to sds ids that moved to another page - #650

Merged
d-morrison merged 3 commits into
mainfrom
claude/follow-moved-anchors
Nov 21, 2026
Merged

d-morrison merged 3 commits into
mainfrom
claude/follow-moved-anchors

Conversation

@d-morrison

Copy link
Copy Markdown
Contributor

Requested by Ezra · project thread

Why

Course sites link to sds anchors by URL, and when an id moves to another sds page those links land at the top of the old page; lds holds one such link today. Morrison-Lab/qwt#223 (merged) added the shared fix, and Morrison-Lab/mds#878 turns it on for mds; this does the same for sds. Tracked under lds#2946.

What

  • Vendors anchor-index.py (new) and the updated anchor-landing.html byte-identical from qwt at 4520162, with their sha256 hashes in .github/site-scaffolding.json.
  • Adds anchor-index.py to sync-site-scaffolding.yml.
  • Registers anchor-index.py as a post-render step, which writes _site/anchor-index.json; when a page lacks the link's #id, anchor-landing.html redirects to the page that holds it.
  • Documents both files in CLAUDE.md.

No page content changes. The redirect was checked in Chromium on qwt and on a copy of the mds site (see those PRs); I will check this PR's preview once it deploys.


Generated by Claude Code

Course sites link to sds anchors by URL, and when an id moves to another
page those links land at the top of the old page (lds holds one such link
today). Vendor qwt's new anchor-index.py (Morrison-Lab/qwt#223) and its
updated anchor-landing.html at qwt 4520162, add anchor-index.py to the
scaffolding sync, and register it as a post-render step, as mds does
(Morrison-Lab/mds#878).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDkNzouPjECg79btvrUxmv
@d-morrison d-morrison self-assigned this Nov 21, 2026
Comment thread anchor-index.py Fixed
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Contributor Author

The CodeQL failure (bad HTML filtering regexp in anchor-index.py) is real for a regex: it misses some </script ...> forms. The fix is upstream in qwt#224, which reads ids with html.parser instead. This PR will re-vendor that copy once it merges.

Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

qwt#224 replaced the script-stripping regex that CodeQL flagged
(py/bad-tag-filter) with html.parser; the index it writes is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDkNzouPjECg79btvrUxmv
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Claude finished review — View run


I reviewed 3cb0103, which only adds a merge of main on top of the last reviewed commit. I found no new issues.

The prior review is the 2026-11-21T18:40:30Z comment, a "Ready for merge" verdict on 25abce9. It still stands.

  • What changed: The merge matches git's automatic merge of its parents. The only other commit in the range, c833959 ("Add the shared check-equation-labels caller"), is already on main. The PR's own diff is unchanged.
  • Manifest hashes: The sha256 values in .github/site-scaffolding.json still match the files on disk (anchor-landing.html feea770a…, anchor-index.py e90142cb…).
  • Not run: I did not fetch the qwt copies or render the site.
  • Not applicable: The diff adds no math, .qmd prose or R code, so the macro and content-rule checks do not apply.

Verdict

Ready for merge

Structured Review Data (JSON)
{
  "schema_version": "1.1",
  "reviewer": "claude",
  "commit_sha": "3cb0103eff223c132856b5adafd80e4ed9264937",
  "verdict": "CLEAN",
  "findings": [],
  "detailed_assessment": "Confirmed the manifest sha256 values for anchor-index.py and anchor-landing.html still match the on-disk files after the merge of main.",
  "holistic_assessment": "The merge adds only commits already on main, so the PR scope, integration and regression risk are unchanged from the prior clean review."
}

Reviewed commit: 3cb0103

@github-actions

Copy link
Copy Markdown
Contributor

💰 Cost: $0.1892 (review) — run

@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
🚀 Preview available at: https://Morrison-Lab.github.io/sds/pr-preview/pr-650/

Built to branch gh-pages at 2026-11-21 19:24 UTC.

Copy link
Copy Markdown
Contributor Author

Merge note: check-pr-fully-clean.py exits 0 on head 3cb0103 (CI green including CodeQL, Claude review clean on this head). On the preview, index.html#def-IQR redirected to exploratory-descriptive.html#def-IQR and index.html#def-SE to estimation.html#def-SE in Chromium, with no page errors. No cross-model reviewer can run from this cloud thread, so that gate is waived as adversarial-self-review.md allows. Merging under Ezra's standing grant for infra PRs (site scaffolding, no content).

Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

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