Skip to content

About

Oink Website

Topics

Resources

Contributing

Stars

13 stars

Watchers

0 watching

Forks

Latest commit

 

History

339 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oink.pgsty.com

This repository contains the source for oink.pgsty.com, the documentation and regression site for the Oink Hugo theme.

The bilingual maintainer contracts under content/docs/design/ are the canonical prose source for OINK architecture, components, reading shells, Landing pages, and migration boundaries.

The site documents OINK v1.8.0. The bilingual release notes cover the six visual presets with distinct dark modes, Appearance trigger and menu layout updates, unified single-bar audio and video controls, > [!SOCIAL] quoted-post callouts, and upgrade steps. Local theme development uses a sibling ../oink checkout, while make build and make serve use the published version pinned in go.mod. content/docs/cli{,.zh}.md introduces the separate, unreleased OINK CLI.

OINK 1.8.0

OINK v1.8.0 is dated 2026-11-28. It restores Paper to its classic warm-paper and link-blue look, introduces the GitHub and News presets, redesigns Ink as a brush-written page and calibrates Dark Terminal as a restrained phosphor screen, updates the Appearance menu to a 3×2 style grid with a color-mode trigger icon, unifies local audio and video players on one themed control bar with a three-color progress track, formats quoted social posts as native > [!SOCIAL] Markdown callouts, and removes the Hugo minimum-version floor.

OINK v1.8.0 uses plain CSS and is tested on Hugo 0.170+ (no Sass compiler or Extended edition required). Go is only used to resolve Hugo Modules. Historical release notes retain the toolchain facts of their own versions.

Starting a new OINK site

Start new sites from the pgsty/oink-starter template repository and follow the Get started guide. The starter pins a published release and includes neutral Docs, Blog, Book, language profiles, and GitHub Pages / Cloudflare Pages workflows without this repository's regression test suite.

Building with an AI agent

The Oink 建站 agent skill packages the site-building workflow and review standards in one file: English / 简体中文. Its sources are static/skill.md and static/skill.zh.md; keep them free of local paths and private repositories. Installation is described in Build with an AI agent.

Local development

Use your installed Hugo (tested on 0.170+) and Go for both published-pin builds and sibling theme development. No Sass compiler is required. Do not enable --panicOnWarning or HUGO_PANICONWARNING. Keep warnings visible. See the architecture contract.

For theme development, clone both repositories as siblings:

~/pgsty/
├── oink/
└── oink.pgsty.com/

The five Make targets separate published-theme checks from local-theme work:

make build    # Build production output with the version pinned in go.mod
make check    # Test the sibling theme with the non-browser regression suite
make browser  # Run the browser regression suite with the sibling theme
make dev      # Start the fastest server with the sibling theme
make serve    # Preview the pinned theme in the production environment

build and serve invoke Hugo directly and resolve the published version of github.com/pgsty/oink pinned in go.mod. dev, check, and browser set a one-command module replacement to ../oink; they do not create a go.work file or modify go.mod. dev keeps Hugo's fast-render defaults and renders to memory; serve uses the production environment, minifies the output, performs full renders after changes, and does not inject live reload. Node and npm are needed for the regression tests, not to build the OINK theme or site.

The component and case cards in the theme's GitHub README are images served from static/readme/. They are drawn from data/home/en.yaml and the featured cases under content/case/, so regenerate them after changing either, with the sibling theme checkout supplying fonts and icons (needs PyYAML, Pillow, and fontTools):

python3 scripts/readme-cards.py --readme ../oink/README.md

The README cards load from the deployed site, so deploy before pushing a README that references new cards.

Contributing and acknowledgements

Read CONTRIBUTING.md for repository ownership, bilingual content rules, and validation. Public behavior changes belong with their owning checker and the English/Chinese Design contract.

Thank you to @imbajin for the reading repairs, fixtures, tests, and bilingual documentation delivered in 1.3.1 and retained in 1.8.0. Acknowledgements link each contribution to its pull request. OINK preserves Docsy's history and notices; bundled runtimes, fonts, and icons keep their own licences, recorded in the theme's VENDOR.json.

License

Site code, build tooling, and material derived from the Docsy project site are licensed under the Apache License 2.0.

Unless otherwise noted, original Oink documentation content is licensed under the Creative Commons Attribution 4.0 International License.

About

Oink Website

Topics

Resources

Contributing

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages