Remix.run Logo
amitav1 15 hours ago

It looks cool! No experience with Zig so can't comment on the accuracy, but I will take a look at it this week. Also a bit annoying that there is no PDF version that I could download as the website is pretty slow. After taking a look at the repository (https://github.com/zigbook/zigbook/tree/main), each page seems to be written in AsciiDoc, so I'll take a look about compiling a PDF version later today.

hoshikihao 11 hours ago | parent [-]

If there is a PDF version, please remember to give me one. Thank you in advance.

forgotpwd16 2 hours ago | parent | next [-]

zigbook.pdf => https://files.catbox.moe/gobtw7.pdf

HOWTO: The text can be found per-chapter in `./pages/{chapter}.adoc` but each chapter includes code snippets found in a respective `./chapters-data/code/{chapter}/` subdirectory. So, perhaps a hacky way to do it but quite lazy to fully figure asciidoctor flags, created using a script a combined book.adoc that includes all others with `include::{chapter}.adoc` directives, then run `asciidoctor-pdf -a sourcedir=../chapters-data/code -r asciidoctor-diagram -o book.pdf ./pages/book.adoc`.

5 hours ago | parent | prev [-]
[deleted]