Skip to content

Commit

Permalink
put number of items in TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Oct 13, 2023
1 parent 78ce213 commit e349f47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/generate_link_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ def write_md(resources, title, filename):

with open(filename, 'w') as file:
print("Printing items of ", title)
file.write("# " + title + '\n')

num_items = len(resources.keys())

file.write(f"# {title} ({num_items})\n")

for name, properties in resources.items():
print("* ", name)
Expand Down

0 comments on commit e349f47

Please sign in to comment.