Skip to content

fix(site): improve SEO, agent access, and keyboard accessibility - #167

Merged
Wondertan merged 2 commits into
libid-org:mainfrom
kovarrrski:fix/site-seo-accessibility
Oct 27, 2026
Merged

Wondertan merged 2 commits into
libid-org:mainfrom
kovarrrski:fix/site-seo-accessibility

Conversation

@kovarrrski

Copy link
Copy Markdown
Contributor

Adds unique static metadata and canonicals for 11 indexable pages, social metadata using the existing libID banner, protocol and documentation JSON-LD, robots.txt and llms.txt with ai-train=yes.

Keeps real 404 responses, adds noindex to 404 and preview responses, filters the sitemap by generated HTML, and prepares permanent canonical URL redirects. Improves skip-link focus, mobile-menu ARIA, focus styles and reduced-motion support without redesign.

Validation: four site test scripts pass; zero broken internal links; browser checks at 320, 390 and 1440px; keyboard menu, search, TOC and code copying tested.

Limitations: standard clean CI build still needs confirmation because the Windows sandbox blocked native subprocesses. The local preview used uncommitted environment workarounds. Cloudflare redirects, preview headers and managed robots and AI bot policies require verification after an approved deployment. No full screen-reader test or WCAG certification is claimed.

Coordinate with #70 and #166. No merge or deployment.

kovarrrski and others added 2 commits October 27, 2026 14:49
Assisted-by: GPT-6
Signed-off-by: Klementina <mr.tonkonog@gmail.com>
- Starlight already adds @astrojs/sitemap without the 404 page, so the
  custom filter and its dependency produced the same sitemap.
- Require description in the docs schema, so the build fails on a page
  without one, instead of an SEO test of the built HTML.
- The zone already redirects HTTP and www to https://lib.id with 301, and
  Assets already redirects /docs and /docs/index.html to /docs/. Revert the
  Worker wrapper and run_worker_first: true, which billed every asset request.
- Mark preview and workers.dev hosts noindex in _headers instead. Drop the
  preview robots.txt Disallow: it would hide that noindex from crawlers.
- 404 responses are never indexed; the 404 page keeps its robots noindex.
- X falls back to og:title, og:description and og:image; keep only
  twitter:image:alt.
- Browsers expose aria-expanded for popovertarget buttons natively.
- trailingSlash and force-trailing-slash changed no built URL.
- Drop the home skip link (one button to skip), the reduced-motion reset,
  the home copy rewrite, the Windows path changes, the duplicated llms.txt
  lines and most of the README.

Assisted-by: Claude Opus 5.5
Signed-off-by: Wondertan <hlibwondertan@gmail.com>
@Wondertan
Wondertan force-pushed the fix/site-seo-accessibility branch from bc343fd to d2d0c5b Compare October 27, 2026 16:06
@Wondertan
Wondertan enabled auto-merge (squash) October 27, 2026 16:12
@Wondertan
Wondertan merged commit 685b7fb into libid-org:main Oct 27, 2026
10 checks passed
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.

2 participants