!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

420 Members
Discussion about documentation improvements around the Nix ecosystem86 Servers

Load older messages


SenderMessageTime
13 Jul 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @jtojnar:matrix.org
Or write [`foo(5)`][foo(5)] which is IMO even worse for writers than the MyST role.

Have we considered

[`foo(5)`][]

[`foo(5)`]: http://b.org

?

11:08:40
@blaggacao:matrix.orgDavid Arnold (blaggacao)That's how I would intuitively write it, probably even with a MyST role in place.11:13:55
@blaggacao:matrix.orgDavid Arnold (blaggacao)Maybe aome sort of pre-processor will do that has some sort of mapping for the actual links and adds the last link line.11:15:21
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Maybe some sort of pre-processor will do that has some sort of mapping for the actual links and adds the last link line.11:15:56
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Maybe some sort of pre-processor would do that has some sort of mapping for the actual links and adds the last link line.11:16:09
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Have we considered ```markdown [`foo(5)`][] ⋮ [`foo(5)`]: http://b.org ``` ?11:17:56
@jtojnar:matrix.orgJan Tojnar David Arnold: Interesting, did not realize that the implicit link names were already part of the original Markdown. 12:30:37
@jtojnar:matrix.orgJan TojnarThough linking by “form” feels kind of backwards to me – the empty link text being filled in from the link target automatically is intuitive for me; magically guessing link target from link label feels weird. Granted, I was never fan of reference-style links.12:30:40
@jtojnar:matrix.orgJan Tojnar
In reply to @blaggacao:matrix.org
Maybe some sort of pre-processor would do that has some sort of mapping for the actual links and adds the last link line.
This syntax would currently require concating all md files with the mapping (just like the [][foo(5)] syntax) but resolving would be slightly cleaner – just replace the Str "[", Code …, Str "][]" sequence in AST by Code … (for the links that did not resolve).
12:34:43
@b:chreekat.netchreekat Jan Tojnar: what you ask for is what happens with no syntax whatsoever, isn't it? :) A bare url is automatically converted to a link? 12:48:50
@jtojnar:matrix.orgJan Tojnar bryan: not sure I understand – we would have manpage references and the mapping would contain URLs only for some of them 12:51:28
@jtojnar:matrix.orgJan Tojnar or do you mean this bare url syntax <man:foo(5)>? That would be nice alternative too IMO. 12:55:32
@b:chreekat.netchreekatAh my mistake. I thought you were talking about actual urls13:02:56
@ryantm:matrix.orgryantm It's too bad the [foo(5)][] looks so ugly when there is no link available. 13:15:23
@ryantm:matrix.orgryantm * It's too bad the [\foo(5)`][]` looks so ugly when there is no link available. 13:15:39
@ryantm:matrix.orgryantm *

It's too bad the `

[`foo(5)`][]` looks so ugly when there is no link available.
13:15:57
@ryantm:matrix.orgryantm *

It's too bad the

[`foo(5)`][] 

looks so ugly when there is no link available.

13:16:13
14 Jul 2021
@pixelfog:matrix.orgpixelfogI'm looking for recommendations on how to view old versions of the nixpkgs manual, e.g. 18.09. I tried building it from my own checkout, but I can't build the 18.09 version of the manual with the 21.05 version of nix-build. I tried to build the 18.09 manual with the 18.09 version of nix-build, but I haven't figured out how to do that.18:03:27
@ryantm:matrix.orgryantm pixelfog: Why do you want to build it? 20:22:33
@ryantm:matrix.orgryantmRedacted or Malformed Event20:23:13
@ryantm:matrix.orgryantm * ~~By default, the NixOS manual gets built every time you build NixOS, so if you have a system on 18.09 it should have the manual lying around in the nix store.~~ Edit: oops you said nixpkgs manual.20:23:33
@ryantm:matrix.orgryantm *
20:23:42
15 Jul 2021
@pixelfog:matrix.orgpixelfog
In reply to @ryantm:matrix.org
pixelfog: Why do you want to build it?

I don't necessarily want to build it. I just want to view it. I had been looking at the nixos.org/manual documentation, but I was confused by the "packages" attribute that was being passed to nix-shell. I couldn't see how it was being used. Eventually, I figured out that it hadn't been added to nixpkgs until May 2021. So it seems like being able to view the documentation that matches the nixpkgs commit I'm using would be a good idea.

As to why I'm using 18.09, it's because I have some Python2.7 code that runs fine on Ubuntu 18.04, and I'd like to package it for Nix before I port it to python3. So I picked 18.09 because it's around the same age as Ubuntu 18.04, and presumably would have roughly similar library versions.

00:06:44
@pixelfog:matrix.orgpixelfog
In reply to @ryantm:matrix.org
pixelfog: Why do you want to build it?
*

I don't necessarily want to build it. I just want to view it. I had been looking at the nixos.org/manual documentation, but I was confused by the "packages" attribute that was in the nix-shell examples in the manual. I couldn't see how it was being used. Eventually, I figured out that it hadn't been added to nixpkgs until May 2021. So it seems like being able to view the documentation that matches the nixpkgs commit I'm using would be a good idea.

As to why I'm using 18.09, it's because I have some Python2.7 code that runs fine on Ubuntu 18.04, and I'd like to package it for Nix before I port it to python3. So I picked 18.09 because it's around the same age as Ubuntu 18.04, and presumably would have roughly similar library versions.

00:07:52
@pixelfog:matrix.orgpixelfogIf there's a place that has the old versions of the manuals, already built, that would be completely sufficient for my purposes.00:09:12
@ryantm:matrix.orgryantmSeems kind of likely they are in the Internet Archive, but I don't know what URL they are at.00:10:01
@ryantm:matrix.orgryantmHere's the 18.03 manual http://web.archive.org/web/20180612014125/https://nixos.org/nixpkgs/manual/index.html00:11:24
@pixelfog:matrix.orgpixelfogHmm...good point.00:11:40
@pixelfog:matrix.orgpixelfog
In reply to @ryantm:matrix.org
Here's the 18.03 manual http://web.archive.org/web/20180612014125/https://nixos.org/nixpkgs/manual/index.html
Thanks!
00:11:50
20 Jul 2021
@ldesgoui:matrix.orgldesgoui joined the room.14:36:53

Show newer messages


Back to Room ListRoom Version: 6