forked from lix-project/lix
![John Ericson](/assets/img/avatar_default.png)
They are put in the manual separate pages under the new overarching description of experimental features. The settings page just lists the valid experimental feature names (so people know what a valid setting entry looks like), with links to those pages. It doesn't attempt to describe each experimental feature as that is too much information for the configuration settings section.
22 lines
479 B
Nix
22 lines
479 B
Nix
xps:
|
|
|
|
with builtins;
|
|
with import ./utils.nix;
|
|
|
|
let
|
|
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";
|
|
|
|
in (listToAttrs featurePages) // { "SUMMARY.md" = tableOfContents; }
|