Skip to content

Commit

Permalink
Add menu at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulcollenteur committed Sep 25, 2024
1 parent 036584a commit 134fcef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions generate_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ def generate_list():
categories[category] = []
categories[category].append((package_name, package))

# Write the menu with links to categories
file.write("## Categories\n")
for category in sorted(categories.keys()):
file.write(f"- [{category}](#{category.lower().replace(' ', '-')})\n")
if legacy_packages:
file.write("- [Legacy Packages](#legacy-packages)\n")
file.write("\n")

for category, packages in categories.items():
packages.sort(
key=lambda x: x[0].lower()
Expand Down
12 changes: 6 additions & 6 deletions list.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@
"url": "https://github.com/pySTEPS/pysteps",
"category": "Meteorological tools",
"docs": "https://pysteps.readthedocs.io/en/stable/",
"CI": 0,
"CI": 1,
"last_update": "2024-08-27T09:33:00",
"pypi": "https://pypi.org/project/PySteps/",
"doi_software": "",
"doi_paper": "",
"doi_software": "https://zenodo.org/badge/latestdoi/140263418",
"doi_paper": "https://doi.org/10.5194/gmd-12-4185-2019",
"conda": "https://anaconda.org/conda-forge/PySteps",
"version": "1.11.0",
"legacy": ""
"legacy": 0
},
"Evaporation": {
"description": "Calculation of evaporation and transpiration.",
Expand Down Expand Up @@ -424,14 +424,14 @@
"url": "https://github.com/phydrus/pyet",
"category": "Meteorological tools",
"docs": "https://pyet.readthedocs.io/",
"CI": 0,
"CI": 1,
"last_update": "2024-03-15T14:50:40",
"pypi": "https://pypi.org/project/pyet/",
"doi_software": "https://zenodo.org/doi/10.5281/zenodo.5896799",
"doi_paper": "https://doi.org/10.5194/gmd-17-7083-2024",
"conda": "https://anaconda.org/conda-forge/pyet",
"version": "1.3.1",
"legacy": ""
"legacy": 0
},
"SPEI": {
"description": "Calculate and visualize some popular drought indices such as the SPI, SPEI and SGI.",
Expand Down

0 comments on commit 134fcef

Please sign in to comment.