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

Open
#383 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.