about summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-06-13 12:21:38 +0200
committerpennae <github@quasiparticle.net>2023-06-13 16:56:32 +0200
commitf52f531a4e4791f79902ed3f4162bfd8ae899c01 (patch)
tree4a7bef264e1bfb61f8dca80ec515220988528e8b /nixos/modules/misc
parentd36f950d405369abca5144b14a201bc25c4a080a (diff)
downloadnixlib-f52f531a4e4791f79902ed3f4162bfd8ae899c01.tar
nixlib-f52f531a4e4791f79902ed3f4162bfd8ae899c01.tar.gz
nixlib-f52f531a4e4791f79902ed3f4162bfd8ae899c01.tar.bz2
nixlib-f52f531a4e4791f79902ed3f4162bfd8ae899c01.tar.lz
nixlib-f52f531a4e4791f79902ed3f4162bfd8ae899c01.tar.xz
nixlib-f52f531a4e4791f79902ed3f4162bfd8ae899c01.tar.zst
nixlib-f52f531a4e4791f79902ed3f4162bfd8ae899c01.zip
nixos/make-options-doc: deprecate docbook outputs
they're no longer necessary for us and will almost definitely start to
rot now (like commonmark and asciidoc outputs did previously). most
existing users seem to take the docbook output and run it through pandoc
to generate html, those can easily migrate to use commonmark instead.
other users will hopefully pipe up when they notice that things they rely
on are going away.

optionsUsedDocbook has only been around for one release and only exposed
to allow other places to generate warnings, so that does not deserve
such precautions.
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/documentation.nix8
1 files changed, 0 insertions, 8 deletions
diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix
index e6a56a8cdf28..820450e3ce2a 100644
--- a/nixos/modules/misc/documentation.nix
+++ b/nixos/modules/misc/documentation.nix
@@ -345,14 +345,6 @@ in
     (mkIf cfg.nixos.enable {
       system.build.manual = manual;
 
-      system.activationScripts.check-manual-docbook = ''
-        if [[ $(cat ${manual.optionsUsedDocbook}) = 1 ]]; then
-          echo -e "\e[31;1mwarning\e[0m: This configuration contains option documentation in docbook." \
-                  "Support for docbook is deprecated and will be removed after NixOS 23.05." \
-                  "See nix-store --read-log ${builtins.unsafeDiscardStringContext manual.optionsJSON.drvPath}"
-        fi
-      '';
-
       environment.systemPackages = []
         ++ optional cfg.man.enable manual.manpages
         ++ optionals cfg.doc.enable [ manual.manualHTML nixos-help ];