0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-17 03:02:41 +00:00

most_popular on markdown metadata for integrations ()

This commit is contained in:
Fotis Voutsas 2023-10-20 18:52:26 +03:00 committed by GitHub
parent cd65c4258e
commit 6d34c70cd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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-->