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

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
13
Forks
2
Avg merge
5h 20m
Merged PRs (30d)
287

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 eddiejaoude/StackDash

All issues in eddiejaoude/StackDash

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.