aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/generate-features.nix
blob: 4a12ccdce7f261a3753cade9ba4120e7b33aea4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Usually "experimental" or "deprecated"
_kind:
# "xp" or "dp"
kindShort:

with builtins;
with import ./utils.nix;

let
  showFeature =
    name: doc:
    squash ''
      ## [`${name}`]{#${kindShort}-feature-${name}}

      ${doc}
    '';
in
xps: (concatStringsSep "\n" (attrValues (mapAttrs showFeature xps)))