Site discoverability and performance
The landing page (website/index.html) and generated docs are static HTML on GitHub Pages. No change to positioning, hosting or content.
Already in place
Landing: canonical URL, description, Open Graph and Twitter cards, SoftwareSourceCode JSON-LD, robots.txt, sitemap.xml, llms.txt. Docs: absolute canonicals and paired English and Chinese files.
Behaviour
| Item | Emits | Basis |
|---|---|---|
| Hero video | A muted, looping 1280×720 tour video (about 3 MB) with intrinsic dimensions and a JPEG poster from its title card. One rendering per theme; a small inline script picks the one that matches data-theme, so only one downloads. With reduced motion it shows the poster and controls instead of playing. | Optimize LCP, Responsive images |
| Landing images and text | Explicit width and height. Secondary text meets WCAG AA. The icon-only copy button has an accessible name. The word program in the App's blue-to-violet brand gradient. | Lighthouse |
| Language pairs | Identical reciprocal en, zh-Hans and x-default links, English as fallback, from the same origin and base as canonicals. Unpaired pages emit none. | Localized versions |
| Canonicals | Self-referential; language toggle unchanged | |
| Breadcrumbs | One BreadcrumbList per content page: OpenProgram Docs → current page. None on the docs root. Serialized by the standard library with < escaped. | Breadcrumb data |
| Release feed | One application/atom+xml alternate to https://github.com/Fzkuji/OpenProgram/releases.atom | No new publishing service |
Rejected: changing to SoftwareApplication for rich results, since no rating or offer data exists; analytics, tracking, cookie banners, new runtime dependencies, CDN or hosting changes. GitHub Pages cache headers are outside the repository.
Acceptance
| Check | Requires |
|---|---|
python -m scripts.docs_site.check_landing | Rejects old markup and old bilingual builds, duplicate or unrelated Atom feeds; validates the tour video (one element, both theme renderings, poster, dimensions, under 8 MB, copied by the build) and semantic hreflang |
python -m scripts.docs_site.build, checklinks | Pass |
| Hero | Materially smaller than the PNG, declared intrinsic dimensions |
| Mobile Lighthouse | No failures for unsized images, contrast, label-content-name mismatch, image delivery or LCP discovery; SEO and Best Practices stay 100 |
| Built docs | Root has no BreadcrumbList; every canonical content page has one valid two-item trail rooted at https://fzkuji.github.io/OpenProgram/docs/ |
| Deployed | CI passes on the reviewed commit and the live page reproduces the markup |
Implementation status
Implemented. The hero changed from a still image to the tour video, so the Lighthouse figures need a fresh mobile run against the deployed site.
Last updated · 2026-11-25