Skip to content

Repository files navigation

Barn documentation and blog

Website · Documentation · Blog · Source Code · 中文

This repository contains the bilingual documentation and blog site for Barn, published in English at / and Simplified Chinese at /zh/. Hugo builds the site with the OINK v1.8.0 theme.

Paper is the default visual preset. Readers can switch between Paper, Slate, GitHub, Ink, News, and Terminal independently of light or dark mode from the Appearance menu.

The published Barn 1.4.0 manual stays at /docs/ and /zh/docs/. Its source, home data, layouts and static assets are pinned to site commit 9b230406a930a7d2e33f89021e92653a900ab8bb. The Barn 1.5.0 release has its own English and Chinese manuals at /v1.5/docs/ and /v1.5/zh/docs/. The English and Chinese home pages open the current edition. The version menu opens the selected manual in the reader’s language. 1.5.0 release notes · Acceptance record

Earlier release notes and validation records in content/release/ and content/docs/about/history.md retain their original version numbers and test evidence.

Brand assets

Barn uses 03 / Compute Barn from BARN-visual-concepts-v1.zip: the iron-oxide circular barn with three server bays, paired with the path-drawn BARN wordmark and its copper A.

Asset File Use
Graphic mark barn-mark.svg Navbar, sidebar, favicon, and application icons
Wordmark light · dark Path-drawn text SVG on a transparent background
Combined logo light · dark README and horizontal placements
Dusk hero SVG · PNG Homepage hero (SVG), default release-note cover and social preview (PNG)

The brand palette pairs iron oxide #A9573B, slate #344F60, copper #AF8250, and warm ivory #FFF9EB. Both logo variants use transparent backgrounds and vector paths (no font installation required), with ivory lettering on the dark variant selected automatically by the site theme toggle.

The source repository's .github/barn-logo.svg and barn-logo-dark.svg mirror these combined logos, and its native Barn.icns and this site's favicon/touch icons derive from the same mark (with simplified silhouettes at 16px and 32px). The English and Chinese Release Notes archives use images/barn-hero.png as their default cover. An individual note can supply its own images front matter or a featured image in its page bundle.

Local development

go.mod pins the published OINK module. To preview or validate against a sibling ../oink checkout during theme development, run:

make dev
make check-local

To build and verify against the pinned go.mod dependency:

make build
make check

Both targets build the two editions with the released OINK module. They clear HUGO_MODULE_REPLACEMENTS and set GOWORK=off and HUGO_MODULE_WORKSPACE=off. make check also verifies Go modules, internal links, anchors, assets and the four language-specific search indexes before replacing public/. make preview builds and serves both editions on loopback (PORT=1313 by default). make dev serves the live 1.5 manual at the local root. Set HUGO=/path/to/hugo to select a binary.

When auditing CLI behavior or configuration examples against the v1.4.0 source tag or the source commit named by a release note, point BARN_HOME at a temporary directory for validate and plan so you do not touch an active local lab.

GitHub Actions installs the standard Hugo binary from the latest channel. Cloudflare Pages needs the build command make build and the output directory public. If a shallow checkout lacks the stable commit, the builder fetches that exact commit into a temporary repository. wrangler.toml specifies HUGO_VERSION=0.171.0 and GO_VERSION=1.27.4 for both production and preview. OINK and the site stylesheet (assets/css/project.css) use plain CSS.

The site overrides OINK’s content/render.html and print/page-content.html to preserve literal image selectors such as d13@20261130.2678.1 in article and print HTML. Both call content/literal-code.html, which wraps code elements in Cloudflare’s email_off comments. Keep minify.tdewolff.html.keepComments enabled, compare both partials with the pinned theme on upgrade, and check a public example after deployment. Cloudflare email obfuscation

Content policy

For the 1.5 manual, put only changed pages and their translations under versions/manuals/1.5/docs/, using the same path as the shared article in content/docs/. The 1.5 manual falls back to shared pages. Record reader-visible changes in the 1.5 release notes and the dated acceptance record.

Store each English page beside its Simplified Chinese counterpart as page.md and page.zh.md. Follow STYLE_GUIDE.md for writing style, terminology, and OINK component usage. Place blog articles under content/blog/article/, design notes under content/blog/design/, and release notes under content/release/.

Lead with the user's task in docs/start/, keep exhaustive flag and schema tables in docs/reference/, explain architectural trade-offs in docs/about/ and blog/design/, and preserve dated test evidence and release history in docs/about/history and release/.

Releases

Packages

Contributors

Languages