Skip to content

Commit 044bbae

Browse files
Merge pull request #25 from fviernau/index-files-reorder-and-add-category
Re-order license entries in `index.*` files and add the `category` as property
2 parents d29ed2c + 75aa191 commit 044bbae

File tree

4 files changed

+29328
-27318
lines changed

4 files changed

+29328
-27318
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from licensedcode.models import load_licenses
3939
from scancode_config import __version__ as scancode_version
4040

41-
licenses = load_licenses(with_deprecated=True)
41+
licenses = dict(sorted(load_licenses(with_deprecated=True).items()))
4242

4343
# GitHub Pages support only /(root) or docs/ for the source
4444
BUILD_LOCATION = "docs"
@@ -78,6 +78,7 @@ def generate_indexes(output_path):
7878
"other_spdx_license_keys": license.other_spdx_license_keys,
7979
"is_exception": license.is_exception,
8080
"is_deprecated": license.is_deprecated,
81+
"category": license.category,
8182
"json": f"{key}.json",
8283
"yml": f"{key}.yml",
8384
"html": f"{key}.html",

0 commit comments

Comments
 (0)