about summary refs log tree commit diff
path: root/nixos/doc
diff options
context:
space:
mode:
authorShahar "Dawn" Or <mightyiampresence@gmail.com>2023-07-12 18:50:47 +0700
committerShahar "Dawn" Or <mightyiampresence@gmail.com>2023-07-25 17:03:15 +0700
commita064709342b6adfcafe5bdcff3b5ace453359761 (patch)
tree53df37db251fc57e72c70fba1ac65f0a0129865a /nixos/doc
parenta49d40a00523a9ba6714d91f157c0c764b674230 (diff)
downloadnixlib-a064709342b6adfcafe5bdcff3b5ace453359761.tar
nixlib-a064709342b6adfcafe5bdcff3b5ace453359761.tar.gz
nixlib-a064709342b6adfcafe5bdcff3b5ace453359761.tar.bz2
nixlib-a064709342b6adfcafe5bdcff3b5ace453359761.tar.lz
nixlib-a064709342b6adfcafe5bdcff3b5ace453359761.tar.xz
nixlib-a064709342b6adfcafe5bdcff3b5ace453359761.tar.zst
nixlib-a064709342b6adfcafe5bdcff3b5ace453359761.zip
nixpkgs/NixOS manuals: devmode feature
Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
Diffstat (limited to 'nixos/doc')
-rw-r--r--nixos/doc/manual/contributing-to-this-manual.chapter.md2
-rw-r--r--nixos/doc/manual/shell.nix20
2 files changed, 22 insertions, 0 deletions
diff --git a/nixos/doc/manual/contributing-to-this-manual.chapter.md b/nixos/doc/manual/contributing-to-this-manual.chapter.md
index c306cc084cdb..4633c7e1b058 100644
--- a/nixos/doc/manual/contributing-to-this-manual.chapter.md
+++ b/nixos/doc/manual/contributing-to-this-manual.chapter.md
@@ -11,6 +11,8 @@ $ nix-build nixos/release.nix -A manual.x86_64-linux
 
 If the build succeeds, the manual will be in `./result/share/doc/nixos/index.html`.
 
+There's also [a convenient development daemon](https://nixos.org/manual/nixpkgs/unstable/#sec-contributing-devmode).
+
 **Contributing to the man pages**
 
 The man pages are written in [DocBook] which is XML.
diff --git a/nixos/doc/manual/shell.nix b/nixos/doc/manual/shell.nix
new file mode 100644
index 000000000000..70500a12b037
--- /dev/null
+++ b/nixos/doc/manual/shell.nix
@@ -0,0 +1,20 @@
+let
+  pkgs = import ../../.. {
+    config = {};
+    overlays = [];
+  };
+
+  common = import ./common.nix;
+  inherit (common) outputPath indexPath;
+
+  web-devmode = import ../../../pkgs/tools/nix/web-devmode.nix {
+    inherit pkgs;
+    buildArgs = "../../release.nix -A manualHTML.${builtins.currentSystem}";
+    open = "/${outputPath}/${indexPath}";
+  };
+in
+  pkgs.mkShell {
+    packages = [
+      web-devmode
+    ];
+  }