| 11 Jun 2023 |
@penguincoder:matrix.wolfie.pw | Oh, that’s an impressive improvement in runtime. So the biggest challenge is just undesirable process and cruft? | 01:59:19 |
pennae | that's one way to put it | 01:59:58 |
pennae | docbook rendering has been (and still is to an extent) slow because xsltproc just isn't really up to the sizes of manuals we throw at it. and nobody likes writing docbook. | 02:01:09 |
@penguincoder:matrix.wolfie.pw | Is porting an option? | 02:06:17 |
@penguincoder:matrix.wolfie.pw | mdbook is nice | 02:06:31 |
pennae | well, we've already written an entirely new system because mdbook was deemed too large 😬 | 02:06:57 |
pennae | same principle though, if with a much larger markdown dialect that's more amenable to extension as we need | 02:07:27 |
pennae | the nixos manual build is currently the only thing that uses this and is unfortunately a bit complicated, so it's not quite that easy to demonstrate unless you dig a lot | 02:10:40 |
@penguincoder:matrix.wolfie.pw | Okay, that’s totally reasonable. Can you point me to that process?
Also: mdbook was too big? I thought it was small? | 02:26:43 |
pennae | mdbook is big in that it has a lot of large dependencies (eg, the rust compiler) | 02:31:31 |
pennae | gotta go now too | 02:32:10 |
@penguincoder:matrix.wolfie.pw | I can understand that the Rust ecosystem is too much for a single step. Don’t get me wrong, I like it. But I can totally get why there would be resistance. As a single item, mdbook is not enough to adopt rust.
Thanks for your explantions pennae | 03:53:13 |
Jan Tojnar | In reply to @pennae:matrix.eno.space pandoc does not seem to natively support rendering docbook figures from image sources? excellent. what do you mean? In pandoc 2, there is https://github.com/jgm/pandoc/blob/2.19.2/src/Text/Pandoc/Writers/Docbook.hs#L235-L246 and you need to make sure it is figure in the Pandoc AST (e.g. when using markdown reader with implicit_figures extension) | 15:30:51 |
pennae | In reply to @jtojnar:matrix.org what do you mean? In pandoc 2, there is https://github.com/jgm/pandoc/blob/2.19.2/src/Text/Pandoc/Writers/Docbook.hs#L235-L246 and you need to make sure it is figure in the Pandoc AST (e.g. when using markdown reader with implicit_figures extension) that does not generate the same figures the graphviz block does. we haven't found any way to generate that node in about 10 minutes of searching, and then decided it's not worth the effort to convert the figure to markdown first if it's only to keep the diff between mauals small. it's just the one image after all | 15:32:44 |
Jan Tojnar | yeah, that sounds reasonable | 15:33:24 |
Jan Tojnar | IIRC, the criteria were image standing alone in a paragraph, having title starting with fig: | 15:36:26 |
pennae | ah, that may have been the missing bit. we didn't add a title at all | 15:47:02 |
pennae | pandoc docs make it look like that's not needed and the original didn't have a title either, so that wouldn't've done any good to minimize the diff anyway | 15:48:07 |
proofconstruction | why would we need to "adopt" rust to use mdbook? we're not building the mdbook binary every time we render the docs (i hope) | 15:55:01 |
pennae | ci might | 15:56:49 |
pennae | just did a little test on manual build times after changes:
19.03 0:37
19.09 0:39
20.03 0:44
20.09 0:51
21.05 1:07
21.11 1:22
22.05 1:39
22.11 1:55
23.05 1:00
-docbook 0:13
| 16:07:43 |
pennae | that's timing the nix-build call that builds the manual, so the actual improvement in the manual build is going to be larger than it seems here | 16:08:16 |
pennae | the final run spent half of its time in nix itself | 16:10:46 |
pennae | https://github.com/NixOS/nixpkgs/pull/237237
begone, foul simulacrum of paper | 19:23:25 |
| 12 Jun 2023 |
John Ericson | https://git-scm.com/book/en/v2/Git-Internals-Git-Objects | 14:44:57 |
| 13 Jun 2023 |
pennae | https://github.com/NixOS/nixpkgs/pull/237557 there we go. nixos manual sans docbook | 12:42:43 |
pennae | and nixpkgs isn't that far behind at this point | 12:42:51 |
pennae | we've got nixpkgs mostly done, just needs a few more changes to nixdoc that we'll take care of before too long (hopefully) | 12:49:05 |
| Marc Jakobi changed their profile picture. | 14:49:40 |
| Julien changed their display name from Julien to JulienMalka (stop speaking german when). | 14:53:11 |