| 13 Apr 2024 |
@terru:raccoon.college | * you should've just gotten a ping from github with the PR ;) | 13:46:00 |
@terru:raccoon.college | grr forgot the final force-push changing the throw to lib.warn, sorry to everyone who now got pinged twice 🙈 | 13:48:16 |
| @alex3829:matrix.org joined the room. | 16:04:39 |
| 14 Apr 2024 |
| @windchimesofmagic:matrix.org left the room. | 17:37:29 |
| 15 Apr 2024 |
| soenke joined the room. | 22:08:57 |
| 16 Apr 2024 |
| thoth joined the room. | 09:02:05 |
| 17 Apr 2024 |
| @alex3829:matrix.org changed their display name from alex3829 to real_z22. | 04:36:12 |
| @alex3829:matrix.org changed their display name from real_z22 to real_z2. | 05:33:42 |
| JoelMcCracken joined the room. | 16:26:38 |
| 18 Apr 2024 |
| @fractivore:cyberia.club left the room. | 02:27:17 |
| @nscnt:matrix.org joined the room. | 13:21:24 |
@olafklingt:matrix.org | how is the ":::" annotation called in sphinx? i wonder what the implications of more or less periods is. | 17:42:57 |
fricklerhandwerk | In reply to @olafklingt:matrix.org how is the ":::" annotation called in sphinx? i wonder what the implications of more or less periods is. Admonition | 18:10:51 |
@terru:raccoon.college | oh btw, while we're talking about admonitions: the doc/README.md still contains links to docbook for the types of admonitions which are supported. Is this in any way useful or intentional, or just a migration leftover and therefore a bug? (I found it a little confusing when i noticed it) | 19:55:09 |
| 19 Apr 2024 |
fricklerhandwerk | In reply to @terru:raccoon.college oh btw, while we're talking about admonitions: the doc/README.md still contains links to docbook for the types of admonitions which are supported. Is this in any way useful or intentional, or just a migration leftover and therefore a bug? (I found it a little confusing when i noticed it) Probably a leftover. Feel free to remove the links | 08:59:31 |
@terru:raccoon.college | sure: https://github.com/NixOS/nixpkgs/pull/305328 | 15:10:08 |
fricklerhandwerk | In reply to @terru:raccoon.college sure: https://github.com/NixOS/nixpkgs/pull/305328 Thanks! | 15:28:02 |
@terru:raccoon.college | (and while we are on the topic of leftover docbook mentions: anyone got opinions on this issue of mine?) | 15:29:11 |
djacu | fricklerhandwerk: infinisil I've created an issue for expanding and improving the module documentation on nix.dev. I would appreciate your and anyone else's feedback. https://github.com/NixOS/nix.dev/issues/966 | 16:34:01 |
fricklerhandwerk | In reply to @terru:raccoon.college (and while we are on the topic of leftover docbook mentions: anyone got opinions on this issue of mine?) Yeah just ditch those references. Thanks a lot! | 17:10:29 |
@olafklingt:matrix.org | I started to think/brainstorm about the NixOS manual again. And i remember that fricklerhandwerk recently said that he thinks "a lot of things in the manual should be on the wiki". What was did you had in mind with of that statement? | 19:15:31 |
@terru:raccoon.college | In reply to @fricklerhandwerk:matrix.org Yeah just ditch those references. Thanks a lot! have opened a PR removing it | 19:29:59 |
fricklerhandwerk | In reply to @olafklingt:matrix.org I started to think/brainstorm about the NixOS manual again. And i remember that fricklerhandwerk recently said that he thinks "a lot of things in the manual should be on the wiki". What was did you had in mind with of that statement? All the NixOS-specific interfaces should be documented in the manual. Probably also installation instructions. How to use/troubleshoot particular software can be in the Wiki, because that's not actually about NixOS. | 22:22:05 |
| 20 Apr 2024 |
| @nscnt:matrix.org left the room. | 13:41:08 |
@olafklingt:matrix.org | this closed pr https://github.com/NixOS/nix.dev/pull/964 triggered my brainstorming mind to think about the possibility to have testable tutorials.
What if every tutorial is an annotated nixos-test?
For me the question is not focused on the style of annotation right now.
But rather if you have ideas why an attempt to realize this would be futile?
maybe to difficult to realize for potential content contributors (deteriorating)?
maybe to complex to implement correctly (endless poc...)? | 14:52:22 |
fricklerhandwerk | In reply to @olafklingt:matrix.org this closed pr https://github.com/NixOS/nix.dev/pull/964 triggered my brainstorming mind to think about the possibility to have testable tutorials. What if every tutorial is an annotated nixos-test? For me the question is not focused on the style of annotation right now. But rather if you have ideas why an attempt to realize this would be futile? maybe to difficult to realize for potential content contributors (deteriorating)? maybe to complex to implement correctly (endless poc...)? I find this to be a bit of a rabbit hole, because in my opinion (which may as well be very wrong), all of the tooling we have for that is near-useless for our purposes. Which doesn't make it impossible to do anything about the problem of tutorials diverging from the code, but raises the question of how to approach it regardless.
There are three ways I currently see, and find all of them to be a stretch:
- Add NixOS tests that accompany tutorials. Problem: duplication and a mess of a setup
- Use https://github.com/OceanSprint/tesh to extract test cases from tutorials. This would cover many use cases, but the tool is not actively developed, and there are lots of open questions. I think it is worth trying out.
- Do something completely different, as sketched here: https://github.com/fricklerhandwerk/beast. Problem: This very unorthodox and requires building some infrastructure first, so there's high risk of diverting attention from what we may think is more important.
| 16:30:20 |
fricklerhandwerk | In reply to @olafklingt:matrix.org this closed pr https://github.com/NixOS/nix.dev/pull/964 triggered my brainstorming mind to think about the possibility to have testable tutorials. What if every tutorial is an annotated nixos-test? For me the question is not focused on the style of annotation right now. But rather if you have ideas why an attempt to realize this would be futile? maybe to difficult to realize for potential content contributors (deteriorating)? maybe to complex to implement correctly (endless poc...)? * I find this to be a bit of a rabbit hole, because in my opinion (which may as well be very wrong), all of the tooling we have for that is near-useless for our purposes. Which doesn't make it impossible to do anything about the problem of tutorials diverging from the code, but raises the question of how to approach it regardless.
There are three ways I currently see, and find all of them to be a stretch:
- Add NixOS tests that accompany tutorials. Problem: duplication and a mess of a setup, which needs to be maintained by hand.
- Use https://github.com/OceanSprint/tesh to extract test cases from tutorials. This would cover many use cases, but the tool is not actively developed, and there are lots of open questions. I think it is worth trying out.
- Do something completely different, as sketched here: https://github.com/fricklerhandwerk/beast. Problem: This very unorthodox and requires building some infrastructure first, so there's high risk of diverting attention from what we may think is more important.
| 16:30:55 |
@olafklingt:matrix.org | In reply to @fricklerhandwerk:matrix.org
I find this to be a bit of a rabbit hole, because in my opinion (which may as well be very wrong), all of the tooling we have for that is near-useless for our purposes. Which doesn't make it impossible to do anything about the problem of tutorials diverging from the code, but raises the question of how to approach it regardless.
There are three ways I currently see, and find all of them to be a stretch:
- Add NixOS tests that accompany tutorials. Problem: duplication and a mess of a setup, which needs to be maintained by hand.
- Use https://github.com/OceanSprint/tesh to extract test cases from tutorials. This would cover many use cases, but the tool is not actively developed, and there are lots of open questions. I think it is worth trying out.
- Do something completely different, as sketched here: https://github.com/fricklerhandwerk/beast. Problem: This very unorthodox and requires building some infrastructure first, so there's high risk of diverting attention from what we may think is more important.
thanks for the links. actually this convinces me that it should be feasible. now one needs to find time :-P | 17:15:59 |
djacu | In reply to @djacu:matrix.org fricklerhandwerk: infinisil I've created an issue for expanding and improving the module documentation on nix.dev. I would appreciate your and anyone else's feedback. https://github.com/NixOS/nix.dev/issues/966 olaf: You might be interested in what I was proposing for the module tutorials update. It's probably not as comprehensive as what you have in mind but might be suitable for smaller tests that don't need the infrastructure of a full nixos-test.
For my workshop, I created lessons where the code was separate from the markdown and inserted at build time of the site. Each example was evaluated/built and the result was also injected into the markdown. Essentially creating a system where the site would not build if the examples failed to evaluate. I didn't do any checking to make sure the answer was correct but that could be added.
The way I did this was pretty hacky and sometimes cursed (and definitely not the way we should do it on nix.dev) but it's what I had to do given my time constraints. With more time I would have needed to run Nix inside of Nix or come up with some other solution.
| 17:23:23 |
@olafklingt:matrix.org | In reply to @djacu:matrix.org
olaf: You might be interested in what I was proposing for the module tutorials update. It's probably not as comprehensive as what you have in mind but might be suitable for smaller tests that don't need the infrastructure of a full nixos-test.
For my workshop, I created lessons where the code was separate from the markdown and inserted at build time of the site. Each example was evaluated/built and the result was also injected into the markdown. Essentially creating a system where the site would not build if the examples failed to evaluate. I didn't do any checking to make sure the answer was correct but that could be added.
The way I did this was pretty hacky and sometimes cursed (and definitely not the way we should do it on nix.dev) but it's what I had to do given my time constraints. With more time I would have needed to run Nix inside of Nix or come up with some other solution.
I feel this might lead to the problem that it is difficult to write the tutorial if you don't see directly what the reader will be able to see. mdbook supports including lines from rs files into the documentation files. but this can become very easily mangled. but i also see the benefits to separate the two. i need to look into literal programming more, to see what caveats have been solved in which way. | 17:29:22 |