Render FAQPage structured data for docs pages with a FAQ section

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
laravel, php
領域
documentation

調査の方向性

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.

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

説明

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.
主要言語
PHP
スター
3
フォーク
11
平均マージ
1日 6時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

mage-os/devdocs-website のほかの issue

mage-os/devdocs-website の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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