aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/generate-xp-features.nix
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual/generate-xp-features.nix')
-rw-r--r--doc/manual/generate-xp-features.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/manual/generate-xp-features.nix b/doc/manual/generate-xp-features.nix
new file mode 100644
index 000000000..db1ba6092
--- /dev/null
+++ b/doc/manual/generate-xp-features.nix
@@ -0,0 +1,11 @@
+with builtins;
+with import ./utils.nix;
+
+let
+ showExperimentalFeature = name: doc:
+ squash ''
+ - <span id="xp-feature-${name}">[`${name}`](#xp-feature-${name})</span>
+
+ ${indent " " doc}
+ '';
+in xps: indent " " (concatStringsSep "\n" (attrValues (mapAttrs showExperimentalFeature xps)))