diff --git a/doc/manual/generate-builtin-constants.nix b/doc/manual/generate-builtin-constants.nix deleted file mode 100644 index 23ec2cb55..000000000 --- a/doc/manual/generate-builtin-constants.nix +++ /dev/null @@ -1,37 +0,0 @@ -let - inherit (builtins) concatStringsSep attrValues mapAttrs; - inherit (import ./utils.nix) optionalString squash; -in - -builtinsInfo: -let - showBuiltin = - name: - { - doc, - type, - impure-only, - }: - let - type' = optionalString (type != null) " (${type})"; - - impureNotice = optionalString impure-only '' - > **Note** - > - > Not available in [pure evaluation mode](@docroot@/command-ref/conf-file.md#conf-pure-eval). - ''; - in - squash '' -
- ${name}${type'} -
-
- - ${doc} - - ${impureNotice} - -
- ''; -in -concatStringsSep "\n" (attrValues (mapAttrs showBuiltin builtinsInfo)) diff --git a/doc/manual/generate-builtins.nix b/doc/manual/generate-builtins.nix deleted file mode 100644 index 60cba266b..000000000 --- a/doc/manual/generate-builtins.nix +++ /dev/null @@ -1,35 +0,0 @@ -let - inherit (builtins) concatStringsSep attrValues mapAttrs; - inherit (import ./utils.nix) optionalString squash; -in - -builtinsInfo: -let - showBuiltin = - name: - { - doc, - args, - arity, - experimental-feature, - }: - let - experimentalNotice = optionalString (experimental-feature != null) '' - This function is only available if the [${experimental-feature}](@docroot@/contributing/experimental-features.md#xp-feature-${experimental-feature}) experimental feature is enabled. - ''; - in - squash '' -
- ${name} ${listArgs args} -
-
- - ${doc} - - ${experimentalNotice} - -
- ''; - listArgs = args: concatStringsSep " " (map (s: "${s}") args); -in -concatStringsSep "\n" (attrValues (mapAttrs showBuiltin builtinsInfo))