[Docs] SEO baseline for the custom site: sitemap, robots.txt, canonical, JSON-LD, 404

Aperta
#383 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript

Direzione di ricerca

Start with docs/astro.config.mjs and the files under docs/public/, then inspect the docs layout and page structure to locate where canonical URLs and JSON-LD belong. Check how drafts and design pages are identified before configuring the sitemap, and find the 20 internal links that need trailing slashes. Done means the sitemap excludes non-content pages, robots.txt points to it, canonical links are consistent, JSON-LD validates, and the custom 404 includes search.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: docs-site good first issue priority: P3 size: S type: enhancement

Summary

Sitemap and canonical tags currently come implicitly from Starlight (and include the template example page); there is no robots.txt or structured data. These must be explicit once Starlight is removed.

Location

  • docs/astro.config.mjs:15
  • docs/public/

Evidence

dist/sitemap-0.xml: 38 <loc> entries incl. https://docs-math.vercel.app/reference/example/
ls dist/robots.txt -> No such file
build log: Entry docs -> 404 was not found.

Expected

Explicit @astrojs/sitemap (excluding drafts/design pages), robots.txt pointing at it, canonical URLs with consistent trailing slashes, JSON-LD (TechArticle/SoftwareSourceCode with codeRepository), and a custom 404 page with search.

Proposed fix

Add @astrojs/sitemap with filter, public/robots.txt, set trailingSlash: 'always' and fix the 20 internal links written without a trailing slash, emit JSON-LD from the project manifest in the layout head, add src/pages/404.astro.

Acceptance criteria

  • robots.txt and sitemap present; sitemap excludes non-content pages
  • Internal links all use the canonical form (link checker)
  • JSON-LD validates in Rich Results test

Repository audit, November 2026 · Phase 7 · Docs platform · evidence: reproduced · ref platform-033


Generated by Claude Code

Lingua principale
C++
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.