NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.08k stars 1.47k forks source link

Broken links #10313

Open roberth opened 5 months ago

roberth commented 5 months ago

Describe the bug

I've found ~30 broken links in the manual with https://github.com/NixOS/nixpkgs/pull/298665

Steps To Reproduce

  1. Build the example in the linked docs

Expected behavior

A happy lychee.

nix-env --version output

Additional context

We've previously added some link checking, but it doesn't seem to work well, or not for anchors.

Priorities

Add :+1: to issues you find important.

fricklerhandwerk commented 2 months ago

To be more specific, to find the broken links, put this Nix file into the Git work tree:

# linkcheck.nix
with import <nixpkgs> { };
testers.lycheeLinkCheck { site = (import ./.).default.doc + "/share/doc/nix/manual"; }

and run

nix-build linkcheck.nix -v -I nixpkgs=channel:nixpkgs-unstable