!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

438 Members
Discussion about documentation improvements around the Nix ecosystem93 Servers

Load older messages


SenderMessageTime
29 Jun 2023
@pennae:matrix.eno.spacepennaenope, ids must be unique within te entire manual16:51:01
@roberthensing:matrix.orgRobert Hensing (roberth)well that's an artificial restriction then16:51:16
@pennae:matrix.eno.spacepennae kind of. otherwise we won't be able to [](#link) them without having to duplicate knowledge of where they are 16:51:33
@roberthensing:matrix.orgRobert Hensing (roberth)most documentation systems do need the location to be part of the identifier, so it'd be a bit weird not to do that16:52:41
@pennae:matrix.eno.spacepennaeit definitely was not an artificial restriction in docbook, and for maintainability's sake we're very opposed to dropping it16:52:47
@roberthensing:matrix.orgRobert Hensing (roberth)yeah it's yet another project16:53:04
@pennae:matrix.eno.spacepennae
In reply to @roberthensing:matrix.org
most documentation systems do need the location to be part of the identifier, so it'd be a bit weird not to do that
arguably that just makes the location part of the id, which does not solve the underlying problem :/
16:53:49
@pennae:matrix.eno.spacepennaethe mismatch from input files to output files that we've now inherited from docbook complicates this even more16:55:37
@alejandrosame:matrix.orgalejandrosameScreenshot from 2023-06-29 18-05-37.png
Download Screenshot from 2023-06-29 18-05-37.png
17:11:12
@alejandrosame:matrix.orgalejandrosameSharing a screenshot of the WIP work on the nixpkgs manual Python section.17:12:09
@fricklerhandwerk:matrix.orgfricklerhandwerkHere's another piece for the survey regarding contributor workflow: https://floxdev.com/blog/nixpkgs-contribution22:37:45
30 Jun 2023
@sternenseemann:systemli.orgsterniwhy can’t nobody at flox proofread such articles (if they are even wise to publish in that context)? Couple of inaccuracies and multiple things that are wrong presented as facts.07:36:05
@drruhe:matrix.orgjakob joined the room.08:33:28
@ruby:isincredibly.gayruby changed their profile picture.14:02:47
@sandro:supersandro.deSandro 🐧FYI https://github.com/NixOS/nixpkgs/pull/24075416:15:47
@sternenseemann:systemli.orgsterni

pennae: maybe every md file for the manual could have an unique prefix assigned to it (e.g. haskell- for haskell.section.md). The md toolchain would then prefix every reference in the markdown file with that unless it is already prefixed. That would ensure unique anchors as long as the prefixes are unique.

Problem is of course that anchors would be changed, maybe we'd need to generously whitelist existing ones.

16:16:14
@sternenseemann:systemli.orgsterni *

pennae: maybe every md file for the manual could have an unique prefix assigned to it (e.g. haskell- for haskell.section.md). The md toolchain would then prefix every reference in the markdown file with that unless it is already prefixed. That would ensure unique anchors as long as the prefixes are unique.

Problem is of course that anchors would be changed, maybe we'd need to generously whitelist existing ones. Still seems better than uuids.

Personally I'd also just be fine with a linter that checks for link uniqueness

16:16:37
@pennae:matrix.eno.spacepennaethat's an option too, though we'd have to include the path of the file from the doc root instead of just the file name itself (and that can get pretty long)16:42:55
@pennae:matrix.eno.spacepennae nrd already checks for uniqueness and throws an error on duplicates, but that's a pretty bad experience. and the anchors that are likely to be problematic are exactly the ones that don't convey meaning 16:43:37
@sternenseemann:systemli.orgsterni pennae: just have a list 16:55:11
@sternenseemann:systemli.orgsterniwell then just have meaningful anchors :)16:55:47
@pennae:matrix.eno.spacepennae
In reply to @sternenseemann:systemli.org
well then just have meaningful anchors :)
tell docs authors that D:
16:58:10
@pennae:matrix.eno.spacepennae like. te python chapter has a section with the id faq 16:58:52
@pennae:matrix.eno.spacepennae * like. the python chapter has a section with the id faq 16:59:05
@pennae:matrix.eno.spacepennaethat has been the in-html id for at least a very long time, possibly forever16:59:23
@sternenseemann:systemli.orgsterniI think checking for such things in the manual build is the best solution17:02:52
@sternenseemann:systemli.orgsterniit may always fail, after all17:02:59
@pennae:matrix.eno.spacepennaewe do check, and it has failed in the past17:04:26
@pennae:matrix.eno.spacepennaeat least now it can tell you where shit broke instead of having relaxng slap you with entirely incorrect error locations and messages that aren't worth the photons they're imprinted on17:05:41
1 Jul 2023
@pennae:matrix.eno.spacepennaenixdoc changes for nixpkgs markdowning are merged 🥳12:42:41

Show newer messages


Back to Room ListRoom Version: 6