Skip to content

Conversation

@heckj
Copy link
Member

@heckj heckj commented Nov 12, 2025

  • uses playwright
  • dumps a report in JSON, the file name of which has been added to .gitignore
  • after hosting the site locally, run npm run site-check to drive through the site
  • implemented using claude/ML

It's entirely a proof of concept, but reasonably useful from where it's starting. The content in this PR should not impact anything presented on the swift.org website, and is meant to be developer tooling to explore the content.

Motivation:

I wanted to get a better handle on the content interconnections and "depth from the root" of the site, as well as potentially identify broken links, broken images, and/or pages that have become isolated as we've built up and redesigned the site.

Modifications:

The PR includes 2 scripts and docs/notes for those scripts:

  • scripts/site-check.js
  • scripts/site-visualize.js

Result:

I have a copy temporarily hosted on GitHub pages with the output from this script: https://heckj.github.io/swift-org-website/site-visualize-output.html

… issues

- uses playwright
- dumps a report in JSON, the file name of which has been added to .gitignore
- after hosting the site locally, run `npm run site-check` to drive through the site
- implemented using claude/ML
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