about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-09-03 00:45:37 +0200
committeraszlig <aszlig@nix.build>2018-09-03 00:45:37 +0200
commit7c717a4f6fa868019e21e7a335207d75be9e2209 (patch)
tree87a031b873c267d64f475bcf2589219ae955665d /release.nix
parent3afb1cfeb336d0b2209ebd86c9318dac8cdf6525 (diff)
release/manual: Fix generating option descriptions
The NixOS option descriptions are now splitted into <para/> elements
whenever a \n\n occurs. For this an intermediate step is necessary, so
we need to add the postprocessing XSLT here as well.

This is the upstream commit that changed this behavior:

https://github.com/NixOS/nixpkgs/commit/f865d0feabfafbb30a9e0659e19a30cb

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/release.nix b/release.nix
index a717341d..14179fc6 100644
--- a/release.nix
+++ b/release.nix
@@ -202,9 +202,12 @@ in with pkgsUpstream.lib; with builtins; {
     buildCommand = ''
       cp -r "${./doc}" doc
       chmod -R +w doc
-      xsltproc -o doc/options-db.xml \
+      xsltproc -o intermediate.xml \
         "${nixpkgs}/nixos/doc/manual/options-to-docbook.xsl" \
         ${optionsFile}
+      xsltproc -o doc/options-db.xml \
+        "${nixpkgs}/nixos/doc/manual/postprocess-option-descriptions.xsl" \
+        intermediate.xml
 
       dest="$out/share/doc/vuizvui"
       mkdir -p "$dest"