Before you begin
Prerequisites for building an OINK site.
Oink separates the consuming site from the maintained theme. A site owns its content, brand assets, configuration, and business components; the theme owns the common shell, styles, browser runtimes, and reusable shortcodes.
Import github.com/pgsty/oink as a pinned Hugo Module. The independent
pgsty/oink.pgsty.com repository
demonstrates the full production contract with English and Chinese content,
local search, dark mode, diagrams, API documentation, and component examples.
Experienced Hugo users can start from scratch. Existing Docsy sites should use the migration guide instead of recreating the shell by hand.
The preferred source is a released github.com/pgsty/oink module tag. A
complete release archive, pinned Git submodule, or pinned clone also works. Read
Other setup options for the trade-offs;
production must never follow an unversioned branch.
Whichever source option is selected, this command must build the site:
hugo --gc --minify
Node-based commands in the project-site repository are maintainers’ regression tooling, not prerequisites for a consuming site.
Prerequisites for building an OINK site.
Use the independent Oink project site as a complete reference.
Create a minimal bilingual OINK site without a frontend toolchain.