Skip to content

Documentation site preview

Preview and check the Hugo documentation site with the pinned OINK module.
Preview and check the Hugo documentation site with the pinned OINK module.

Check the local toolchain

Use the tool versions pinned in the repository’s go.mod and CI configuration. From the documentation repository root, check the tools and theme:

1hugo version
2go version
3hugo mod graph
Optional: terminal player authoring example

Use the copyable commands above to check versions. This optional example shows maintainers how the player works. Recordings are suitable for interactive operations, startup sequences and troubleshooting walkthroughs. Change file, title or speed in Markdown to adjust the file, title or speed; re-record the .cast when commands or output change. It was recorded on 2026-10-11 with Hugo 0.165 Extended, Go 1.27.1 and OINK 1.2.0. Playback runs at 0.1 times the recorded speed to make the short output easier to read. The cast is served locally with the site.

Recorded documentation toolchain and theme check — /casts/oink-upgrade-check.cast

Download the original recording.

Preview and validate

  1. Start the local preview from the repository root:

    1scripts/hugo.sh server
  2. Open the local site and inspect both language versions of the changed page.

  3. Run the warning-strict build:

    1scripts/hugo.sh build

The wrapper generates version-navigation settings before starting Hugo. A different preview port can be passed with -p, for example scripts/hugo.sh server -p 8080.

For the complete contribution checks and theme upgrade workflow, see the repository’s contribution guide and OINK upgrade guide.