-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Describe active experimental features in the contributing guide
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.
- Loading branch information
1 parent
6c4049b
commit bc192a9
Showing
8 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
with builtins; | ||
with import ./utils.nix; | ||
|
||
let | ||
showExperimentalFeature = name: doc: | ||
'' | ||
- [`${name}`](@docroot@/contributing/experimental-features/${name}.md) | ||
''; | ||
in xps: indent " " (concatStrings (attrValues (mapAttrs showExperimentalFeature xps))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
xps: | ||
|
||
with builtins; | ||
with import ./utils.nix; | ||
|
||
let | ||
showExperimentalFeature = name: doc: | ||
squash '' | ||
- <span id="xp-feature-${name}">[`${name}`](#xp-feature-${name})</span> | ||
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"; | ||
|
||
${indent " " doc} | ||
''; | ||
in xps: indent " " (concatStringsSep "\n" (attrValues (mapAttrs showExperimentalFeature xps))) | ||
in (listToAttrs featurePages) // { "SUMMARY.md" = tableOfContents; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters