Skip to content

Overhaul of chapter 1 - #235

Open
David-Stelter wants to merge 5 commits into
pedropark99:mainfrom
David-Stelter:main
Open

Overhaul of chapter 1#235
David-Stelter wants to merge 5 commits into
pedropark99:mainfrom
David-Stelter:main

Conversation

@David-Stelter

Copy link
Copy Markdown

I went through Chapter 1 to clean up the text and correct some terms. I also upgraded the Flake to use Zig 0.16.0 so it builds properly with the new main signature.

Main changes

Chapter 1 (01-zig-weird.qmd):

  • Swapped loose phrasing like "unicode point" for the correct "Unicode codepoint".
  • Noted that [16:0]u8 takes up 16 + 1 bytes in memory due to the sentinel.
  • Corrected "arguments" to "parameters" where appropriate.
  • Changed "NULL value" to "NUL byte" where appropriate and changed surrounding explanations.
  • Updated old GitHub mention in regards to the Zig Standard Library to Codeberg.
  • Cleaned up sentence fragments, awkward phrasing, and typos to improve the reading flow.

Nix Flake:

  • Bumped the Nix flake to the stable Zig 0.16.0 release to properly support the new main signature with init, since the previously pinned master build was causing compile errors.

I recompiled the book and everything renders without issues on a local preview.

I assign the copyright of this contribution to Pedro Duarte Faria

Copilot AI review requested due to automatic review settings June 2, 2026 14:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the generated Quarto site assets (HTML/CSS/JS) and build tooling, including changes to search highlighting/URL handling, navigation behavior, and tabset persistence behavior.

Changes:

  • Pin Zig toolchain in flake.nix to a specific version attribute.
  • Regenerate Quarto site assets (Quarto version appears to change, and multiple JS/CSS bundles are updated).
  • Refactor client-side behavior for search highlighting, tabsets persistence, and TOC/category activation logic.

Reviewed changes

Copilot reviewed 15 out of 36 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
flake.nix Pins Zig dependency via zig.packages.${system}."0.16.0".
docs/site_libs/quarto-search/quarto-search.js Reworks query handling/highlighting and alters Algolia insights init + Fuse subindex creation logic.
docs/site_libs/quarto-nav/quarto-nav.js Removes announcement bar registration logic.
docs/site_libs/quarto-html/tabsets/tabsets.js Deletes standalone grouped-tabsets module (logic moved elsewhere).
docs/site_libs/quarto-html/quarto.js Inlines grouped-tabsets logic, changes TOC/category activation logic, and alters selector construction and iteration code.
docs/site_libs/quarto-html/quarto-syntax-highlighting-dark-23bbe8b5e4efc1e257f6d59dce478b08.css Regenerated syntax highlighting CSS (ordering + sourcemap reference).
docs/site_libs/quarto-html/quarto-syntax-highlighting-acf12a64177840b8d86f2d4f01b2e9fb.css Regenerated syntax highlighting CSS (ordering + sourcemap reference).
docs/site_libs/bootstrap/bootstrap-icons.css Downgrades Bootstrap Icons version and updates font hash + icon list.
docs/index.html Regenerated HTML (script loading mode, theming bootstrap links, ARIA labels, etc.).
docs/Chapters/references.html Regenerated HTML (title format, theming bootstrap links, bibliography markup).
docs/Chapters/15-vectors.html Regenerated HTML and changes math script loading + KaTeX render guards.
docs/Chapters/03-unittests.html Regenerated HTML (script loading mode, theming bootstrap links, ARIA labels, etc.).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/index.html
</a>
<button type="button" class="btn quarto-search-button" aria-label="Search" onclick="window.quartoOpenSearch();">
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
Comment on lines +131 to 132
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants