diff --git a/_layouts/formula.html b/_layouts/formula.html index 711378446441..7afd00196668 100644 --- a/_layouts/formula.html +++ b/_layouts/formula.html @@ -233,3 +233,42 @@ {%- endfor -%} {%- endfor %} + + +{%- if f.variations.size > 0 -%} +

Dependencies:

+ + + + + + {%- for variation in f.variations -%} + + + + + {%- endfor -%} +
OSDependencies
{{ variation[0] | capitalize }} + {%- for dep in variation[1].dependencies -%} + {{ dep | escape }} + {%- unless forloop.last -%}, {% endunless -%} + {%- endfor -%} +
+{%- endif -%} + + +{%- if f.caveats -%} +

Caveats:

+ + + + + + {%- for variation in f.variations -%} + + + + + {%- endfor -%} +
OSCaveats
{{ variation[0] | capitalize }}{{ variation[1].caveats | escape }}
+{%- endif -%} diff --git a/_layouts/formula_json.json b/_layouts/formula_json.json index 8c1f96477822..d68b7d5d3e68 100644 --- a/_layouts/formula_json.json +++ b/_layouts/formula_json.json @@ -36,4 +36,12 @@ {%- endunless -%} {%- endfor -%} }, +"dependencies":{ + "macos":{{ fdata.dependencies.macos | jsonify }}, + "linux":{{ fdata.dependencies.linux | jsonify }} +}, +"caveats":{ + "macos":{{ fdata.caveats.macos | jsonify }}, + "linux":{{ fdata.caveats.linux | jsonify }} +}, "generated_date":"{{ "today" | date: "%F" }}"}