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

オープン
#541 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
next.js, react, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
13
フォーク
2
平均マージ
5時間 20分
マージ済み PR(30日)
287

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eddiejaoude/StackDash のほかの issue

eddiejaoude/StackDash の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。