Skip to content
lzm0x219Public

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简体中文

zig-web — a clearer way into Zig

zig-web English homepage

Zig's official material is deep and mostly available in English. zig-web is an independent community project that adds a multilingual reading layer and a clear path from first install to a working project. It is not an official Zig site; Zig's own documentation remains authoritative.

What's inside

  • A clear path from install to first project — choose a version, install Zig, create a project, and run it.
  • Reference and runnable examples — browse the standard library, release channels, and small Zig programs.
  • A reading experience built for focus — light, dark, and system themes; responsive layouts; works without JavaScript.

Development

Install the pinned toolchain with mise, then start the local site:

mise install
pnpm install
pnpm content:fetch
mise run dev

Production builds require SITE_URL, the public origin used for canonical links, the sitemap, and feeds:

export SITE_URL=https://example.org
pnpm build
pnpm verify:build
  • mise run check runs lint, formatting, Astro types, and Zig tests.
  • mise run examples compiles and runs the Zig examples.
  • mise run test runs browser tests and needs Google Chrome.
  • TRANSLATION_FEEDBACK_URL sets where readers send translation feedback.

Updating Official Content

src/content/official/content.lock.json pins the articles, release index, viewers, and embedded media as one snapshot. After pnpm content:fetch, development and full-site builds work offline. The command prints the readable articles directory under the gitignored .cache/official/.

  • mise run sync:official creates a candidate in output/ while the active snapshot stays available.
  • pnpm content:publish --check <candidate> builds it and checks translations, links, and local media.
  • pnpm content:publish <candidate> validates and uploads the archives, verifies their remote SHA-256 digests, and then updates the local lock. The command stops if another publisher changes the active snapshot. Keep existing release assets for older checkouts.
  • To install a candidate from local archives, run ZIG_WEB_CONTENT_LOCK=<candidate>/content.lock.json pnpm content:fetch --local.

If a forcibly stopped publish leaves src/content/official/content.lock.json.activating/, confirm no publisher is running before removing the empty directory with rmdir.


Released under the MIT License. Independent community project, not affiliated with or endorsed by the Zig project or the Zig Software Foundation. Zig artwork follows its official licenses: mascots CC BY 4.0; wordmark and symbol CC BY-SA 4.0.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages