Skip to content

feat: move attribution into guide-local data for OGP v2.2.0 - #67

Merged
MrHinsh merged 1 commit into
mainfrom
codex/guide-local-attribution
Nov 27, 2026
Merged

MrHinsh merged 1 commit into
mainfrom
codex/guide-local-attribution

Conversation

@MrHinsh

@MrHinsh MrHinsh commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Guide attribution now lives beside each guide in contentRoot/data/contributors.yml and translators..yml. Core contributor operations, assessment and PDF credits resolve the new paths; Prepare generates Hugo asset mounts while preserving existing mounts, and shared templates read those assets. Legacy site-wide storage produces a migration diagnostic. The sample and distributed guidance use the new convention.

Validation: required platform, sample preview and sample production builds passed locally; 641 tests passed, 0 failed, 3 pre-existing skips. Tests cover mixed-case guide IDs, rendered creator/translation credits, mount preservation, protected records, stale Prepare evidence, language/edition selection and PDF credit metadata. Hugo 0.146 compatibility scenarios passed 3/3. Independent read-only review found no unresolved substantive issues. Packaged contributor, translation and installed-module acceptance workflows passed. Consumer sites were not changed or deployed.

Targets OGP v2.2.0; no release has been published.

Summary by CodeRabbit

  • New Features
    • Contributor and translator credits are now stored alongside each guide, with language-specific files for translation teams.
    • Guide preparation makes attribution data available to site builds, and generated pages and PDFs can use the guide-local credits.
  • Documentation
    • Updated contributor, translation and PDF guidance with the new file locations and migration steps.
  • Bug Fixes
    • Builds now flag legacy site-wide contribution data and invalid or ambiguous attribution files.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T08:47:30.595808Z 41da19c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Contributor and translator records now use files under each guide’s content root. PowerShell tools discover and update those files, while Hugo mounts and reads them for attribution listings. The changes also add legacy-storage diagnostics, migration documentation, and tests for validation and rendering.

Changes

Guide-local attribution

Layer / File(s) Summary
Guide-local files and migration
docs/using/*, docs/architecture/*, readme.md, examples/reference-guide-site/*, system/OpenGuidePlatform.Agents.Integration/*, system/OpenGuidePlatform.PowerShell.Core/*, tests/Core/Contributors.Tests.ps1, tests/Core/Core.Tests.ps1, tests/Core/GuideCredits.Tests.ps1, tests/Core/GuidePdfRecipe.Tests.ps1
The documentation and guidance describe contributors.yml and translators.<lang>.yml under each guide’s contentRoot/data. PowerShell discovery, update paths, and validation use the guide-local layout and report legacy storage. Tests cover file operations, validation, protection rules, guide isolation, and PDF inputs.
Hugo attribution loading
docs/using/guide-local-attribution.md, system/OpenGuidePlatform.Hugo.Guides/layouts/_partials/*, system/OpenGuidePlatform.PowerShell.GuideSiteBuild/GuideSiteBuild/Build-GuideSite.ps1, tests/Core/AttributionPrepare.Tests.ps1, tests/Core/HugoAttribution.Tests.ps1, tests/Core/HugoGuideRendering.Tests.ps1, tests/Core/HugoSeoMetadata.Tests.ps1
Prepare preserves effective Hugo mounts and adds mounts for guide data. Hugo attribution partials load contributor and translator records from those mounts. Tests cover configuration preservation, rendering layouts, filtering, ambiguous files, and legacy data diagnostics.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant BuildGuideSite
  participant HugoOverlay
  participant GetGuideAttribution
  participant GuideDataFiles
  participant AttributionPartials
  BuildGuideSite->>HugoOverlay: Add guide data asset mounts and preserve effective mounts
  HugoOverlay->>GetGuideAttribution: Expose guide data under ogp-attribution
  AttributionPartials->>GetGuideAttribution: Request attribution for a guide
  GetGuideAttribution->>GuideDataFiles: Read and parse attribution YAML
  GuideDataFiles-->>GetGuideAttribution: Return parsed records
  GetGuideAttribution-->>AttributionPartials: Return attribution dictionary
Loading

Possibly related PRs

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Credits move beside the guide
Translators find their language files
Hugo mounts the data in place
Tests trace each rendered name
Old paths meet a clear migration note

@MrHinsh
MrHinsh enabled auto-merge (squash) November 27, 2026 08:46
@github-actions

Copy link
Copy Markdown

Prepare completed. Workflow evidence. This is the candidate assessment, not independent policy or deployment approval.

Prepare: pass

Commit: 41da19c · Platform: 2.2.0-PullRequest67.1 · Target: canary

Selection: v2.2.0-PullRequest67.1; resolved: v2.2.0-PullRequest67.1; OGP ring: preview.

Severity Scope Subject Finding What to fix
warning platform github.com/nkdAgility/OpenGuidePlatform/system/OpenGuidePlatform.Hugo.Guides/v2 MODULE_FRESHNESS_UNAVAILABLE: Could not establish module freshness: Go module query failed (1): go: module github.com/nkdAgility/OpenGuidePlatform/system/OpenGuidePlatform.Hugo.Guides/v2: not a known dependency Review the module version through the coordinated platform update process; never change the pin during Prepare.

Guide status

No guide fixes identified by these checks.

Artifact and live-site checks run in later stages.

@github-actions

Copy link
Copy Markdown

Preview deployed for commit 41da19c: https://blue-field-06cea8c03-67.westeurope.6.azurestaticapps.net/. Live verification follows in Actions.

@MrHinsh
MrHinsh merged commit e3a623c into main Nov 27, 2026
9 of 10 checks passed
@MrHinsh
MrHinsh deleted the codex/guide-local-attribution branch November 27, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant