Commit Graph
814021 Commits
Author SHA1 Message Date
Rebecca Turner 014ca1cc3d nixos-render-docs: Display relevant source for errors
Most of the error messages in `nixos-render-docs` produce line numbers,
which would be really helpful if the sources being rendered weren't
often generated from `.nix` files themselves!

While the Python `markdown_it` library doesn't give us an obvious way to
track source provenance like this (i.e., mapping source spans in the
generated files to source spans in the input files), we can make the
errors a lot clearer by displaying the relevant lines from the source.

Below, an error message caused by a missing `:::` is made obvious by
displaying the span that composes the block being rendered, rather than
pointing only at the offending title.

Before:

```
caused by:
        unexpected non-title heading in example in line 87
```

After:

```
caused by:
unexpected non-title heading in `:::{.example}`; are you missing a `:::`?
Note: blocks like `:::{.example}` are only allowed to contain a single heading in order to simplify TOC generation.

`:::{.example}` block at lines 76-112:
  73 ┆ ```
  74 ┆
  75 ┆ ### Examples
  76 ┃ :::{.example}
  77 ┃ #### `lib.debug.traceValFn` usage example
  78 ┃
  79 ┃ ```nix
  80 ┃ traceValFn (v: "mystring ${v}") "foo"
  81 ┃ trace: mystring foo
  82 ┃ => "foo"
  83 ┃ ```
  84 ┃
  85 ┃ Located at [lib/debug.nix:106](https://github.com/NixOS/nixpkgs/blob/master/lib/debug.nix#L106) in `<nixpkgs>`.
     ...
 103 ┃ ### Examples
 104 ┃ :::{.example}
 105 ┃ #### `lib.debug.traceVal` usage example
 106 ┃
 107 ┃ ```nix
 108 ┃ traceVal 42
 109 ┃ # trace: 42
 110 ┃ => 42
 111 ┃ ```
 112 ┃
 113 ┆ :::
 114 ┆
 115 ┆ Located at [lib/debug.nix:135](https://github.com/NixOS/nixpkgs/blob/master/lib/debug.nix#L135) in `<nixpkgs>`.

Unexpected heading at line 87:
  84 ┆
  85 ┆ Located at [lib/debug.nix:106](https://github.com/NixOS/nixpkgs/blob/master/lib/debug.nix#L106) in `<nixpkgs>`.
  86 ┆
  87 ┃ ## `lib.debug.traceVal` {#function-library-lib.debug.traceVal}
  88 ┆
  89 ┆ Trace the supplied value and return it.
  90 ┆
```
2025-06-12 17:55:21 -07:00
R. RyantmandMasum Reza 599ee12162 linkerd_edge: 25.5.4 -> 25.6.1 2025-06-12 22:06:52 +05:30
Louis BailleauandMasum Reza ee0d81725c microsoft-edge: add maintainer bricklou 2025-06-12 22:04:41 +05:30
Louis BailleauandMasum Reza 6fc564691d maintainers: add bricklou 2025-06-12 22:04:41 +05:30
C4 PatinoandMasum Reza aeac5ac60c maintainers: update c4thebomb -> c4patino and add gpg key 2025-06-12 22:04:22 +05:30
misuzuandGitHub 854aa2f959 snac2: 2.77 -> 2.78 (#415273) 2025-06-12 19:33:24 +03:00
Jon SeagerandGitHub d86629986a python3Packages.craft-store: 3.2.1 -> 3.2.2 (#416162) 2025-06-12 17:32:39 +01:00
AleksanaandGitHub bf4da258e0 Revert "linux-builder: remove DNS hack for libslirp" (#416187) 2025-06-13 00:29:10 +08:00
toonnandGitHub cbcf97d451 nb: 7.19.1 -> 7.20.0 (#415971) 2025-06-12 18:21:31 +02:00
John Titor 23aaa2a7dc uwsm: 0.21.6 -> 0.21.8 2025-06-12 21:49:20 +05:30
Ihar Hrachyshka 6fa85aa683 Revert "linux-builder: remove DNS hack for libslirp"
Resolution still fails when on VPN with no IPv6 DNS servers. We'll need
to investigate further why the fix doesn't help in this case.

This reverts commit f90236a8f2.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-06-12 12:07:17 -04:00
8d6cdc7756 shopware-cli: 0.6.3 -> 0.6.8 (#416110)
Co-authored-by: shyim <github@shyim.de>
2025-06-12 15:53:38 +00:00
Bobby RongandGitHub b8ca0f7155 pantheon.xdg-desktop-portal-pantheon: 8.0.1 -> 8.0.2 (#415856) 2025-06-12 23:47:42 +08:00
dotlambdaandGitHub ab9b79919e python3Packages.aiokem: 1.0.1 -> 1.1.4 (#416109) 2025-06-12 08:34:10 -07:00
dotlambdaandGitHub 701d12ec61 python3Packages.google-maps-routing: 0.6.15 -> 0.6.16 (#416107) 2025-06-12 08:32:49 -07:00
dotlambdaandGitHub d99739995f python3Packages.panphon: 0.21.2 -> 0.22.0 (#412717) 2025-06-12 08:23:03 -07:00
R. RyanTMandGitHub a015ccdfde meerk40t: 0.9.7030 -> 0.9.7051 (#416168)
https://github.com/meerk40t/meerk40t/releases/tag/0.9.7040
https://github.com/meerk40t/meerk40t/releases/tag/0.9.7050
https://github.com/meerk40t/meerk40t/releases/tag/0.9.7051
2025-06-12 17:06:42 +02:00
Peder Bergebakken SundtandGitHub 41c71175dc fan2go: 0.9.0 -> 0.10.0 (#405283) 2025-06-12 16:45:14 +02:00
AleksanaandGitHub b36cd27bcd t1lib: drop (#416001) 2025-06-12 22:39:23 +08:00
AleksanaandGitHub a4f2cc0ea8 streamripper: fix build (#415992) 2025-06-12 22:27:55 +08:00
Peder Bergebakken SundtandGitHub 780f0c790e hoppscotch: improve update script (#404828) 2025-06-12 16:20:31 +02:00
Michael Daniels 959cf4ce56 streamripper: fix build
It broke with gcc 14. As a bonus, I also fetch a bugfix patch.
2025-06-12 10:19:52 -04:00
R. Ryantm 25145eecee python3Packages.craft-store: 3.2.1 -> 3.2.2 2025-06-12 14:19:00 +00:00
Peder Bergebakken SundtandGitHub 616387c5f3 vault-tasks: 0.11.2 -> 0.12.0 (#414695) 2025-06-12 16:15:07 +02:00
Peder Bergebakken SundtandGitHub 2d6dbce453 megasync: 5.9.0.3 -> 5.12.0.1 (#413878) 2025-06-12 16:07:42 +02:00
Peder Bergebakken SundtandGitHub 1cf88f3860 beekeeper-studio: 5.2.9 -> 5.2.12 (#413510) 2025-06-12 16:06:48 +02:00
Peder Bergebakken SundtandGitHub 80cf90dfd9 pritunl-client: 1.3.4220.57 -> 1.3.4275.94 (#415816) 2025-06-12 16:00:21 +02:00
Matthew Toohey c88e955e02 fan2go: 0.9.0 -> 0.10.0 2025-06-12 09:57:51 -04:00
AleksanaandGitHub f6b0d7c78c sums: 0.13 -> 0.15 (#416133) 2025-06-12 21:56:18 +08:00
Peder Bergebakken SundtandGitHub 0015082350 git-machete: 3.34.1 -> 3.36.0 (#409291) 2025-06-12 15:54:41 +02:00
Peder Bergebakken SundtandGitHub 86b5a39e4e trufflehog: 3.89.0 -> 3.89.1 (#415910) 2025-06-12 15:52:46 +02:00
Pol DellaieraandGitHub 3f2c4735c2 vscode-extensions.ms-kubernetes-tools.vscode-kubernetes-tools: 1.3.23 -> 1.3.24 (#416136) 2025-06-12 15:52:39 +02:00
Peder Bergebakken SundtandGitHub 85eb8fa799 fastly: 11.2.0 -> 11.3.0 (#415940) 2025-06-12 15:51:36 +02:00
Peder Bergebakken SundtandGitHub 6f656f206f yafc-ce: 2.11.1 -> 2.13.0 (#415000) 2025-06-12 15:48:47 +02:00
Thiago Kenji OkadaandGitHub 6b74a79ac0 nixos-rebuild-ng: run systemd-run with / as the working directory (#416132) 2025-06-12 14:41:38 +01:00
Maximilian BoschandGitHub 562fcb28d7 Merge: nextcloud: 30.0.11 -> 30.0.12, 31.0.5 -> 31.0.6 (#416098) 2025-06-12 15:37:41 +02:00
Peder Bergebakken SundtandGitHub 22e95fb3a1 nanovna-saver: 0.6.8 -> 0.7.3 (#415518) 2025-06-12 15:33:13 +02:00
Emily TrauandGitHub bc0b002f0b ghidra-extensions.kaiju: 250417 -> 250610 (#415734) 2025-06-12 23:30:53 +10:00
Peder Bergebakken SundtandGitHub fb85ed7c88 firefly-iii-data-importer: 1.6.1 -> 1.6.3 (#415606) 2025-06-12 15:28:48 +02:00
Peder Bergebakken SundtandGitHub ab2a6c5143 hyprlandPlugins.hyprsplit: 0.48.1-unstable-2025-05-03 -> 0.49.0 (#415722) 2025-06-12 15:27:02 +02:00
Connor BakerandGitHub 40f1bb6275 arrayUtilities: init (#385960) 2025-06-12 06:26:14 -07:00
Peder Bergebakken SundtandGitHub 9a4b659b72 app2unit: 0-unstable-2025-05-09 -> 0.9.0 (#415367) 2025-06-12 15:25:10 +02:00
R. RyantmandFrancesco Gazzetta ba8c11452c vengi-tools: 0.0.37 -> 0.0.38 2025-06-12 13:14:49 +00:00
Peder Bergebakken SundtandGitHub 916b72f3f5 tea: 0.9.2 -> 0.10.0 (#415644) 2025-06-12 15:13:23 +02:00
Peder Bergebakken SundtandGitHub ef1c5f4cf4 goreleaser: 2.9.0 -> 2.10.2 (#415637) 2025-06-12 15:12:31 +02:00
R. RyantmandFrancesco Gazzetta af85799d54 shattered-pixel-dungeon: 3.0.2 -> 3.1.0 2025-06-12 13:12:13 +00:00
Peder Bergebakken SundtandGitHub b4db11e619 xscope: 1.4.1 -> 1.4.5 (#414354) 2025-06-12 15:11:40 +02:00
Peder Bergebakken SundtandGitHub 872a4d29b0 xdg-ninja: 0.2.0.2 -> 0.2.0.2-unstable-2025-03-09 (#400376) 2025-06-12 15:08:57 +02:00
Thomas LaichandGitHub dd5c207ebf csharpier: 0.30.6 -> 1.0.2 (#413857)
* csharpier: 0.30.6 -> 1.0.2

* fix meta
2025-06-12 15:07:44 +02:00
Peder Bergebakken SundtandGitHub 15cdc3846d coq-lsp: 0.2.2 -> 0.2.3 (#415541) 2025-06-12 15:06:26 +02:00