mirror of
https://github.com/netdata/netdata.git
synced 2025-04-17 03:02:41 +00:00
most_popular
on markdown metadata for integrations (#16251)
This commit is contained in:
parent
cd65c4258e
commit
6d34c70cd8
1 changed files with 3 additions and 1 deletions
|
@ -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-->
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue