Skip to content

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] d29ed2c Signed-off-by: Frank Viernau <frank_viernau@epam.com>
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 <frank_viernau@epam.com>
Allow accessing the category without downloading the individual files for each respective license. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Bring in the property `category` added in a preceeding change. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
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
Reference: aboutcode-org/scancode-licensedb#25 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@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

2 participants