Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-order license entries in index.* files and add the category as property #25

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from licensedcode.models import load_licenses
from scancode_config import __version__ as scancode_version

licenses = load_licenses(with_deprecated=True)
licenses = dict(sorted(load_licenses(with_deprecated=True).items()))

# GitHub Pages support only /(root) or docs/ for the source
BUILD_LOCATION = "docs"
Expand Down Expand Up @@ -78,6 +78,7 @@ def generate_indexes(output_path):
"other_spdx_license_keys": license.other_spdx_license_keys,
"is_exception": license.is_exception,
"is_deprecated": license.is_deprecated,
"category": license.category,
"json": f"{key}.json",
"yml": f"{key}.yml",
"html": f"{key}.html",
Expand Down
Loading