| 8 Mar 2024 |
@pennae:matrix.eno.space | or, as nrd was intended, change nrd to match the needs | 07:59:47 |
@pennae:matrix.eno.space | (we also find it somewhat backhanded to come up with live editing again when that was already hacked into place and not even possible before the md workflow really took off) | 08:07:44 |
@pennae:matrix.eno.space | like, the root problem with our docs isn't tooling support. switching out tooling again will only bind resources that could've been used for something that actually improves that status quo? | 08:08:54 |
infinisil | In reply to @jade_:matrix.org It seems borderline absurd to assume that there exists an off the shelf solution that actually has proper interactions with nix and consideration of anything that is not a web browser. Have you considered taking the nrd output and using it in your pipeline instead of trying to reinvent it, so we actually own the markup parser and such? Afaik there's nothing Nix-specific about nixos-render-docs at least | 09:45:49 |
infinisil | In reply to @pennae:matrix.eno.space like, the root problem with our docs isn't tooling support. switching out tooling again will only bind resources that could've been used for something that actually improves that status quo? I'd say it's a problem that we use different tooling for different projects. I guess it would make sense to try and see if nixos-render-docs could be used throughout though (such as for Nix and nix.dev). | 09:48:07 |
@pennae:matrix.eno.space | not nix-specific, but nixpkgs/nixos-specific very much so. like manpage export, integration with the option system, crossreferencing, even performance optimizations needed to generate such huge documents as the nixos manual | 09:48:23 |
@pennae:matrix.eno.space | In reply to @infinisil:matrix.org I'd say it's a problem that we use different tooling for different projects. I guess it would make sense to try and see if nixos-render-docs could be used throughout though (such as for Nix and nix.dev). we did have that aspiration before we burned out on it all | 09:48:54 |
infinisil | In reply to @pennae:matrix.eno.space not nix-specific, but nixpkgs/nixos-specific very much so. like manpage export, integration with the option system, crossreferencing, even performance optimizations needed to generate such huge documents as the nixos manual Integration with the option system sounds very interesting, can you link to that? | 09:49:15 |
infinisil | Oh I guess options.py | 09:49:23 |
@pennae:matrix.eno.space | In reply to @infinisil:matrix.org Oh I guess options.py correct | 09:50:04 |
infinisil | https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/options.py | 09:50:19 |
infinisil | Oh so it renders it a bit differently on different targets | 09:50:31 |
@pennae:matrix.eno.space | of course, that's why the manpage isn't terrible | 09:50:57 |
@johannes.kirschbauer:scs.ems.host | But Is this website really what we'd like to give something to our users?
many off-the shelf rendering frameworks are really awesome (compare to our website), and they dont require us to maintain our own markdown parser and instead have more freedom because their community maintains the framework, while we can focus on writing documentation (and maybe add some plugins) | 10:08:02 |
@johannes.kirschbauer:scs.ems.host | * But Is this website really what we'd like to give to our users?
many off-the shelf rendering frameworks are really awesome (compare to our website), and they dont require us to maintain our own markdown parser and instead have more freedom because their community maintains the framework, while we can focus on writing documentation (and maybe add some plugins) | 10:08:26 |
@pennae:matrix.eno.space | have you considered: it took multiple years to do one migration, it has regressed, and it was only possible because we didn't use off-the-shelf components or we would've regressed even more. | 10:09:04 |
@pennae:matrix.eno.space | do you really want to bind up another few years worth of work after the first migration hasn't even been shipping for six months | 10:09:27 |
@pennae:matrix.eno.space | it's so far from "just drop in another framework", we're not sure you even understand what you're setting yourselves up for. | 10:10:18 |
danielsidhion | My approach to looking into other frameworks is based on a simpler thought: we currently have 5k lines of custom code to render the manuals into what we see online. As far as I know, there is currently not a lot of flexibility in the tool to produce things in different ways, which means that if we want to change something, we'll need to go change the code. This is a big overhead that makes it hard to add improvements to the manuals. So I decided to look into other frameworks to see how much of our needs they can satisfy out of the box, and how much extra effort would be needed to satisfy the other needs. Because honestly, I actually find borderline absurd to assume that nobody out there has been able to solve some of the same problems we have into a tool that's more popular, has people to maintain it, and has a bigger ecosystem of documentation/plugins/knowledge to source from | 10:11:24 |