diff --git a/doc/functions.xml b/doc/functions.xml
index 29b27d7d0dea..970367870eed 100644
--- a/doc/functions.xml
+++ b/doc/functions.xml
@@ -7,7 +7,6 @@
The nixpkgs repository has several utility functions to manipulate Nix expressions.
-
diff --git a/doc/manual.xml b/doc/manual.xml
index 525373a34272..31c507178a8a 100644
--- a/doc/manual.xml
+++ b/doc/manual.xml
@@ -10,6 +10,7 @@
Using Nixpkgs
+
diff --git a/doc/functions/overrides.xml b/doc/overrides.xml
similarity index 98%
rename from doc/functions/overrides.xml
rename to doc/overrides.xml
index 4ba4283c6094..991e13a1b828 100644
--- a/doc/functions/overrides.xml
+++ b/doc/overrides.xml
@@ -1,7 +1,7 @@
-
+ xml:id="chap-overrides">
Overriding
@@ -148,4 +148,4 @@ c = lib.makeOverridable f { a = 1; b = 2; };
The variable c however also has some additional functions, like c.override which can be used to override the default arguments. In this example the value of (c.override { a = 4; }).result is 6.
-
+