Commit 02aff756 authored by pennae's avatar pennae
Browse files

nixos/doc: remove optionsDocBook

these were deprecated in 23.11 and slated for removal in 24.05. 24.05 is
soon enough, so we should probably make good on this promise.
parent 14dc65b5
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
@@ -157,19 +157,5 @@ in rec {
      echo "file json-br $dst/options.json.br" >> $out/nix-support/hydra-build-products
    '';

  optionsDocBook = lib.warn "optionsDocBook is deprecated since 23.11 and will be removed in 24.05"
    (pkgs.runCommand "options-docbook.xml" {
      nativeBuildInputs = [
        pkgs.nixos-render-docs
      ];
    } ''
      nixos-render-docs -j $NIX_BUILD_CORES options docbook \
        --manpage-urls ${pkgs.path + "/doc/manpage-urls.json"} \
        --revision ${lib.escapeShellArg revision} \
        --document-type ${lib.escapeShellArg documentType} \
        --varlist-id ${lib.escapeShellArg variablelistId} \
        --id-prefix ${lib.escapeShellArg optionIdPrefix} \
        ${optionsJSON}/share/doc/nixos/options.json \
        "$out"
    '');
  optionsDocBook = throw "optionsDocBook has been removed in 24.05";
}