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

Conversation

fviernau
Copy link
Contributor

Add category as property so that it can be obtained without examining the individual files for each respective license.

See individual commits.

Re-generating the `docs` by utilizing [1] on my machine running Ubuntu
for ScanCode version `31.1.0` produces the same entries for the licenses but
differs in terms of their ordering compared to [1]. This is why I assume
that the ordering is not deterministic, but somehow dependends on the
host system.

Sort the license entries by their license key to ensure a deterministic
order independent of a host system. This leads to nicer diffs for
documentation updates.

[1] `make clean build`
[2] aboutcode-org@d29ed2c

Signed-off-by: Frank Viernau <[email protected]>
The generation logic has been changed so that license entries in
`index.html`, `index.json` and `index.yml` are ordered alphabetically
by their (license) key. Re-generate the index files to apply the new
order.

[1] `make clean build`

Signed-off-by: Frank Viernau <[email protected]>
Allow accessing the category without downloading the individual files
for each respective license.

Signed-off-by: Frank Viernau <[email protected]>
Bring in the property `category` added in a preceeding change.

Signed-off-by: Frank Viernau <[email protected]>
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @fviernau .

I'm also adding this to aboutcode-org/scancode-toolkit#3100 (which is in response to aboutcode-org/scancode-toolkit#2738) where the code will eventually belong.

AyanSinhaMahapatra added a commit to aboutcode-org/scancode-toolkit that referenced this pull request Sep 28, 2022
@AyanSinhaMahapatra AyanSinhaMahapatra merged commit 044bbae into aboutcode-org:main Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants