Get started
The fastest way to understand OINK is to clone this documentation site and run it on your machine. In two minutes you have a complete live site to click through—with real Markdown source right beside it—and from there you can hand one prompt to an AI coding agent to build your own site.
Prerequisites
You need Git, Go, and Hugo (tested on 0.170+). Go is required because Hugo
fetches the theme as a Go module; building an OINK site never needs Node.js,
npm or a Sass compiler.
On macOS, brew install git go hugo installs all three. On Linux and Windows,
follow the Hugo installation guide and the
Go downloads page.
Step 1: Clone the docs site and run it locally
Instead of staring at an empty skeleton, clone oink.pgsty.com itself and
start Hugo’s local server:
The first run takes a moment while Hugo downloads the pinned OINK theme into your local Go module cache; every subsequent start takes a second. Open http://localhost:1313/ to explore the live site:
- Click through Docs, Book, Case and Blog, and open the Appearance menu to switch between Paper, Slate, GitHub, Ink, News and Terminal in both light and dark mode.
- Press / to try local full-text search, and switch between English and Chinese from the top bar.
- Open any page under
content/docs/components/in your editor, change a sentence, and save: the browser reloads automatically so you can see how Markdown maps to rendered components.
Because this repository doubles as OINK’s integration test suite, treat it as a live reference rather than a template to deploy. Once you know what you want, create your own site in a fresh directory below.
Step 2: Build your own site with an AI agent
Once Git, Go and Hugo work on your machine, the fastest way to build your own
site is to open a coding agent such as Claude Code or Codex in an empty folder
and give it a concrete prompt backed by the OINK site-building skill
(oink-site):
Paste this prompt after replacing the <angle brackets> with your own details:
The skill file (https://oink.pgsty.com/skill.md, or
https://oink.pgsty.com/skill.zh.md for Simplified Chinese) sends the agent to
these docs for current OINK syntax, warns it away from retired Docsy or older
OINK keys, and maps each kind of site to real examples in the
case library.
To keep the skill installed across sessions instead of referencing its URL each time, download it once and start a new agent session:
Download the file again whenever you want to refresh it; the header notes the OINK release it targets. For more prompt patterns—open-source project sites, CLI manuals and books—read Build a site from one prompt.
Choose your next guide
From here, follow the guide that matches where your site lives today:
- Browse locally — Already have an OINK repository? Run
hugo serve, read live docs in the browser, edit with auto-reload, and monitor reports written by coding agents. - From scratch — Assemble a minimal standalone site file by file, or switch an existing Hugo site to OINK: project layout,
hugo.ymlprerequisites, first page, and offline or submodule installs. - Add docs to a project — Already have an open-source codebase? Add an isolated
docs/Hugo sub-project with.gitignorehygiene and GitHub Pages or Cloudflare Pages auto-builds. - Upgrade — Upgrading an older OINK site or migrating from Docsy: version upgrades, syntax migration, and override review.