Repository navigation
Upgrade to Hugo 0.158.0; raise theme min Hugo version; fix language-API deprecations - #2647
Merged
Merged
Conversation
Migrate theme templates and docs off the language config keys and methods deprecated in Hugo 0.156.0/0.158.0; raise the theme's minimum Hugo version to 0.158.0 (a 0.16 breaking change): - theme.toml / theme/hugo.yaml: min version 0.146.0 -> 0.158.0 - Theme templates: Language.Lang -> .Name, LanguageDirection -> .Direction, LanguageName -> .Label - navbar-lang-selector.html: range .Site.Languages -> hugo.Sites (preserves disabled entries for untranslated languages) - offline-search-index.json: .Site.AllPages -> hugo.Sites/.Pages - User-guide docs: languageName -> label, languageDirection -> direction - Changelog: breaking-change entry; thanks to @deining (docsy#2594, docsy#2578) Builds now log zero deprecation notices at --logLevel info.
- tasks/0.16/hugo/index.md: fix maintainer-local plan reference, mark baseline as previous, reconcile status - Changelog: lean past-tense entries; clarify that the breaking change is the theme support floor (0.146.0 -> 0.158.0) and that deprecated site-config keys still work; link to language.md - .gitignore: narrow 'local' rule to 'tasks/**/local' - Maintainer notes: document that set:hugo:version deliberately does not touch the theme support floor
- tests/hugo-build/no-deprecations.test.mjs: fail if the site build logs any Hugo deprecation notices; includes a sanity case that seeds a deprecated API call and asserts that Hugo reports it - tests/alt-site/offline-search.test.mjs: build with the test-offline-search config overlay and validate the generated offline-search index (shape, entry count, en+fr coverage); output goes to tmp/test-offline-search for post-run inspection - Wire the new tests into the test script chain as test:extra, using a seq runner script (copied from the root package)
When no --repo/--branch flags are given and the current branch has a GitHub upstream other than main, smoke-test that the commonupstream case when validating a PR branch pushed to a fork. Falls back to google/docsy main otherwise. Explicit flags still override.
- Changelog: clarify the previous Hugo floor (module min 0.146.0 vs the 0.157.0 documented for Docsy 0.15) - Task page: note the new automated test guards, trim API-rename detail now covered by the changelog, record the deferred lang-selector check
- smoke.test.mjs usage header: flag fallbacks vs upstream default - repo-reorg execution notes: describe the new upstream-based default
7 of 8 tasks
- no-deprecations seeded case: also assert the build succeeds, so the test distinguishes a deprecation notice from a hard build error - offline-search test: add known-content spot checks (/docs/ and /fr/docs/) - basic-configuration.md: normalize 'label ="..."' spacing
This was referenced Jun 11, 2026
chalin
added a commit
to chalin/docsy
that referenced
this pull request
Jul 17, 2026
Review feedback on the release-prep refresh: - Changelog: the floor sentence now cites its own decision trail (docsy#2668, docsy#2677); the language-keys note is trimmed to a pointer into the upgrade guide, which owns the key specifics. - Hugo post: the amp-escaping heading no longer implies the regression persists through 0.160.1; it was fixed in 0.160.0. - Coverage ledger: the docsy#2647 note points to the later 0.160.1 raise to avoid a stale-floor misread.
chalin
added a commit
to chalin/docsy
that referenced
this pull request
Aug 18, 2026
The probe guards Hugo API deprecations (its original scope, docsy#2647); with the transpiler swap keeping Dart Sass language deprecations visible as fix-me reminders, its bare /deprecated/i filter tripped on every Sass line. Red-proven before the exemption, green after; the Hugo-API signal is unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
so that theme templates can use the language APIs introduced in 0.158.0
package.json,docsy.dev,theme manifests)
LanguageName→Label,LanguageDirection→Direction,Lang→Name,.Site.Languages→hugo.Sites,.Site.AllPages→ per-site.Pages)so builds log zero deprecation notices
keys (
label,direction); the deprecated keys still work in siteconfigs, so no immediate action is required of site owners
documents the Hugo version-pin update process in the maintainer notes
seeded-deprecation sanity case
simplifying PR-branch validation against forks