24 Oct 2024 |
Deleted -Johannes Kirschbauer- reach me via @hsjobeki:matrix.org instead | In reply to @ronef:matrix.org Johannes Kirschbauer @hsjobeki: see if there's anything you'd want to add here about it Are you going to be around at NixCon? https://docs.google.com/presentation/d/1G9Rc6cxWKgMM1q0DtgwyWUauBZ0vBLhAiV3M5ZuvEyo/edit#slide=id.g23efee59dda_0_212 Yes i will be there starting from today 6pm | 09:21:40 |
Deleted -Johannes Kirschbauer- reach me via @hsjobeki:matrix.org instead | @fricklerhandwerk:matrix.org: do we want to add nix-documentation team Slide?
There was quite some stuff Happening this year.
Stuff for reference documentation
- Jan noogle 2024 released
- doc-comments now implemented in nix-repl (roberth ported from lix i think)
- Infra / Domain Changed (you did this i think with roberth)
- multi Version nix Manual
- nix.dev (i dont know what Majors happened there)
... Maybe we should sit down and Filter Out the important stuff? | 09:26:55 |
ronef | Happy for you to have a slide and take ~2 minutes for doc team updates and call to actions | 09:28:18 |
fricklerhandwerk | In reply to @johannes.kirschbauer:scs.ems.host @fricklerhandwerk:matrix.org: do we want to add nix-documentation team Slide?
There was quite some stuff Happening this year.
Stuff for reference documentation
- Jan noogle 2024 released
- doc-comments now implemented in nix-repl (roberth ported from lix i think)
- Infra / Domain Changed (you did this i think with roberth)
- multi Version nix Manual
- nix.dev (i dont know what Majors happened there)
... Maybe we should sit down and Filter Out the important stuff? Tbh IMO this year was rather quiet. We did a bunch of things for sure, but nothing qualitatively different from last year except doc comments landing. Maybe versioned Nix manuals, but that’s a lot less important for the NixCon audience than doc comments I think | 09:30:38 |
25 Oct 2024 |
| @aniketd:matrix.org left the room. | 06:21:05 |
h7x4 | Just a quick question about the lib type signatures - is it an active decision we have made not to note subtypes for attrsets? Or has it just become this way?
# Current state for lists
map :: (a -> b) -> [a] -> [b]
# Current state for attrs
mapAttrs :: (String -> Any -> Any) -> AttrSet -> AttrSet
# I'd like something like this
mapAttrs :: (String -> a -> b) -> { * :: a } -> { * :: b }
# Or alternatively just
mapAttrs :: (String -> a -> b) -> { a } -> { b }
| 13:52:44 |
alejandrosame | In reply to @johannes.kirschbauer:scs.ems.host @ronef:matrix.org: i am going on train now. A little Community effort to finish with doc-comments migration would be so nice. Its been a huge milestone and is actually very easy. But a lot of handwork is required.
I could make a little guide for how to do it with the hope that some people are willing to jump in for the missing mile Please, do the guide! I | 15:49:19 |
alejandrosame | In reply to @johannes.kirschbauer:scs.ems.host @ronef:matrix.org: i am going on train now. A little Community effort to finish with doc-comments migration would be so nice. Its been a huge milestone and is actually very easy. But a lot of handwork is required.
I could make a little guide for how to do it with the hope that some people are willing to jump in for the missing mile * Please, do the guide! I'm in the process of revamping my dev setup and this kind of tasks are great for validating it | 15:49:47 |
Deleted -Johannes Kirschbauer- reach me via @hsjobeki:matrix.org instead | In reply to @h7x4:nani.wtf
Just a quick question about the lib type signatures - is it an active decision we have made not to note subtypes for attrsets? Or has it just become this way?
# Current state for lists
map :: (a -> b) -> [a] -> [b]
# Current state for attrs
mapAttrs :: (String -> Any -> Any) -> AttrSet -> AttrSet
# I'd like something like this
mapAttrs :: (String -> a -> b) -> { * :: a } -> { * :: b }
# Or alternatively just
mapAttrs :: (String -> a -> b) -> { a } -> { b }
I would like to encurage explicit types. Its something historicially adapted differently everywhere in nixpkgs. I have this repo to try to harmonize them eventually: https://github.com/hsjobeki/nix-types | 16:59:47 |
h7x4 | Cool, thanks! | 17:29:20 |
alejandrosame | * Please, do the guide! I'm in the process of revamping my dev setup and this kind of tasks is great for validating it | 18:35:43 |
| Jack joined the room. | 23:44:44 |
26 Oct 2024 |
| plmh joined the room. | 05:20:11 |
| willbush left the room. | 23:42:03 |
| willbush joined the room. | 23:43:21 |
27 Oct 2024 |
| Lorenz joined the room. | 06:58:28 |
30 Oct 2024 |
| seapat left the room. | 07:49:55 |
1 Nov 2024 |
| Guillaume Desforges changed their profile picture. | 21:19:02 |
2 Nov 2024 |
| Mel joined the room. | 02:56:47 |
| isabel changed their profile picture. | 10:07:46 |
4 Nov 2024 |
Minijackson | Hey all! I've been developing sphinxcontrib-nixdomain these past months, which is a project for documenting Nix "objects" in the Sphinx documentation system.
Currently it only support NixOS options, but I plan on adding support for packages and libs. It's currently missing some documentation (heh) and it's not currently published on PyPi, but I think it'd be quite a useful project for non-nixpkgs Nix projects.
Here's an example of what it looks like in a real project: https://epics-extensions.github.io/EPNix/nixos-services/options-reference/archiver-appliance.html
Is this something you'd be interested in? I think I'll be needing help for example to fetch doc comments like nixdoc does.
| 12:46:32 |
fricklerhandwerk | Nice, this looks really good. Would definitely be great for nix.dev where we could integrate it right away. | 13:37:47 |
Minijackson | I should work on getting it published and inside nixpkgs, then. Should the project be in nix-community? | 13:46:15 |
Minijackson | Note that right now, the project is only useful for project that define their own NixOS option. I'd like to make a Sphinx role for referring to options defined in nixpkgs, but it's not implemented right now | 13:54:19 |
fricklerhandwerk | We can already try without any of that and see how it goes, no need to block. Could you open a PR to use it on some page? Eg the first section of the module system tutorial and render the example module | 13:54:50 |
Minijackson | In reply to @fricklerhandwerk:matrix.org We can already try without any of that and see how it goes, no need to block. Could you open a PR to use it on some page? Eg the first section of the module system tutorial and render the example module I'll look into it! | 13:55:15 |
Minijackson | this page then: https://nix.dev/tutorials/module-system/a-basic-module/ ? | 13:56:39 |
Minijackson | or the deep dive? | 13:56:42 |
fricklerhandwerk | In reply to @Minijackson:matrix.org Note that right now, the project is only useful for project that define their own NixOS option. I'd like to make a Sphinx role for referring to options defined in nixpkgs, but it's not implemented right now If it works via optionsDoc and one can pass a config it should be easy to just hand it anything, including NixOS stuff, right? | 13:56:51 |
Minijackson | In reply to @fricklerhandwerk:matrix.org If it works via optionsDoc and one can pass a config it should be easy to just hand it anything, including NixOS stuff, right? yup | 13:57:14 |