2023-04-06 16:24:11 +00:00
|
|
|
xps:
|
|
|
|
|
2023-04-05 02:57:11 +00:00
|
|
|
with builtins;
|
|
|
|
with import ./utils.nix;
|
|
|
|
|
|
|
|
let
|
2023-04-06 16:24:11 +00:00
|
|
|
makePage = { name, value }:
|
|
|
|
{
|
|
|
|
name = "${name}.md";
|
|
|
|
inherit value;
|
|
|
|
feature = name;
|
|
|
|
};
|
|
|
|
|
|
|
|
featurePages = map makePage (attrsToList xps);
|
|
|
|
|
|
|
|
tableOfContents = let
|
|
|
|
showEntry = page:
|
|
|
|
" - [${page.feature}](contributing/experimental-features/${page.name})";
|
|
|
|
in concatStringsSep "\n" (map showEntry featurePages) + "\n";
|
2023-04-05 02:57:11 +00:00
|
|
|
|
2023-04-06 16:24:11 +00:00
|
|
|
in (listToAttrs featurePages) // { "SUMMARY.md" = tableOfContents; }
|