feat(web): add structured data, llms.txt, and Markdown docs pages

Abierto
#541 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
next.js, react, typescript

Línea de trabajo

Start by reading src/lib/docs.ts, src/app/docs/[...slug]/page.tsx, and src/components/sections/faq.tsx to trace how docs and FAQ content are rendered. Then check the existing metadata, CSP nonce handling, and e2e patterns in the named files. Done means the JSON-LD, generated /llms.txt, Markdown routes, provider titles, crawler decision, and requested e2e coverage meet the acceptance criteria.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area: docs area: web enhancement impact: high priority: P2 size: S

Context

First slice of #540 (option C, decided 2026-11-17). Search engines and AI answer engines read structured data and plain Markdown directly. StackDash publishes neither today:

  • No application/ld+json anywhere in src/.
  • The landing FAQ (src/components/sections/faq.tsx) has 9 questions and answers with no FAQPage markup.
  • No /llms.txt, and no Markdown version of a docs page, although every docs page is a Markdown file under docs/ (src/lib/docs.ts).
  • robots.txt allows every crawler (robotsRules in src/lib/site-metadata.ts) by default rather than by a recorded decision.
  • Provider docs pages are titled with only the company name (# Vercel, docs/providers/vercel.md:1), so the page title says nothing about what the page covers.

Plan

  1. JSON-LD, rendered on the server with the request's CSP nonce where needed (src/proxy.ts, #125):
    • SoftwareApplication on the landing page (src/app/page.tsx): name, description, category, open-source license, URL.
    • FAQPage built from the same faq array faq.tsx renders, so the markup and the visible answers cannot drift.
    • TechArticle and BreadcrumbList on every docs page (src/app/docs/[...slug]/page.tsx).
  2. /llms.txt: the site's one-line summary, then links to the guides, provider pages, API and MCP docs, built from listDocs() so a new docs page appears without a second edit.
  3. A plain Markdown version of each docs page at /docs/<slug>.md, served from the same file readDoc reads, with Content-Type: text/markdown; charset=utf-8. docs/internal/ stays unpublished.
  4. Provider page titles: the metadata title of a page in the providers group reads " integration", for example "Vercel integration". The H1 in the Markdown file can stay as it is.
  5. Robots: keep allowing every crawler, AI crawlers included, because being cited in AI answers is the goal of #540. Record that decision in a comment beside robotsRules and in docs/operations/self-hosting.md so self-hosters know they can change it.

Acceptance criteria

  • The landing page carries SoftwareApplication and FAQPage JSON-LD, and every docs page carries TechArticle and BreadcrumbList. Google's Rich Results Test reports no errors for each
  • The FAQPage questions and answers match the visible FAQ exactly
  • /llms.txt lists every published docs page and no docs/internal/ page
  • /docs/<slug>.md returns the page's Markdown with a text/markdown content type; an internal or unknown slug returns 404
  • Provider docs pages have titles of the form " integration"
  • The JSON-LD script tags pass the enforced CSP (no console violations)
  • Playwright e2e covers the JSON-LD on the landing page and one docs page, /llms.txt, and one .md page

Files and areas

src/app/page.tsx, src/components/sections/faq.tsx, src/app/docs/[...slug]/page.tsx, src/lib/docs.ts, src/lib/site-metadata.ts, a new src/app/llms.txt/route.ts, a route for the Markdown pages, docs/operations/self-hosting.md, e2e/docs.spec.ts.

Non-goals: new content (#540's other slices), integration pages, blocking any crawler.

Verification

  • npm run test and npm run test:e2e for the docs and landing specs.
  • curl -sI localhost:3000/docs/providers/vercel.md shows content-type: text/markdown.
  • Rich Results Test on a preview deployment, results pasted here.

Model: anthropic/claude-opus-5-5 | Reasoning effort: not reported by harness

Lenguaje dominante
TypeScript
Estrellas
13
Forks
2
Merge medio
5 h 20 min
PR fusionados (30 d)
287

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de eddiejaoude/StackDash

Todos los issues de eddiejaoude/StackDash

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.