1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 11:10:03 +00:00

doc: Move "This is equivalent to" into example block

This patch moves the code snippet which is shown as equivalent to the
example into the actual example block.

Visually, it was not easy to parse that the "equivalent" code piece
belonged to the code snippet that was hidden in the example (which is
collapsed by default).

By moving it into the example block, the "equivalent" piece is hidden by
default as well.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2024-08-28 10:55:49 +02:00 committed by Valentin Gagarin
parent 695088a544
commit f78adb0891

View file

@ -533,7 +533,6 @@ writeScript "my-file"
Contents of File
''
```
:::
This is equivalent to:
@ -546,6 +545,7 @@ writeTextFile {
executable = true;
}
```
:::
### `writeScriptBin` {#trivial-builder-writeScriptBin}