Render FAQPage structured data for docs pages with a FAQ section

Aperta
#71 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php
Ambito
documentation

Direzione di ricerca

Start with resources/views/docs.blade.php and resources/views/partials/layout.blade.php to trace how documentation content reaches the page head. Check how pages and headings are represented, then identify the existing view tests or add a focused check for pages with and without the FAQ section. Done when FAQ pages emit JSON-LD matching their visible questions and answers, while other pages emit no new markup.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Add FAQPage structured data to documentation pages that have a "Frequently asked questions" section, so crawlers and AI search can read the questions and answers.

Proposal

  • Convention in the docs: a ## Frequently asked questions section where each question is an ### heading followed by its answer.
  • When the page has this section, the page template (resources/views/docs.blade.php, with the <head> in resources/views/partials/layout.blade.php) renders a <script type="application/ld+json"> with a FAQPage made of those headings and answers. The visible text must match the markup, as Google requires.
  • Pages without the section render nothing new.

Notes

  • Google limits FAQ rich results to well-known government and health sites, so this is for machine readability, not for rich snippets in search. Please check the current Google documentation before relying on it.
  • Replaces the GPT generation idea in #57. The FAQ content itself is written by hand in mage-os/devdocs.
Lingua principale
PHP
Stelle
3
Fork
11
Merge medio
1g 6h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mage-os/devdocs-website

Tutte le issue di mage-os/devdocs-website

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.