Skip to content

[SPARK-60281][INFRA] Upgrade AnchorJS to v5.0.0 - #59547

Open
nchammas wants to merge 5 commits into
apache:masterfrom
nchammas:anchorjs-bump
Open

nchammas wants to merge 5 commits into
apache:masterfrom
nchammas:anchorjs-bump

Conversation

@nchammas

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Upgrade AnchorJS to v5.0.0, and update its config accordingly to maintain roughly the current production behavior.

Additionally:

  • Move the AnchorsJS config to global.html, which matches where we include and configure other vendored libraries.
  • Remove the anchors global from main.js, which is no longer needed now that the config is handled outside of there.
  • Fix the included license for AnchorJS so it includes the copyright holder's name and year.

Why are the changes needed?

The current version of AnchorJS we are using is more than 11 years old. The releases since then have added more accessible heading links and more reliable fragment generation.

This upgrade will also keep the versions in sync with the main website's version of AnchorJS: apache/spark-website#700

Does this PR introduce any user-facing change?

No, documentation behavior tweaks only.

How was this patch tested?

I built and reviewed the site locally with SKIP_API=1 bundle exec jekyll serve. Confirmed that anchors work as expected, including for h1 headings.

Was this patch authored or co-authored using generative AI tooling?

I wrote this with assistance from GitHub Copilot.

@HyukjinKwon

Copy link
Copy Markdown
Member

(the label is still under dev .. I will likely be able to enable it this week)

spark-test

This comment was marked as duplicate.

@spark-test

This comment was marked as duplicate.

@spark-test spark-test removed the ai-review-requested Trigger AI review by Omnigent on Databricks label Oct 19, 2026
@HyukjinKwon HyukjinKwon added the ai-review-requested Trigger AI review by Omnigent on Databricks label Oct 19, 2026
@spark-test

This comment was marked as outdated.

@spark-test spark-test removed the ai-review-requested Trigger AI review by Omnigent on Databricks label Oct 19, 2026

@HyukjinKwon HyukjinKwon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants