@cryptotaxi247 / netdata-1 / commits / 6d34c70cd

`most_popular` on markdown metadata for integrations (#16251)

Fotis Voutsas committed Oct 20, 2023 at 18:52 UTC 6d34c70cd838604e93aa5bde4d6715f70f227a87
1 file changed +3 -1
integrations/gen_docs_integrations.py
+3 -1
@@ -146,14 +146,16 @@ def build_readme_from_integration(integration, mode=''):
146 sidebar_label = integration['meta']['monitored_instance']['name']
147 learn_rel_path = generate_category_from_name(
148 integration['meta']['monitored_instance']['categories'][0].split("."), categories)
149 - # build the markdown string
149 + most_popular = integration['meta']['most_popular']
150
151 + # build the markdown string
152 md = \
153 f"""<!--startmeta
154 meta_yaml: "{meta_yaml}"
155 sidebar_label: "{sidebar_label}"
156 learn_status: "Published"
157 learn_rel_path: "{learn_rel_path}"
158 +most_popular: {most_popular}
159 message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
160 endmeta-->
161