Use Docsy theme @ main (post Hugo-0.158.0 floor); add site tests#462
Merged
chalin merged 5 commits intoJun 11, 2026
Merged
Conversation
7 tasks
- hugo.yaml: languageName -> label, languageDirection -> direction - layouts/home.redirects: .Sites -> hugo.Sites (deprecated in 0.156.0) Build now logs zero deprecation notices at --logLevel info.
- tests/site.test.mjs validates the generated site: disabled menu entries for untranslated languages, links to existing translations, and dir=rtl/lang=fa on Persian pages - Wire test:site into the test-only chain
Fails if the site build logs any Hugo deprecation notices; includes a seeded-deprecation sanity case. Builds to tmp/ to avoid racing with tests that read public/.
- hugo.yaml: raise module.hugoVersion.min to 0.158.0, matching the new theme floor - no-deprecations test: prune test-created dirs only when empty, so future hook files can't be deleted by test cleanup
01efda2 to
f6343b9
Compare
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.
migrated the site config off the deprecated language keys.
module.hugoVersion.minto 0.158.0, matching the new theme floorlayouts/home.redirectsoff.Sites(deprecated in Hugo0.156.0) to
hugo.Sites--logLevel infotests/site.test.mjs(run vianpm run test:site, wired into thetest-onlychain), validating the generated site: disabled language-menuentries for untranslated languages, links to existing translations, and
dir="rtl"/lang="fa"on Persian pagestests/no-deprecations.test.mjs: fails if the site build logs anyHugo deprecation notices; includes a seeded-deprecation sanity case