Skip to content

Add a GitHub Pages landing page - #10

Closed
mackoj wants to merge 4 commits into
docs/performancefrom
docs/github-pages
Closed

mackoj wants to merge 4 commits into
docs/performancefrom
docs/github-pages

Conversation

@mackoj

@mackoj mackoj commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Stacked on #9 (and #8); merge those first and GitHub retargets this to main.

  • site/index.html: a single-file landing page (no external assets) that explains the problem (one preview shows one environment), how the modifier works, the 40 environment values that change the environment, the simulator-only guarantee, and the install snippet for the latest release, 1.1.4. Light and dark themes, works at phone width.
  • .github/workflows/pages.yml: deploys site/ to GitHub Pages on pushes to main that touch it (same workflow as swift-arazzo). Pages is already enabled with build_type=workflow; the site goes live at https://mackoj.github.io/EnvironmentVariationPreview/ once this reaches main.
  • Tests/…/ReadmeTests.swift compiles the page's code samples against the public API (plain import, no @testable), and a caption test checks the captions the page draws. Note: the samples write .dynamicTypeSize(DynamicTypeSize.xSmall), because the payload is Any; the old README's .dynamicTypeSize(.xSmall) does not compile (fixed in the README PR).

Xcode 16 enforces the iOS 14 deployment target, where DynamicTypeSize is
unavailable.
@mackoj

mackoj commented Nov 14, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #12

@mackoj mackoj closed this Nov 14, 2026
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