Prerequisites
Install Hugo Extended, plus Git and Go when your method needs them.
OINK is a Hugo theme that ships its browser runtimes with the theme. A consuming site needs only Hugo Extended: no Node.js, no PostCSS, no CDN, and no remote theme asset download during the build.
Read these seven pages in order and you will have a deployable bilingual documentation site:
Prerequisites
, 5 min
Install Hugo
Extended and confirm the binary reports extended. Git and Go are needed
depending on how you obtain the theme.
Install OINK
, 5 min
Pin a version with Hugo Modules. The other three distribution methods — offline archive, submodule, clone — are on the same page.
Create a site
, 15 min
From an empty directory to a previewable page, including how bilingual content is organized.
Basic configuration
, 20 min
Site identity, languages, search, repository links, and production build flags.
Project site
, optional
Adapt oink.pgsty.com
directly as a template, which suits an open-source project that wants a
documentation site quickly.
Container preview
, optional
Run previews and production builds in a container instead of installing Hugo locally.
Troubleshooting
, reference
How to locate build, language, search, and platform problems.
| Your situation | Suggested path |
|---|---|
| New project | Prerequisites → Install → Create a site |
| Existing Hugo site | Go straight to Install and import OINK as a module |
| Existing Docsy site | See Migrate from Docsy; prose does not need rewriting |
With Hugo Extended, Git, and Go already installed, three commands get you running:
Add the module import to hugo.yaml:
Every supported installation method uses the same preview and production commands:
Once the site runs, continue as needed:
Install Hugo Extended, plus Git and Go when your method needs them.
Pin an OINK version with Hugo Modules, or choose the offline archive, submodule, or clone alternatives.
From an empty directory to a first previewable bilingual page.
Site identity, languages, search, repository links, and production build flags.
Adapt oink.pgsty.com as a template to get a fully configured bilingual site quickly.
Run previews and production builds in a container instead of installing Hugo locally.
Locating build, language, search, upgrade, and platform problems.