← Back to Pull requests

feat(docs-site): Blocks に docs-layout-prev-next(ドキュメントの前後ページ導線)を追加する #3547

Open
unknown opened this pull request with 214 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 02, 2026 06:34 UTC
Author

Summary


  • Blocks に docs-layout-prev-next(ドキュメントの前後ページ導線)を追加
  • Closes #3107

    対象外(out-of-scope)


  • Playwright によるブラウザ実挙動確認(広域/狭幅レイアウト・ダークテーマ・フォーカスリングのスクリーンショット確認)は本フェーズでは未実施。後続レビューフェーズでの実施を推奨
  • <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Docs-site-only static block demo with established patterns, contract tests, and no auth or runtime behavior changes.

    > Overview

    Adds the docs-layout-prev-next block (#3107) as the first entry in the new Docs Layout category: a static demo of end-of-article prev/next navigation built only from existing pagination, link, text, icon, and card parts.

    > The demo stacks three layout variants on one page (direction label + title, icon + title only, and a subtle card band with a next-page summary). Block-specific CSS uses @container for narrow-width stacking, *data- hooks where styled parts drop caller class, and unique aria-labels on each <nav>. Links use real in-site relative paths (no href="#"); unit tests cover parts composition, landmarks, links, and no <form>/script.

    > Wiring follows the usual block-add pattern: docs_layout graduates from an empty stub to docs_layout/mod.rs + implementation, site/blocks/docs-layout-prev-next.md, a Docs Layout group in site/nav.toml, a row in docs-site-blocks-section.md §19, and a CI test -f** for blocks/docs-layout-prev-next/index.html.

    > <sup>Reviewed by Cursor Bugbot for commit bdc04678413ed5cb410be7385a3a3e96124b8300. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 214 lines (+160 / -54) across 2 files Reviewer: github-actions[bot] Review duration: 2m
    All Vouch review confidence checks passed
    Residual risk 0.30 = Change Risk (0.42) × (1 − Review Confidence (0.29)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 214 lines diff across 2 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 45% · Reviewer familiarity: 35%
    28%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.321
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #3547"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 28.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.6% (MEDIUM) · Higher = larger blast radius
    41.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 28.6% · Lower = rushed or shallow review
    28.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.7% · Safe to merge
    29.7%