Skip to content

This is the multi-page printable view of this section.

Return to the regular view of this page

What is OINK

Decide whether OINK fits your project, what you get with it, how it differs from Docsy and MDX-based tools, and where it falls short.

OINK is a Hugo theme for technical documentation that has outgrown a README: product manuals, API references, books, release pages and blogs, often in several languages, maintained by engineers rather than a front-end team. You write Markdown, run hugo, and publish a static site with a sidebar built from your folders, local full-text search, a print view and a Markdown copy of every page for AI agents. Every script, font and stylesheet ships inside the theme, so the build needs no Node.js, npm, Sass or CDN, and unless you add an integration such as analytics or comments, the theme makes your readers’ browsers request nothing from third parties.

OINK began as a fork of Docsy. It keeps Docsy’s content model and multilingual behavior and replaces the shell, navigation, search and components. Seventy-nine production sites run on it: 48 independent projects, among them Apache HugeGraph’s bilingual documentation, a nine-language team portal at Red Hat AI Services, and Cortrix’s AI agent memory docs, plus 31 sites from the PGSTY and Vonng ecosystem, the largest of which spans nearly 5,000 Markdown files in eight languages, Arabic included.

OINK turns Markdown content, configuration and local assets into one static documentation site
One Hugo build produces a static site ready to host

What you get

  • A build that needs only Hugo. Any edition of Hugo builds the site, and Go is needed only to download the theme as a Hugo Module. The stylesheet is plain CSS, so your repository has no Sass compiler, PostCSS step or package.json. Get started lists the versions.
  • Components that stay Markdown. > [!NOTE] is a callout, a table followed by {.fields} is a parameter list, and an image followed by {caption="…"} is a captioned figure. On GitHub or in any editor the same source still reads as a quote, a table and an image.
  • A complete reading shell. Sidebar tree, table of contents, breadcrumbs, pager, a Cmd/Ctrl + K command palette, keyboard navigation, light and dark modes and six visual presets.
  • Search without a service. A BM25 engine in the browser queries an index Hugo builds for each language, and it finds Chinese, Japanese and Korean text typed without spaces.
  • Real multilingual sites. Hugo’s own translation model, an interface translated into 32 locales, right-to-left scripts, and an optional view that puts a page beside its translation.
  • More than documentation. Books with numbered figures and cross-references, release and download pages generated from YAML, landing pages assembled from 22 section types, and OpenAPI references rendered by bundled Swagger UI and Redoc.
  • Output for people and machines. Print a whole section at once, read any page as plain Markdown, or point an AI agent at llms.txt.

Highlights describes each capability and links to its guide.

The theme stops at the static site. Your source can live on GitHub, GitLab or a private Git server, and Hugo’s output deploys to any static host. Content, brand and components specific to your product stay in your site; the theme supplies the shell and the reusable parts.

Is OINK for me

OINK fits when
  • The site has many pages and mixes documentation, a blog, a book, release pages and an API reference
  • You publish full translations, not an English site with a translate link
  • Builds must be reproducible, and the build machine may have no network access
  • Several sites should share one shell without copying layouts and shortcodes
  • Nobody on the team is a front-end engineer or wants to maintain a Node toolchain
Look elsewhere when
  • The site has one or two pages and needs no navigation; a README or a lighter Hugo theme is simpler
  • The site is mostly application UI; OINK can carry its documentation, but product components stay in your site
  • You want interactive React components inside your prose (MDX)
  • You want a completely different look from one switch; beyond the six presets, appearance changes go through CSS tokens and partial overrides
  • You need a CMS or a WYSIWYG editor

Weigh two more things. Most features are off until you configure them, including search, dark mode, image zoom, comments, feedback and the Markdown and agent outputs; the Starter turns the common ones on for you. And OINK is young and moves quickly: 1.0.0 shipped in August 2026 and 1.8.0 three months later. Each site pins an exact release, so nothing changes until you raise the pin, and the upgrade guide has a section for every release that asks you to change something.

How it differs from other documentation systems

The usual alternatives are Docsy, which OINK forked, and Node-based systems built on MDX, such as Docusaurus. These are the differences that tend to decide the choice:

