Skip to content

Use Docsy theme @ main (post Hugo-0.158.0 floor); add site tests#462

Merged
chalin merged 5 commits into
google:mainfrom
chalin:chalin-m24-docsy-with-hugo-0.158.0-2026-0611
Jun 11, 2026
Merged

Use Docsy theme @ main (post Hugo-0.158.0 floor); add site tests#462
chalin merged 5 commits into
google:mainfrom
chalin:chalin-m24-docsy-with-hugo-0.158.0-2026-0611

Conversation

@chalin

@chalin chalin commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator
  • Contributes to Upgrade to Hugo from v0.157.0 to latest docsy#2581. Builds on Fix deprecation warnings emitted from hugo 0.158.0 #430 (thanks @deining!), which
    migrated the site config off the deprecated language keys.
  • Hugo & Docsy upgrade
    • Updates the Docsy theme module to current main (post-google/docsy#2647)
    • Raises module.hugoVersion.min to 0.158.0, matching the new theme floor
  • Deprecation cleanup
    • Migrates layouts/home.redirects off .Sites (deprecated in Hugo
      0.156.0) to hugo.Sites
    • Builds now log zero deprecation notices at --logLevel info
  • Tests
    • Adds tests/site.test.mjs (run via npm run test:site, wired into the
      test-only chain), validating the generated site: disabled language-menu
      entries for untranslated languages, links to existing translations, and
      dir="rtl" / lang="fa" on Persian pages
    • Adds tests/no-deprecations.test.mjs: fails if the site build logs any
      Hugo deprecation notices; includes a seeded-deprecation sanity case

chalin added 5 commits June 11, 2026 18:21
- 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
@chalin chalin changed the title Upgrade to Hugo 0.158.0 and Docsy theme @ main; fix language-API deprecations Use Docsy theme @ main (post Hugo-0.158.0 floor); add site tests Jun 11, 2026
@chalin chalin force-pushed the chalin-m24-docsy-with-hugo-0.158.0-2026-0611 branch from 01efda2 to f6343b9 Compare June 11, 2026 22:22
@chalin chalin merged commit 43a180c into google:main Jun 11, 2026
10 checks passed
@chalin chalin deleted the chalin-m24-docsy-with-hugo-0.158.0-2026-0611 branch June 11, 2026 22:25
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