Skip to content

Commit

Permalink
most_popular on markdown metadata for integrations (netdata#16251)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancairon authored Oct 20, 2023
1 parent cd65c42 commit 6d34c70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integrations/gen_docs_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-->
Expand Down

0 comments on commit 6d34c70

Please sign in to comment.