OINK Docsy Docusaurus and other MDX systems
Build tools Hugo in any edition, plus Go to fetch the theme module Hugo Extended to compile Sass, plus npm for PostCSS and Autoprefixer Node.js and npm
Callouts and tabs Markdown that GitHub also renders: > [!NOTE], fences with {tab="…"} Shortcodes such as alert and tabpane MDX, with React components inside the prose
Search Bundled BM25 engine, one index per language, unspaced CJK included Lunr offline search, or a hosted service Algolia DocSearch, or a community plugin for local search
Fonts and scripts Bundled and served from your own domain; no jQuery Google Fonts unless switched off; jQuery on every page Scripts bundled by the Node build
Home page Sections listed in data/home/<lang>.yaml blocks/* shortcodes in a Markdown page A React page

If you already run Docsy, your content and most front matter carry over; Migrating from Docsy lists what to delete and convert. If you are comparing Hugo themes such as Docsy and Hextra, build a copy of your own content tree with each before you decide, because overrides and language needs show differences no feature list does.

OINK is a hard fork rather than a skin over Docsy, and it keeps Docsy’s source history, Apache-2.0 obligations and attribution; see License and acknowledgements.

Start here

  • Get started — Clone the Starter, preview it, make it yours one piece at a time, and deploy it.
  • Components — Every component on its own page, source first, then the result.
  • Showcase — 79 production sites and the OINK features each one uses.

Found a problem or want to send a fix? The contribution guide says where it goes. The 1.8.0 release notes describe the current release.

1 - Highlights

Look up what OINK adds to an ordinary Hugo theme, one capability at a time, with the setting that turns it on and a link to its guide.

Everything here ships in the theme. Some of it works as soon as a page uses it; the rest waits for one configuration key, named in its section next to the guide that explains it. If you are still deciding whether OINK suits your project, read What is OINK first.

Components are written in Markdown

Most components are ordinary Markdown plus an attribute line, so the source stays readable on GitHub and in any editor. A callout is a > [!NOTE] blockquote, with ten semantic types and one neutral disclosure. A parameter list is a table followed by {.fields}, steps and cards are lists followed by {.steps} or {.cards}, timelines and changelog updates are definition lists with {.timeline} and headings with {.update}, and images, videos and audio share Markdown image syntax with {caption="…"}. Tabs are adjacent code fences, each with a {tab="…"} attribute, and file trees, galleries, maps, Mermaid and ECharts are fences named after their data language. Outside OINK, all of these fall back to blockquotes, tables, lists, headings and code blocks with nothing lost.

For what plain Markdown cannot express, such as cards with icons and images, or a field entry several paragraphs long, there are 29 shortcodes. Offline quoted social posts are > [!SOCIAL] callouts, so they stay blockquotes in plain Markdown. Typeset copy (params.ui.rich_copy, on by default) also keeps pasted selections clean in rich-text editors such as Notion, Feishu and Word.

→ Components

Build with Hugo

Hugo builds the site in any edition, and nothing else runs during the build. The theme’s stylesheet is plain CSS that Hugo concatenates, so there is no Sass, PostCSS, npm or webpack step. Go is needed only to fetch the theme as a Hugo Module, over the network or from a local module cache; with an offline archive or a Git submodule in place, Hugo alone builds the site.

In the browser, search, the command palette, diagrams and tabs run as JavaScript. Those scripts ship with the theme, and each page loads only the ones its content uses.

→ Get started

Local-first

Everything the browser needs is committed to the theme repository: Bootstrap styles, Font Awesome, four font families, Mermaid, KaTeX, Markmap, Swagger UI, Redoc, Asciinema, ECharts, Infographic, Leaflet and a local PlantUML engine, among others. VENDOR.json records the version, source, license file and SHA-256 checksum of each one, so you can audit exactly what your site serves.

A feature that could contact another server stays off until you configure it completely. PlantUML renders in the browser unless you set params.plantuml.svg_image_url. Diagrams.net needs params.drawio.drawio_server, and Algolia needs appId, apiKey and indexName; with a value missing, each warns at build time and stays off rather than falling back to a public service. Interactive maps likewise wait for a tile service you name in params.map, and a video card contacts no platform unless the site lists it in params.video_embeds and the reader clicks.

Local-first covers the theme, not what authors add. External links, remote images and video, iframes and remote API specifications; hosted search such as Algolia or Google Programmable Search; analytics, comments and other SaaS integrations; and a remote PlantUML or Diagrams.net renderer are all network choices you make, and pages that use them need network access when they are read.

→ License and acknowledgements · Configuration

One source, four outputs

Every component has a defined form in each of four outputs, so a page reads correctly wherever it ends up: interactive HTML; a print view with the zoom and copy controls removed and every disclosure expanded; plain Markdown; and RSS. The print view covers a whole section at once (this section’s is /_print/docs/about/), and a page’s Markdown version is its address plus index.md.

The site lists the outputs it publishes under outputs; the theme adds none on its own.

→ Print · AI-agent support

Multilingual sites and 32 interface locales

OINK uses Hugo’s own multilingual model: translation routing, a language picker ordered by weight, fallback for untranslated pages, right-to-left scripts, and canonical and alternate links for search engines. The interface comes in 32 language packs with identical keys, covering all 31 locale file names Docsy supports plus a generic zh. Each pack is written natively, with no English placeholders; zh and zh-cn are Simplified Chinese and zh-tw is Traditional Chinese. With params.ui.compare: true, readers can open an existing translation beside the current page and scroll both together.

→ Languages · Duo view

Turn on params.offline_search and Hugo writes one search index per language. A scanning BM25 engine in the browser queries it, with no Lunr and no outside service. It matches English words with Porter stemming and a spelling fallback, code identifiers and symbol runs, and Chinese, Japanese or Korean queries typed without spaces, which it matches as overlapping character pairs. An index larger than 2 MiB moves page text into a separate file that loads in stages, and searching for a parameter’s name opens its field-list entry directly. A page can raise its ranking with search_boost and add synonyms with search_keywords.

→ Search

Command palette

Cmd/Ctrl + K opens one box for pages, commands and page actions such as switching language or theme and copying the page as Markdown, so finding something and doing something share an entry point. A bare / opens it ready to search, and a query that starts with > lists only commands.

→ Command palette

Keyboard navigation

Twenty-nine single-key shortcuts are on by default (ten for navigation, nine for actions and ten for the view), and can be turned off for a site, a section or a single page. w and s move through the sidebar tree and a and d collapse and expand it, q and e go to the previous and next page, k and j jump to the previous and next heading, h lists the pages you read recently and g goes home. Other keys search, edit or print the page, hand it to ChatGPT or Claude, fold or unfold everything at once, switch the preset, color mode and language, open the duo view, toggle Zen Mode, and widen or narrow the reading column. Every shortcut stands aside while you type in a text field or compose with an input method. Press ', or click the question-mark button in the footer, to see all twenty-nine in three columns; keys a page cannot use are dimmed.

→ Keyboard navigation

Turn on params.ui.backlinks and each page lists the pages that link to it. Hugo derives the list at build time from your ordinary links, so there is no new syntax and no JavaScript. The list sits in the right rail under “Backlinks” and folds after eight entries; this site has it on, so you can see it beside this page.

→ Backlinks

Four content types beyond documentation

Four kinds of page need more structure than a documentation page, and the theme provides it:

  • Books number their chapters. {#id num=} numbers figures, tables, equations and examples, xref cross-references them, book-toc, book-figures and related shortcodes generate indexes, and a whole book prints as one document.
  • Release and download pages are generated from data/download/*.yaml: release cards, asset tables and checksums, with the data deciding what is published.
  • Landing pages assemble home-page sections from data/home/<lang>.yaml, and any page with layout: landing can use data under data/landing/.
  • API references render with the bundled Swagger UI and Redoc, and the specification can live on the site itself.

→ Books · Releases and downloads · Home and landing pages · API reference pages

Output for AI assistants

Add markdown to outputs and every page also publishes a .md version, announced in its HTML <head> with rel="alternate" and offered in the page actions for copying or viewing. The LLMS output format writes an llms.txt inventory at the site root (this site’s is https://oink.pgsty.com/llms.txt).

Two more outputs serve agents that want everything at once. A section that enables LLMSFULL publishes its whole text as one llms-full.txt, which an agent fetches in a single request, and a site that enables NAVJSON publishes its sidebar tree as data in one navigation.json per language. This site publishes both: https://oink.pgsty.com/docs/llms-full.txt and https://oink.pgsty.com/navigation.json.

“Open in ChatGPT / Claude” links are off by default, because a click sends the page’s URL to a third party. A site turns them on with params.ui.page_context_menu.assistant_links.

→ AI-agent support

Versions

Configure params.versions to add a version menu to the navbar. An archived version shows a banner that links to the current one, and the site decides whether the menu jumps to the matching page or to each version’s home. Each version is a separately built and deployed static site, so no runtime service is involved.

→ Versions

See for yourself

This site has most of these features on. Four quick checks:

  1. Press Cmd/Ctrl + K on any page and type postgres to see local search results, then start the query with > to see only commands.
  2. Append index.md to this page’s address to get its Markdown version.
  3. Open https://oink.pgsty.com/llms.txt, the site inventory for AI assistants. It links to the docs section’s llms-full.txt and to navigation.json.
  4. Look at the “Backlinks” group in this page’s right rail; it lists the pages that link here.

2 - Case Guide

Find the OINK production case closest to your documentation, book, blog, catalog, or community site.

The quickest way to design an OINK site is to find a live one shaped like yours and see how it was built. The case library documents 79 of them: 48 independent community sites and 31 from the PGSTY and Vonng ecosystem, this documentation site included. Each case links to the live site (and to its source repository where that is public), explains the design and its trade-offs, and separates the code the site wrote itself from what the theme provides. Read the case for the architecture, then follow its links to the guides for exact configuration. Page counts and similar figures come from the snapshot taken when the case was written.

Choosing a starting point

Start the site itself from the Starter, not from the theme repository’s tests/site/: that folder is a test fixture whose pages exist to exercise rendering edge cases, not a design to copy.

Third-party and community sites

Apache HugeGraph

This Apache Software Foundation full-stack graph database platform applies a custom brand hero on OINK Slate across nearly 300 bilingual English and Chinese documentation pages.

Red Hat AI Services (CAI)

This Red Hat AI Services Business Unit team portal configures nine languages on OINK Paper and pairs with companion OpenShift AI field manuals.

Cortrix

Open-source semantic storage and memory docs for AI agents on OINK Slate, combining {.wide .expand} reference tables, Mermaid diagrams, and OpenAPI specs under /docs/.

Stashix

This self-hosted comic and manga library website uses OINK’s high-contrast Ink preset with a custom violet accent, announcement bar, and dark product preview.

GPUWorks

Bilingual GPU compute management documentation built with OINK and hosted as versioned release manuals on Read the Docs.

SSG Book

Static Site Generators in the Age of AI uses OINK’s dark-mode Book shell, lecture slides, learning paths, and playground under a clean subpath deployment.

CASSA

This Australian university student association site uses OINK’s centered landing hero for membership onboarding, timelines, club news, and merchandise.

AGW

This self-hosted AI Agent Workspace and Gateway keeps its centered product site and 88 bilingual documentation pages inside the site/ directory of its main application repository.

Zhang Muchuan

Personal essay and translation blog layering a custom Paper, Ink, and Vermilion editorial design and seal mark over OINK while keeping all four visual presets.

Nekonull’s Garden

This bilingual personal engineering blog and digital garden organizes 144 long-form essays, short shares, and TIL notes behind a typography-led landing page.

Sanbei’s Blog

This popular Go engineering and AI coding blog pairs dated essays with a structured AI playbook section on OINK Paper.

Homelab IaC

This Proxmox cluster Terraform and Ansible operations manual co-locates docs with infrastructure code and publishes HTML, Markdown, and llms.txt together.

System Design Notes

This 28-chapter Chinese study guide mounts numbered chapters directly into OINK’s Book reading shell with local Chinese search.

hongyu

This bilingual personal writing hub combines essays, a data systems knowledge base, and book and film reviews inside one OINK shell.

blog.xjkj.org

This Chinese Oracle database and homelab blog skips a marketing hero and uses OINK’s three-column card-grid blog shell directly as its entry experience.

Vianlex’s Wiki

This 150-page personal software engineering knowledge base uses landing cards to route readers straight into deep backend documentation trees.

Le Shi Handbook

This living personal systems manual records verified Linux Mint and Windows 11 configurations and recovery steps in a focused Chinese docs tree.

CAI Field Manual Library

Red Hat AI Services aggregated bookshelf site that mounts multiple OpenShift AI manual repositories over a shared Hugo Module layered on OINK.

OPIC

Bilingual Open Intelligent Computing platform site that migrated from Docusaurus 3 to single-binary Hugo + OINK with local BM25 Chinese search.

Tasklane

TypeScript background-task runtime website and 49-page Diátaxis documentation hub on OINK Slate with an asymmetric architecture hero.

pgcli

218-page bilingual PostgreSQL instance manager and Patroni operations manual on OINK Paper deployed to Cloudflare Pages.

ansible-vms

Bilingual KVM and libvirt virtual machine automation manual on OINK Paper sharing a sibling family design with pgcli.pages.dev.

YourBuddy

Desktop macOS AI workbench product site combining a centered landing hero, plugin documentation, and release downloads.

CC4PM Docs

89-lesson Chinese AI coding course documentation site built on OINK, including a dedicated curriculum module teaching OINK site building.

CheeseSec Docs

96-page bilingual security product manual covering CheeseWAF and plugins directly inside OINK’s three-column reading shell.

kbdiag

62-page bilingual KingbaseES command-line diagnostics manual bootstrapped directly from OINK Starter.

grelease

Compact Chinese documentation site for a Spring Cloud Gateway and etcd canary-release framework with dual user and maintainer entry points.

Claude API Proxy

Focused 15-page Chinese engineering manual written directly in OINK’s three-column docs shell for engineers and handoff AI agents.

Modern Front-End Engineering

63-page open-source front-end engineering textbook on OINK Book pairing chapters, lecture slides, learning paths, and a playground.

OOD & Agile Book

65-page postgraduate software engineering textbook combining manuscript chapters, companion code, syllabus, and slides on OINK Book.

PMPP 5th Ed

27-chapter Chinese-English parallel reading edition of Programming Massively Parallel Processors using OINK Duo View across 230 aligned anchors.

Turing Award Lectures

Chinese archive of 42 ACM Turing Award lectures (1966–2024) and 100+ Turing papers rendered with OINK’s build-time KaTeX math and hypothes.is.

Designing Virtual Worlds

285-page Chinese edition of Richard Bartle’s Designing Virtual Worlds mounted at /dvw/ with cover artwork and whole-book print.

Selected Works Reader

229-article five-volume classical reading edition showcasing archival Paper typography, book-style dotted TOCs, clickable endnotes, and locally subsetted CJK fonts.

Growth Hacker Notes

Searchable written edition of a 41-episode video course transcribed with FunASR and structured into seven chapters on OINK.

Elias Zhao

Bilingual personal engineering and quant blog migrated from Blowfish to OINK v1.6.0 Paper with a custom photographic hero and Duo View.

karmine’s notes

English security operations and detection engineering blog migrated from Blowfish to OINK Slate with every existing URL preserved.

YHY Study Website

86-page bilingual robotics and AI study hub with a bespoke dark pixel-terminal hero, shared Giscus comments across hosts, and Obsidian-to-OINK notes.

Yongjie Xue

335-page bilingual distributed systems, database, and AI engineering blog on OINK Slate with multi-column navigation and custom hero artwork.

KK’s Blog

217-post Chinese engineering blog migrated from Jekyll to OINK Paper using a clean chronological list-first homepage.

Zhuifeng Notes

60-page banking architecture and payment clearing personal hub on OINK Paper with custom SVG hero art and browser-local PlantUML.

Donny’s Blog

Self-hosting and open-source engineering blog pairing OINK’s Paper preset with a custom illustrated portrait hero.

Kina’s Blog

Minimalist bilingual personal blog on OINK Paper deployed to Cloudflare Pages with Giscus comments and an editorial still-life hero.

Leafz

Minimalist Chinese engineering blog on OINK Paper created by the maintainer of a community OINK Agent Skill.

Fang Sun

Bilingual academic index portal using OINK landing cards to link separate textbook companion sites and frontier paper notes.

WHLLE_YI

Creative bilingual CS portfolio combining vendored OINK with a pixel-art hero and an interactive browser terminal widget.

Nicole’s Notes

Personal homepage and learning journal organizing coursework, projects, bookmarks, skills, and growth logs across six OINK sections.

Zhangyi’s Notes

Bilingual personal engineering log on Cloudflare Pages demonstrating pinned Hugo builds and dual human/agent Markdown publishing.

Distribution documentation

pigsty.io

This very large English site combines a distribution manual, editorial blog, extension catalog, taxonomies, version navigation, and pricing landing pages.

pigsty.cc

This Chinese peer is deployed as an independent single-language site. This approach is useful when each language corpus has become a separate product.

pgsty.pro

This bilingual version archive renders many release pages from reusable, structured release data.

PG.CENTER

This eight-language PostgreSQL kernel and component documentation hub spans nearly 5,000 Markdown files, exercising split BM25 search indexes and Arabic RTL layout in one repository.

Product documentation

PIG

This compact bilingual CLI manual has a data-driven home page and a much larger companion blog.

SOW

This bilingual operations manual has a dedicated download content type that uses release metadata.

SILO

This large upstream migration uses a checked manifest to generate bilingual documentation navigation.

PG Exporter

This metrics manual combines generated navigation, a structured catalog, and system fonts.

Piglet

This agentic Postgres runtime product site pairs an asymmetric dark terminal hero with concise bilingual setup documentation.

Barn

This bilingual manual for local Linux labs and native macOS VMs combines warm editorial hero artwork with terminal quick-start previews, docs, and a blog.

Vchord

This 366-page bilingual manual for PostgreSQL vector and BM25 search extensions pairs technical architecture diagrams with benchmark comparisons and downloads.

Mooncake

This bilingual manual for PostgreSQL columnstore and Apache Iceberg lakehouse tables shares a diagram-led product identity with sibling PGSTY extension sites.

Crib

This focused Chinese product site for a native macOS offline PostgreSQL docs app pairs a centered Paper hero with a full-width dark app showcase.

Capslock App

This bilingual native macOS utility site expands on the two-page configurator with a centered hero, visual keymap diagram, docs, blog, and downloads.

Books and training

Designing Data-Intensive Applications

This multilingual, multi-edition book is the strongest example of numbered figures, cross-references, chapter navigation, and indexes.

The Product-Minded Engineer

This focused bilingual publication needs only OINK’s Book shell.

PG Internal

This finished Chinese translation is deliberately published as a single-language Book. It has no documentation tree or other language to select.

PG 36 Stratagems

This 36-chapter bilingual PostgreSQL and Pigsty production engineering book pairs custom 3D cover art with reproducible labs and multi-axis indexes.

Empire of AI

This focused bilingual non-fiction book uses OINK’s Paper preset, cover hero, contributor cards, and whole-book print output.

PG 18 Internals

This trilingual Chinese, English, and Russian technical book demonstrates Book navigation and Duo View comparison across three scripts.

Dalibo Training

This trilingual Chinese, French, and English training portal gathers twelve open-licensed PostgreSQL course manuals under one shared shell.

PGPRO Training

This 441-page trilingual Chinese, English, and Russian course library embeds a visual curriculum learning-path roadmap directly in the landing hero.

Postgres by Example

This 57-lesson bilingual tutorial book pairs syntax-highlighted SQL examples with downloadable runnable script bundles.

Blogs, standards, catalogs, and custom sites

VONNG

This 1,344-page bilingual personal technical blog organizes six long-running editorial columns with per-column RSS feeds alongside books and project pages.

Cloud Exit

This 690-page bilingual open standard, public cost ledger, and playbook uses a centered editorial Paper hero to anchor six structured content sections.

Feng Zhenbiao Archive

This 601-page personal biography, memoir, poetry collection, and Expo photography archive shows OINK serving humanities and long-term archival publishing.

PostgreSQL ecosystem library

This aggregate operations library combines several upstream manuals and partially translated language trees. They share one search and visual system.

pgsty.com

This small bilingual corporate site shows how OINK can primarily serve as a data-driven landing-page system.

Capslock

This project has two pages per language. Its custom shell hosts an interactive, data-driven configuration generator.

oink.pgsty.com

This full reference site contains public documentation, live component examples, design contracts, multiple content shells, and regression coverage in one repository.

pgext.cloud

This PostgreSQL extension catalog uses a queryable dataset as its primary object. It indexes 2,241 extensions and 576 packaged builds across 16 platforms.

→ Browse all cases · Get started · From scratch

3 - License and acknowledgements

Find which license covers the theme, this documentation and each bundled third-party runtime, and what you must keep when you reuse them.

OINK consists of three kinds of material, each under its own license: the theme source, this site’s documentation, and the third-party assets the theme ships. They are not relicensed as one combined work. Every table here links to the authoritative file in the repository, and where a summary disagrees with the license text, the file is authoritative.

Which licence covers what

Scope Licence Authoritative file
OINK theme source (layouts, partials, shortcodes, CSS, JS, i18n) Apache License 2.0 Theme LICENSE, NOTICE
This site’s own code, build scripts and material derived from Docsy Apache License 2.0 Site LICENSE, NOTICE
This site’s original documentation content, except where stated otherwise Creative Commons Attribution 4.0 International Site LICENSE-CC-BY-4.0
Browser libraries, fonts and icons shipped with the theme Each component’s own licence Theme VENDOR.json and the licence files beside each asset

CC BY 4.0 covers only the original documentation content, not theme code, trademarks, screenshots or third-party assets. Likewise, the theme’s Apache-2.0 license leaves each bundled dependency under its own license.

Community contributors

OINK is maintained by PGSTY. Thank you to @imbajin, who reported and contributed the reading repairs below together with their fixtures, regression tests and bilingual docs. They first shipped in 1.3.1 and remain in 1.8.0.

Contribution Pull request
Markmap node text across light/dark modes and visual presets Theme #48
Fixed TOC clearance above the footer Theme #50
Complete FileTree comments, integrated behind wrap=true Theme #52
Readable technical tables with an opt-in layout Theme #54
Bilingual contracts, release documentation, and companion regression coverage Documentation #11

The 1.3.1 release notes record how they were integrated. To contribute a correction, translation or fix, see the contribution guide.

Upstream: Docsy

The theme’s NOTICE records:

  • OINK is derived from Docsy, Copyright 2018 Google LLC and Docsy contributors.
  • OINK’s own theme work is Copyright 2026 PGSTY contributors.
  • The project and its upstream both use Apache License 2.0. VENDOR.json records each third-party browser dependency’s license, source, version, and checksum. Each required NOTICE file accompanies its asset.
  • The Docsy name and Google’s trademarks belong to their respective holders. These names identify the upstream project and imply no endorsement.

This site also derives from the Docsy project website, as the site’s own NOTICE records. Docsy is OINK’s only code upstream: OINK keeps Docsy’s source history, Apache-2.0 obligations and copyright notices, and modified files carry a modification notice as Apache-2.0 requires.

Third-party runtimes shipped with the theme

Everything the browser needs is committed to the theme repository, under assets/third_party/ and static/webfonts/, so these assets need no npm step and no download at build time; resolving the theme as a Hugo Module still needs Go and an available module source. VENDOR.json is their machine-readable manifest. Each entry records the name, pinned version, source URL, license file path and the SHA-256 of every selected artifact, and the manifest adds an aggregate checksum for each of the two asset trees.

The table matches the OINK v1.8.0 manifest (VENDOR.json generated 2026-11-28, schema 1, 26 entries). Versions change with each theme release, so use the manifest from your pinned theme version. Every source is the npm registry (https://registry.npmjs.org/…).

Package Version Licence What it does in the theme
bootstrap 5.3.8 MIT Grid, component styles, and RTL bundle
@fortawesome/fontawesome-free 7.3.1 CC-BY-4.0 AND OFL-1.1 AND MIT Icons throughout the site
@fontsource-variable/inter 5.3.0 OFL-1.1 Interface and body font
@fontsource-variable/ibm-plex-sans 5.3.0 OFL-1.1 Body font for Paper; print font for Terminal
@fontsource/chakra-petch 5.3.0 OFL-1.1 Brand display font
@fontsource/ibm-plex-mono 5.3.0 OFL-1.1 Code font (and screen text for Terminal)
@docsearch/js 5.2.0 MIT The optional Algolia DocSearch front end
@docsearch/css 5.2.0 MIT Its stylesheet
mermaid 12.4.0 MIT Mermaid diagrams
katex 0.19.1 MIT Mathematics styles and fonts
swagger-ui-dist 5.36.0 Apache-2.0 OpenAPI reference pages
redoc 3.2.0 MIT OpenAPI reference pages
asciinema-player 3.19.0 Apache-2.0 Terminal recording playback
echarts 6.1.0 Apache-2.0 Charts
@antv/infographic 0.2.20 MIT Infographics
leaflet 1.9.4 BSD-2-Clause Interactive maps (opt-in via params.map)
pako 3.0.3 MIT AND Zlib Decompression (diagram data)
external-svg-loader 1.7.1 MIT Inlining external SVG
idb-keyval 6.3.0 Apache-2.0 Browser-side caching
@plantuml/core 1.2026.10 MIT Local PlantUML diagram engine
@viz-js/viz 3.31.0 MIT AND EPL-2.0 Graphviz layout for local PlantUML
@markmap/core 1.1.1 MIT Mind maps (core model)
@markmap/parse 1.1.1 MIT Mind maps (Markdown parser)
@markmap/render 1.1.1 MIT Mind maps (SVG renderer)
@markmap/view 1.1.1 MIT Mind maps (interactive view)
@markmap/plugin-math 1.1.1 MIT Mind map formula rendering (MathJax)

Each license text sits beside its asset under assets/third_party/, for example assets/third_party/bootstrap/LICENSE and assets/third_party/katex/LICENSE, and Mermaid ships its upstream THIRD_PARTY_NOTICES. Swagger UI, ReDoc and ECharts keep their own NOTICE or bundled-declaration files. @viz-js/viz 3.31.0 embeds Graphviz 16.1.0 (EPL-2.0, replacing EPL-1.0) and Expat 2.8.5 (MIT); their notices and upstream source links sit beside the scripts in assets/third_party/plantuml/. The scoped Markmap 1.1.1 packages list every sub-package they bundle, MathJax and D3 primitives included, in assets/third_party/markmap/PACKAGES.json and LICENSES.txt. Packages that 1.5.1 and earlier shipped are no longer distributed: Bootstrap’s JavaScript bundle, @popperjs/core, lunr (with assets/js/third_party/), and the legacy Markmap 0.18, D3, highlight.js and WebFontLoader packages; the 1.6.0 release notes describe their removal.

If you redistribute the theme, include all of this license and notice material. If you update a runtime, update its artifact, license file, source and checksum in the same change.

Fonts and icons

Inter, IBM Plex Sans, Chakra Petch and IBM Plex Mono use the SIL Open Font License 1.1. OINK 1.8.0 ships 33 files under static/webfonts/: fourteen Inter subsets, twelve IBM Plex Sans subsets, four brand-font files and three Font Awesome files. Font Awesome Free 7.3.1 has a composite license: CC BY 4.0 for the icon artwork, SIL OFL 1.1 for the font files and MIT for the code, with the text in assets/third_party/Font-Awesome/LICENSE.txt.

The theme makes no request to a remote font service: the repository contains no Google Fonts link, and the site serves fonts only from its own baseURL. To change fonts or switch to the platform’s system fonts, see Brand and appearance.

Design references

Docsy is the only code upstream. The projects below influenced the design language only: OINK has ported no code from them and depends on none of them at runtime.

  • Fumadocs — Content-first presentation, information hierarchy, and writing components such as file trees and field lists (the theme’s NOTICE records this acknowledgement).
  • Nextra — A simple documentation shell, filename labels and copy controls on code blocks, and per-page layout switches.
  • Hextra — A Hugo-native approach to implementation, file trees, badges, and tabs.
  • Mintlify — Layered navigation structure, synchronized code groups, and the reading experience of an API reference.

Hugo is the build platform, and Go resolves modules when the theme is installed as a Hugo Module. Both are prerequisites; the theme redistributes neither binary.

These names describe origin, dependency or design influence and imply no endorsement by these projects. Project and product names belong to their respective holders.

Reusing this documentation

CC BY 4.0 lets you share and adapt this documentation for any purpose, provided you give attribution, link to the license, state whether you made changes, and do not imply endorsement by OINK, PGSTY or any upstream project. This attribution is sufficient:

Adapted from the OINK documentation by PGSTY contributors, licensed under CC BY 4.0, with modifications.

Images and quotations credited separately keep their own credit and license. Removing the page footer does not remove the attribution obligation.

Reusing the theme

Apache-2.0 lets you use, modify and distribute the theme source and build output on its terms: keep the license, copyright and attribution notices and the contents of NOTICE, and state which files you changed when you distribute modified source. A theme distribution should include LICENSE, NOTICE, VENDOR.json and every third-party licence file the manifest references.

Apache-2.0 grants no trademark rights, and it does not turn third-party assets into Apache-licensed works.

4 - Contributing to OINK

Report a problem or send a fix to the repository that owns it, with the checks a theme or documentation change needs before review.

Bug reports, corrections, translations and focused pull requests are all welcome. Three repositories share the work, so start by finding the one that owns the behavior you want to change.

Where to contribute

  • pgsty/oink — Templates, styles, browser runtimes, defaults, and focused theme checkers.
  • pgsty/oink.pgsty.com — Documentation, translations, examples, integration tests, and browser regression coverage.
  • pgsty/oink-cli — Optional CLI commands and native site checks.

Report a problem in the repository that owns the affected behavior. The CLI has its own version and release cycle, and ordinary Hugo sites do not need it.

Report a reproducible problem

A report that someone else can reproduce gets fixed fastest, so first check that the problem still occurs on the latest release. Then include the OINK version, the output of hugo version, the relevant configuration and a minimal content example. For a display problem, add the page, the viewport width, the browser, the visual preset and whether light or dark mode was on, and say what you expected and what happened instead. Remove credentials and private content from the report and any reproduction.

Build and check

Theme work needs the theme and this site cloned side by side, because the site’s checks build against the sibling theme checkout:

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

Use Hugo (tested on 0.170+) and Go for Hugo Modules; the theme declares no minimum Hugo release, and its CI tests against latest without maintaining older-Hugo compatibility jobs. The site’s regression tests also need Node.js 26.13.0 and npm 12.2.2 or newer, although no theme or site build uses them. Before you start, read each repository’s AGENTS.md, this site’s WRITING.md and TRANSLATION.md, and the Design contract for the area you are changing.

The theme’s stylesheet is plain CSS: edit the layer files under assets/css/td/, which Hugo concatenates. Editing a layer is the whole change, with no build step and no generated file to commit, and python3 bin/check-stylesheets.py checks the layers and how they are assembled.

Run the theme checker that covers your change first; the theme’s AGENTS.md lists them. Then run the site suites from this repository:

npm ci
make check
make browser

make check runs the non-browser suite against the sibling theme, and make browser runs the browser suite, which you need whenever rendering or interaction changed. Finally, look at the affected English and Chinese pages at desktop and mobile widths, in light and dark mode. The repository README explains how to build against the published theme release instead of your sibling checkout.

Do not add --panicOnWarning or HUGO_PANICONWARNING to a build or CI job. OINK reports invalid input as a warning and keeps building with a safe fallback, and its tests trigger those warnings on purpose, so the flag would fail the build.

Prepare a pull request

Keep a pull request to one change, and describe the problem, the resulting behavior and how you validated it. Update English and Chinese pages together and keep their heading IDs, because other pages and the theme’s warnings link to them. A change to public theme behavior ships with its implementation, the checker that covers it, and both language versions of the affected Design contract; new design proposals go in the bilingual Design proposals section.

Commit only source and reviewed test expectations. Generated output, caches, binaries and filesystem module replacements stay out of Git, and in a shared worktree, other people’s unrelated changes stay as they are. Leave historical release notes and dated research as written, because they record the evidence of their time.

Credit and licences

The acknowledgements credit each community fix to its author and pull request. Theme code and site tooling are licensed under Apache-2.0 and original documentation under CC BY 4.0; keep third-party license and notice files intact. See License and acknowledgements for the full scope.