Skip to content

Rebuild stale landing pages in site.sh - #1760

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:site-build-freshness
Nov 26, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:site-build-freshness

Conversation

@potiuk

@potiuk potiuk commented Nov 26, 2026

Copy link
Copy Markdown
Member

./site.sh build-site reused any existing landing-pages/dist, so
local content, layout or style changes silently did not appear in
dist/. It now rebuilds when any landing-page source (content, layouts,
config, static files, SCSS/JS; node_modules excluded) is newer than
the last build. prepare-theme uses the same check, which previously
only looked at SCSS/JS.

Building without a dart-sass binary made Hugo fail with a cryptic
"unexpected EOF" from the JavaScript sass in node_modules; site.sh
now stops early with install instructions (matching README.md).
CI is unaffected: it installs dart-sass and starts from a clean checkout.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 5

Generated-by: Claude Opus 5

🤖 Generated with Claude Code

`./site.sh build-site` reused any existing landing-pages/dist, so local
content, layout or style changes silently did not show up in dist/. It
now rebuilds whenever any landing-page source is newer than the last
build (the same check prepare-theme uses, now also covering content,
layouts, config and static files).

Building without a `dart-sass` binary made Hugo fail with a cryptic
"unexpected EOF" from the JavaScript sass in node_modules; site.sh now
stops early with install instructions instead.

Generated-by: Claude Opus 5
@potiuk
potiuk merged commit b4b399d into apache:main Nov 26, 2026
1 check passed
@potiuk
potiuk deleted the site-build-freshness branch November 26, 2026 21:11
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