Skip to content

Detect Hugo configs in the _preview/ sub-tree - #53

Merged
alexander-yevsyukov merged 1 commit into
masterfrom
check-links-preview-config
Nov 2, 2026
Merged

alexander-yevsyukov merged 1 commit into
masterfrom
check-links-preview-config

Conversation

@alexander-yevsyukov

Copy link
Copy Markdown
Contributor

Step 0 of check-links and the "Hugo site" rule of pre-pr detected a Hugo site only by a config directly in docs/ or site/, or in their config/ or config/_default/. SpineEventEngine/validation keeps its only Hugo config in docs/_preview/hugo.toml. Both skills treated it as having no site: check-links approved without checking anything, and pre-pr never dispatched it.

Change

  • skills/check-links/SKILL.md, step 0: the same config paths now also count under $dir/_preview/. The WORK_DIR logic is unchanged.
  • skills/pre-pr/SKILL.md: the "Hugo site" rule says the same.

This mirrors the fix to the "Detect docs site" step of check-links.yml in SpineEventEngine/config#827. The skill says its step 0 mirrors that step.

Verification

I ran the step 0 snippet, before and after this change:

Checkout / layout Before After
validation c72021e "no Hugo documentation site" SITE_DIR=docs WORK_DIR=docs/_preview
documentation 3f69c93 SITE_DIR=docs WORK_DIR=docs/_preview same
docs/hugo.toml with docs/package-lock.json WORK_DIR=docs same
site/_preview/config/_default/hugo.yaml with a lockfile no site SITE_DIR=site WORK_DIR=site/_preview
docs/_preview/hugo.toml, no lockfile no site ERROR: No package-lock.json … (exit 1)
no site no site no site

🤖 Generated with Claude Code

`check-links` (step 0) and `pre-pr` detected a Hugo site only by a config
directly in `docs/` or `site/`, or in their `config/` or
`config/_default/`. SpineEventEngine/validation keeps its only Hugo config
in `docs/_preview/hugo.toml`, so both skills treated it as having no site:
`check-links` approved without checking, and `pre-pr` never dispatched it.

The same config paths now also count under the site's `_preview/`
sub-tree. This mirrors the matching fix to the "Detect docs site" step of
`check-links.yml` in SpineEventEngine/config. The `WORK_DIR` logic is
unchanged: `docs/_preview/package-lock.json` already makes it
`docs/_preview`.

Checked by running the step 0 snippet, before and after, against
validation at c72021e (before: "no Hugo documentation site"; after:
`SITE_DIR=docs WORK_DIR=docs/_preview`), documentation at 3f69c93
(`docs/_preview` both times), and fixtures for the other layouts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T16:14:37.242538Z df88ee7 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

No active review issues are reported for the update extending Hugo configuration detection to _preview/ paths.

No open issues 🎉

What changed in this PR

This PR updates the shared link-checking skills to recognize Hugo sites whose configuration exists only under _preview/, preventing those sites from being skipped.

Changes:

  • Extend check-links detection to include the supported Hugo config paths under _preview/.
  • Align the pre-pr detection rule with those paths while leaving work-directory selection unchanged.
File Description
skills/​pre-pr/​SKILL.md Expands the Hugo-site rule to include _preview/ configurations.
skills/​check-links/​SKILL.md Adds _preview/ config paths to the detection snippet and explains their purpose.

Review effort: Balanced

@alexander-yevsyukov alexander-yevsyukov self-assigned this Nov 2, 2026
@alexander-yevsyukov alexander-yevsyukov moved this to In Review in v2.0 Nov 2, 2026
@alexander-yevsyukov
alexander-yevsyukov merged commit 01b89c3 into master Nov 2, 2026
1 check passed
@alexander-yevsyukov
alexander-yevsyukov deleted the check-links-preview-config branch November 2, 2026 16:24
@github-project-automation github-project-automation Bot moved this from In Review to ✅ Done in v2.0 Nov 2, 2026
alexander-yevsyukov added a commit to SpineEventEngine/config that referenced this pull request Nov 2, 2026
Brings in SpineEventEngine/agents#53, the skill side of this PR: the
`check-links` skill (step 0) and the `pre-pr` "Hugo site" rule now also
find a Hugo config in the site's `_preview/` sub-tree, as the
"Detect docs site" step of `check-links.yml` does. Also brings in #52
(Dart Sass in the `check-links` tool requirements) and #51 (no trailing
`//` after a one-paragraph proto doc comment).

Every hook script wired in `.claude/settings.json` and
`.codex/hooks.json` is still present and executable at `01b89c3`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants