# Design and development

> OINK's contracts, accepted decisions, dated research, and active proposals in one bilingual section.

---

LLMS index: [llms.txt](/llms.txt)

---

> [!NOTE] OINK 1.8.0 contract
> These contracts describe OINK v1.8.0. Release acceptance checks the published
> module with replacements and workspaces disabled.

This section explains how OINK works and why it has its present shape. It brings
together current contracts, the reasoning behind accepted decisions, evidence
from alternative designs, and ideas that remain proposals. The other guides on
this site explain how to build and maintain a site with OINK.

## Reading this section {#reading-this-section}

| Layer     | Meaning                                                              |
| --------- | -------------------------------------------------------------------- |
| Contracts | Normative behavior that compatible implementations must preserve     |
| Decisions | Accepted rationale and boundaries that explain current behavior      |
| Research  | Dated, non-normative evidence that may need to be refreshed          |
| Proposals | Draft PRDs and RFCs; publication here is not proof of implementation |

## Contract map {#contract-map}

| Contract                                      | Authority                                                                                            |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [Architecture](/docs/design/architecture/)    | Build, configuration, diagnostics, localization, featured images, output, security, accessibility, and performance |
| [Components](/docs/design/components/)        | Component API, Book and release primitives, validation, and output degradation                       |
| [Shell and navigation](/docs/design/shell/)   | Navigation, search, blog presentation, actions, taxonomies, and page-end composition                 |
| [Landing pages](/docs/design/landing/)        | Landing data, the 22-section registry, runtime, accessibility, and outputs                           |
| [Migration boundary](/docs/design/migration/) | Supported 0.4-to-current content and configuration migrations                                        |

## Design records {#design-records}

| Collection                           | Contents                                                                          |
| ------------------------------------ | --------------------------------------------------------------------------------- |
| [Decisions](/docs/design/decisions/) | Accepted diagnostic, configuration, authoring, Expo, and CLI rationale                       |
| [Research](/docs/design/research/)   | Goldmark probes, consumer evidence, CLI acceptance, and October theme reviews                             |
| [Proposals](/docs/design/proposals/) | Accepted and active PRDs for theme roadmap, local search, visual presets, content components, and the CLI roadmap |

Create each new OINK PRD or RFC as an English and Chinese page pair under
`content/docs/design/proposals/`. Do not create another repository-local
`plan/`, `plans/`, or `proposal/` tree. After acceptance, update the
implementation, its checker, and the applicable contract, then record the
accepted rationale under Decisions. Retire the draft from active use while
preserving it in Git history and the changelog.

## Expo contract {#expo-contract}

The [Expo contract](/docs/design/expo/) describes the image-album layout
introduced in OINK 1.3.0. Its [accepted decision](/docs/design/decisions/expo/) records the
content model and the revisions to the earlier Muse experiment. The
[authoring guide](/docs/write/expo/) explains album setup and viewer controls.
The contract, accepted decision, and authoring guide describe the same
released content model and controls.

## Authority and maintenance {#authority-and-maintenance}

This directory owns the English and Chinese design text for maintainers; the
theme repository owns the executable facts. Within the theme, `hugo.yaml`
defines published defaults, while each resolver and checker defines the input
shapes it accepts. `layouts/` and `assets/` define rendered behavior, and check
scripts with `tests/goldens/` define validation. `VENDOR.json` records bundled
versions, licenses, files, and checksums.

When public behavior changes, update the implementation, its checker, and both
language versions of the applicable contract in the same delivery.
Tests should check behavior and output without requiring exact prose.

---

Section pages:

- [Architecture contract](/docs/design/architecture/): Repository assembly, configuration, diagnostics, localization, output, performance, security, CSS, accessibility, and release-state boundaries.
- [Component contract](/docs/design/components/): The maintainer contract for OINK authoring primitives, validation, Book and release behavior, and output degradation.
- [Shell and navigation contract](/docs/design/shell/): Navigation authorities, immersive blog presentation, search, actions, taxonomies, indexes, and page-end composition.
- [Landing contract](/docs/design/landing/): The maintainer contract for landing data, the built-in section registry, language resolution, runtime, accessibility, and outputs.
- [Expo layout contract](/docs/design/expo/): Define album resources, display modes, image viewing, shared appearance, and static outputs.
- [OINK migration boundary](/docs/design/migration/): Supported source, configuration, and validation boundaries for OINK migration, including the 1.6.0, 1.7.0, and 1.8.0 upgrades.
- [Design decisions](/docs/design/decisions/): Accepted decisions that explain why OINK's current contracts and implementation have their present shape.
- [Design research](/docs/design/research/): Dated experiments and consumer evidence that inform OINK design decisions.
- [Design proposals and PRDs](/docs/design/proposals/): The canonical bilingual home for OINK PRDs and designs that remain under evaluation.

---

Backlinks:

- [OINK Docs](/case/oink/)
- [Contributing](/docs/about/contributing/)
- [Decisions](/docs/design/decisions/)
- [Research](/docs/design/research/)
- [2026-08-26 review](/docs/design/research/2026-08-26-comprehensive-review/)
- [OINK v1.0.0](/release/1.0.0/)
