#493 The help's FAQ as FAQPage structured data
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#493
- pull request
- state:merged
Closes #483. `/help/faq` had no structured data, though its headings are the questions people ask. **Changes:** - **Answers:** `server/help.mjs` keeps each help section's first paragraph, as plain text, as its `lead`. - **`faqData(page, url)`** builds a schema.org `FAQPage` from the page's second-level headings that end with "?", with each `lead` as the answer. - **Rendering:** help pages that have questions add it as JSON-LD after the article. Today that's the FAQ. Since the data is built from the document, it can't drift from the page, and every answer is still visible text. **Tests:** `help.test.mjs` checks every FAQ question and plain-text answer, without Markdown, and that a page asking nothing has none. `next-platform` passes here, along with the unit tests (except `contents.test.mjs`, which fails on `main` in this checkout too). **Docs:** `docs/sharing.md#search-engines`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/493
Related
Open #493 The help's FAQ as FAQPage structured data in the timeline