!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

367 Members
Discussion about documentation improvements around the Nix ecosystem85 Servers

Load older messages


SenderMessageTime
24 Oct 2024
@fricklerhandwerk:matrix.orgfricklerhandwerk
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.organiketd left the room.06:21:05
@h7x4:nani.wtfh7x4

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:matrix.orgalejandrosame
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:matrix.orgalejandrosame
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
@johannes.kirschbauer:scs.ems.hostJohannes Kirschbauer @hsjobeki
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:nani.wtfh7x4Cool, thanks!17:29:20
@alejandrosame:matrix.orgalejandrosame * 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
@noiobeforebedtime:winesj.comJack​ joined the room.23:44:44
26 Oct 2024
@plmh:matrix.orgplmh joined the room.05:20:11
@willbush:matrix.orgwillbush left the room.23:42:03
@willbush:matrix.orgwillbush joined the room.23:43:21
27 Oct 2024
@loher:matrix.orgLorenz joined the room.06:58:28
30 Oct 2024
@seapat:matrix.orgseapat left the room.07:49:55
1 Nov 2024
@gdesforges:matrix.orgGuillaume Desforges changed their profile picture.21:19:02
2 Nov 2024
@mel:rnrd.euMel joined the room.02:56:47
@isabel:isabelroses.comisabel changed their profile picture.10:07:46
4 Nov 2024
@Minijackson:matrix.orgMinijackson

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:matrix.orgfricklerhandwerkNice, this looks really good. Would definitely be great for nix.dev where we could integrate it right away.13:37:47
@Minijackson:matrix.orgMinijacksonI should work on getting it published and inside nixpkgs, then. Should the project be in nix-community?13:46:15
@Minijackson:matrix.orgMinijacksonNote 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:matrix.orgfricklerhandwerk 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:matrix.orgMinijackson
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:matrix.orgMinijacksonthis page then: https://nix.dev/tutorials/module-system/a-basic-module/ ?13:56:39
@Minijackson:matrix.orgMinijacksonor the deep dive?13:56:42
@fricklerhandwerk:matrix.orgfricklerhandwerk
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:matrix.orgMinijackson
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
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @Minijackson:matrix.org
this page then: https://nix.dev/tutorials/module-system/a-basic-module/ ?
Yeah that would work. Anything you like and is a quick win
13:57:17
5 Nov 2024
@asymmetric:matrix.dapp.org.ukasymmetric hey, just noticed that some of the links in this page are actually anchors to this article, i.e. they shouldn't be there 11:48:49
@asymmetric:matrix.dapp.org.ukasymmetric * hey, just noticed that some of the links on this page are actually anchors to this article, i.e. they shouldn't be there 11:49:05

Show newer messages


Back to Room ListRoom Version: 6