!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

403 Members
Discussion about documentation improvements around the Nix ecosystem78 Servers

Load older messages


SenderMessageTime
14 Dec 2023
@jade_:matrix.org@jade_:matrix.orgsome of this stuff is legitimately just a matter of doing the work21:51:44
@raitobezarius:matrix.orgraitobezariusagreed21:52:17
@raitobezarius:matrix.orgraitobezariusit's good for realtime and is lossy because of missing indexation21:52:32
@jade_:matrix.org@jade_:matrix.orghttps://github.com/NixOS/nixos-homepage/issues/1191 filed a bug, i might do it myself in a week21:52:50
@infinisil:matrix.orginfinisil

jade_:

CONTRIBUTING.md is a guide level explanation of things, and is already too bloody long. It is the wrong place to provide reference level material about our vision for docs.

21:59:35
@infinisil:matrix.orginfinisilI recently made a big effort to make contributing documentation more coherent: https://github.com/NixOS/nixpkgs/pull/24524321:59:57
@jade_:matrix.org@jade_:matrix.org oh and re why it feels out of place on nix.dev, I am in favour of a just contributors site for which nobody feels shame adding sections or putting potentially less polished content on there, but maybe this is a misread of the values involved 21:59:59
@infinisil:matrix.orginfinisilContributing docs should be accessed from the source code as directly as possible, because this kind of thing keeps changing22:00:49
@infinisil:matrix.orginfinisilCompared to the user documentation, which needs to document stable interfaces22:01:11
@jade_:matrix.org@jade_:matrix.orgI think my perception of it being very long is also related to GitHub being somewhat troubled with respect to pleasantness of reading long markdown files (even though it even has a table of contents and such!)22:01:37
@infinisil:matrix.orginfinisilTotally in favor of splitting it up more btw22:02:10
@jade_:matrix.org@jade_:matrix.orgmaybe we could generate a site out of the nixpkgs source tree to make that nicer? I agree it's nice to have it in grep scope or nearby the code. looks like rustc people put it separately: https://github.com/rust-lang/rustc-dev-guide I'm kind of either way on this: having a site generated out of the nixpkgs source could potentially make it non-obvious that the thing is also available in nicer form on the web, and it might discourage contributions due to nixpkgs being huge and the various infelicities of github workflows on large repos. But this is not a strong opinion.22:05:35
@infinisil:matrix.orginfinisil jade_: Maybe we just need more page splitting, more overviews and more cross-linking in the markdown files 22:06:51
@jade_:matrix.org@jade_:matrix.orgyeah, I think mdbook would be nice for search among other things22:07:04
@jade_:matrix.org@jade_:matrix.orglike, having a nice sidebar also22:07:14
@jade_:matrix.org@jade_:matrix.orgbecause it's harder to do page splitting if you don't have nice search and navigation22:07:32
@infinisil:matrix.orginfinisilI guess contributor docs being rendered (as I described it in https://github.com/NixOS/nixpkgs/issues/244056) is the problem. Rather it's that older versions of the documentation is too easily accessible if it were in the user manuals22:08:11
@infinisil:matrix.orginfinisil * I guess contributor docs being rendered (as I described it in https://github.com/NixOS/nixpkgs/issues/244056) is the problem. Rather it's that older versions of the contributor documentation is too easily accessible if it were in the user manuals22:08:20
@jade_:matrix.org@jade_:matrix.org ah yeah, I am definitely not in favour of putting it in the user manual 22:08:35
@infinisil:matrix.orginfinisilThough using the GitHub markdown rendering is also kind of nice because it's one less thing to worry about and maintain22:09:05
@jade_:matrix.org@jade_:matrix.orgit's useful to delineate this because the style of writing for user manuals and contributor-only docs is rather different22:09:13
@jade_:matrix.org@jade_:matrix.orgi wonder if we could reuse the nix.dev code somehow without causing ourselves too much pain?22:09:25
@infinisil:matrix.orginfinisil I think ideally all .md files in Nixpkgs would be collected somehow and rendered together 22:10:20
@infinisil:matrix.orginfinisil (well, user docs are also written in .md, those shouldn't be included obviously) 22:11:16
@infinisil:matrix.orginfinisilOh, but alternatively, what if the render pipelines are separate, but the website puts them into a single document22:11:54
@infinisil:matrix.orginfinisil Such that when you go to nixos.org/manual/nixpkgs, it shows you both stable/unstable versions of the released user documentation, but also the latest contributor documentation from master 22:12:57
@infinisil:matrix.orginfinisilThis is generally what I think we should have: A single page that collects materials from different repos22:13:22
@infinisil:matrix.orginfinisilAnd actually we did make a step in that direction with nix.dev: https://nix.dev/reference/nix-manual22:13:41
@infinisil:matrix.orginfinisilI'd be in favor of making nix.dev be the centralised place for docs (but really all of Nix, see https://github.com/nix-rfc-canonical-domain/rfcs/blob/canonical-domain/rfcs/1000-canonical-domain.md)22:14:26
@jade_:matrix.org@jade_:matrix.org
In reply to @infinisil:matrix.org
Such that when you go to nixos.org/manual/nixpkgs, it shows you both stable/unstable versions of the released user documentation, but also the latest contributor documentation from master

maybe i am cynical (i read the sources nearly every time i have a docs query :V), but i am greatly most likely to read the contributing docs if they are a "dev only" site with a simplified contribution process that is quicker vs other docs.

i think i agree that nix is a different situation than rust with respect to the ratio of users to contributors, and this does change the calculus with respect to how much to promote the dev specific stuff

22:18:01

Show newer messages


Back to Room ListRoom Version: 6