Browse Source

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

Fotis Voutsas 1 year ago
parent
commit
6d34c70cd8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      integrations/gen_docs_integrations.py

+ 3 - 1
integrations/gen_docs_integrations.py

@@ -146,14 +146,16 @@ def build_readme_from_integration(integration, mode=''):
             sidebar_label = integration['meta']['monitored_instance']['name']
             learn_rel_path = generate_category_from_name(
                 integration['meta']['monitored_instance']['categories'][0].split("."), categories)
-            # build the markdown string
+            most_popular = integration['meta']['most_popular']
 
+            # build the markdown string
             md = \
                 f"""<!--startmeta
 meta_yaml: "{meta_yaml}"
 sidebar_label: "{sidebar_label}"
 learn_status: "Published"
 learn_rel_path: "{learn_rel_path}"
+most_popular: {most_popular}
 message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
 endmeta-->