Render FAQPage structured data for docs pages with a FAQ section

Aberta
#71 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
66/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
laravel, php
Domínio
documentation

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
PHP
Estrelas
3
Forks
11
Merge médio
1d 6h
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de mage-os/devdocs-website

Todas as issues de mage-os/devdocs-website

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.