• HTML 97.8%
  • Zig 1.6%
  • CSS 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-13 15:38:57 +01:00
examples Replace deprecated names for optimization modes 2026-11-13 15:38:57 +01:00
tools Add tools to help with maintaining the examples 2026-09-26 15:33:45 +02:00
website Replace deprecated names for optimization modes 2026-11-13 15:38:57 +01:00
.gitignore Update .gitignore 2026-10-23 12:11:02 +02:00
about.md Refactor website 2026-09-01 08:39:26 +02:00
CONTRIBUTING.md Refactor website 2026-09-01 08:39:26 +02:00
index.md Rename "Build Mode" to "Optimization Mode" 2026-11-13 15:32:22 +01:00
Makefile Refactor website 2026-09-01 08:39:26 +02:00
README.md Refactor website 2026-09-01 08:39:26 +02:00
style.css Change style.css to improve mobile layout 2026-09-06 15:00:02 +02:00
template.html Refactor website 2026-09-01 08:39:26 +02:00

Zig by Example

This is the source code for zigbyexample.neocities.org, a hands-on introduction to Zig using annotated example programs.

Zig by Example is inspired by the excellent Go by Example by Mark McGranaghan and Eli Bendersky. It’s licensed under the Creative Commons Attribution 3.0 Unported License.

If you’re interested in contributing to Zig by Example, please take a look at CONTRIBUTING.md.

Structure

The website is written in Markdown and built with make and Pandoc. Edit the *.md files in the root directory and under examples/, then build the website with:

make

The only dependency is a recent version of Pandoc (recent enough that it has syntax highlighting for Zig).