1
0
Fork
You've already forked www.ziglang.org
0
forked from ziglang/ziglang.org
The Zig website.
  • HTML 94%
  • Zig 5.2%
  • CSS 0.8%
Andrew Kelley b464eecd16 build-commit: partial upgrade to zig 0.16.0
I didn't mess with the timestamp epoch yet
2026年04月14日 20:33:35 -07:00
.forgejo/workflows build-commit: partial upgrade to zig 0.16.0 2026年04月14日 20:33:35 -07:00
assets Merge branch 'release-0.16.0' 2026年04月14日 08:29:26 -07:00
check-mirrors check-mirrors: work around std.http.Client.fetch bug in Zig 0.15.2 2026年03月12日 14:56:03 +00:00
content release news post 2026年04月14日 09:08:54 -07:00
i18n Improve Japanese translation and fix formatting 2025年10月14日 10:40:23 -07:00
i18n-old remove old russian translation 2025年01月23日 17:19:31 +01:00
layouts update version on home page 2026年04月13日 12:27:48 -07:00
src Update src/download/0.16.0/release-notes.html 2026年04月15日 01:33:57 +02:00
zig-code release notes juicy main 2026年04月13日 14:41:57 -07:00
.gitattributes Add .gitattributes to enforce LF for zig/zon files ( #435 ) 2025年02月13日 16:25:18 +01:00
.gitignore update .gitignore 2026年03月15日 15:41:06 +01:00
build.zig fix the build by updating doctest 2026年04月11日 10:15:47 -07:00
build.zig.zon release notes I/O interface section 2026年04月13日 18:19:06 -07:00
LICENSE add license 2023年05月25日 11:56:54 -07:00
MIRRORS.md A new Community-Written Solution for setting up a community mirror ( #536 ) 2026年03月15日 14:09:55 +00:00
README.md update some github to codeberg 2025年11月26日 17:58:49 -08:00
zine.ziggy add silares 2025年10月19日 16:10:42 +02:00

ziglang.org

Website for Zig.

How to Run Locally

We use Zine for static site generation.

Zine, and the Zig website itself (when it comes to code samples), target the latest tagged release of Zig.

For a convenient way of juggling multiple versions of Zig, take a look at zigup.

Once you have the correct version of Zig setup, simply run:

zig build serve

Get Editor Support

This step is optional but highly recommended.

Follow the instructions on the official Zine website.

Following this step will give you syntax highlighting and LSP support for the templating language.

Get other dependencies

Some code examples present on the site require some basic system dependencies:

  • tar
  • zlib
  • jq

It should be possible to get them on all major OSs although on Windows it might be easier to just use WSL. If you know how to get all dependencies on Windows please PR some instructions!

Writing a Translation

See the Zine documentation to learn more about content and templating syntax.

After you've familiarized yourself with the basics, take a look at the i18n section of the docs.

To recap, a translation needs to:

  • be listed in build.zig and have its corresponding content directory created
  • have a corresponding Ziggy file under i18n/, containing the localized version of every phrase used throughout the site
  • have all content files translated, with the exception of news and devlog that should not be translated

Getting Help

Crafting a translation is not a straight-forward process. You have to think about adaptation, spatial constraints (in the front page especially), and other Zine-specific issues that might not be immediately obvious.

If you don't mind instant messaging, please consider joining one of the Zig communities, where you will be able to communicate with other contributors and share some knowledge.

If you prefer asynchronous communication, feel free to open a draft PR, we will make sure to engage with you pronto.

Keep in mind that it's possible that the current setup doesn't allow you to correctly implement a translation without making ulterior changes to Zine's configuration or how the content is organized. Don't hesitate to reach out for help to avoid getting stuck in a problem that can't be solved without larger-scale changes.