summary refs log tree commit diff
diff options
context:
space:
mode:
authorasymmetric <lorenzo@mailbox.org>2023-09-14 17:09:39 +0200
committerGitHub <noreply@github.com>2023-09-14 17:09:39 +0200
commitb414f942e0379771422fd6e203a558ab7151eac5 (patch)
tree63ee37fae6e480fc804b1957c827822f9b75cfc7
parenta29cf4aece7ed0f497f600faec9614c6feb5159b (diff)
downloadnixpkgs-b414f942e0379771422fd6e203a558ab7151eac5.tar
nixpkgs-b414f942e0379771422fd6e203a558ab7151eac5.tar.gz
nixpkgs-b414f942e0379771422fd6e203a558ab7151eac5.tar.bz2
nixpkgs-b414f942e0379771422fd6e203a558ab7151eac5.tar.lz
nixpkgs-b414f942e0379771422fd6e203a558ab7151eac5.tar.xz
nixpkgs-b414f942e0379771422fd6e203a558ab7151eac5.tar.zst
nixpkgs-b414f942e0379771422fd6e203a558ab7151eac5.zip
doc: link, instead of just mentioning, Nix manual (#255126)
Instead of just telling the reader to go find the relevant section of the Nix
manual, let's just link to it. Yay hypertext!
-rw-r--r--doc/languages-frameworks/python.section.md4
-rw-r--r--doc/languages-frameworks/ruby.section.md3
-rw-r--r--doc/stdenv/meta.chapter.md2
-rw-r--r--doc/using/overlays.chapter.md2
4 files changed, 6 insertions, 5 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index 2ced6d69edd..e4a3a898f00 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -716,8 +716,8 @@ We've now seen how to create an ad-hoc temporary shell session, and how to
 create a single script with Python dependencies, but in the course of normal
 development we're usually working in an entire package repository.
 
-As explained in the Nix manual, `nix-shell` can also load an expression from a
-`.nix` file. Say we want to have Python 3.11, `numpy` and `toolz`, like before,
+As explained [in the `nix-shell` section](https://nixos.org/manual/nix/stable/command-ref/nix-shell) of the Nix manual, `nix-shell` can also load an expression from a `.nix` file.
+Say we want to have Python 3.11, `numpy` and `toolz`, like before,
 in an environment. We can add a `shell.nix` file describing our dependencies:
 
 ```nix
diff --git a/doc/languages-frameworks/ruby.section.md b/doc/languages-frameworks/ruby.section.md
index f1953500fa3..3a4c94de929 100644
--- a/doc/languages-frameworks/ruby.section.md
+++ b/doc/languages-frameworks/ruby.section.md
@@ -32,7 +32,8 @@ Again, it's possible to launch the interpreter from the shell. The Ruby interpre
 
 #### Load Ruby environment from `.nix` expression {#load-ruby-environment-from-.nix-expression}
 
-As explained in the Nix manual, `nix-shell` can also load an expression from a `.nix` file. Say we want to have Ruby 2.6, `nokogori`, and `pry`. Consider a `shell.nix` file with:
+As explained [in the `nix-shell` section](https://nixos.org/manual/nix/stable/command-ref/nix-shell) of the Nix manual, `nix-shell` can also load an expression from a `.nix` file.
+Say we want to have Ruby 2.6, `nokogori`, and `pry`. Consider a `shell.nix` file with:
 
 ```nix
 with import <nixpkgs> {};
diff --git a/doc/stdenv/meta.chapter.md b/doc/stdenv/meta.chapter.md
index b05dcd4c0a9..c187f0602a1 100644
--- a/doc/stdenv/meta.chapter.md
+++ b/doc/stdenv/meta.chapter.md
@@ -75,7 +75,7 @@ The name of the main binary for the package. This affects the binary `nix run` e
 
 ### `priority` {#var-meta-priority}
 
-The *priority* of the package, used by `nix-env` to resolve file name conflicts between packages. See the Nix manual page for `nix-env` for details. Example: `"10"` (a low-priority package).
+The *priority* of the package, used by `nix-env` to resolve file name conflicts between packages. See the [manual page for `nix-env`](https://nixos.org/manual/nix/stable/command-ref/nix-env) for details. Example: `"10"` (a low-priority package).
 
 ### `platforms` {#var-meta-platforms}
 
diff --git a/doc/using/overlays.chapter.md b/doc/using/overlays.chapter.md
index a51aa9ee8fc..6ee52215a4e 100644
--- a/doc/using/overlays.chapter.md
+++ b/doc/using/overlays.chapter.md
@@ -24,7 +24,7 @@ The list of overlays is determined as follows.
 
 2.  Otherwise, if the Nix path entry `<nixpkgs-overlays>` exists, we look for overlays at that path, as described below.
 
-    See the section on `NIX_PATH` in the Nix manual for more details on how to set a value for `<nixpkgs-overlays>.`
+    See the [section on `NIX_PATH`](https://nixos.org/manual/nix/stable/command-ref/env-common.html#env-NIX_PATH) in the Nix manual for more details on how to set a value for `<nixpkgs-overlays>.`
 
 3.  If one of `~/.config/nixpkgs/overlays.nix` and `~/.config/nixpkgs/overlays/` exists, then we look for overlays at that path, as described below. It is an error if both exist.