Skip to content

Documents for scancode-license-data #4024 #4461

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

chinyeungli
Copy link
Contributor

Fixes #4024 - Added documentation for scancode-license-data

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

The failing tests don't related to the documentation updated in this PR.

Signed-off-by: Chin Yeung Li tli@nexb.com

Signed-off-by: Chin Yeung Li <tli@nexb.com>
Signed-off-by: Chin Yeung Li <tli@nexb.com>
This commit also alphabetizes the options list and reorders `scancode-reindex-licenses` options to match the help output.

Signed-off-by: Chin Yeung Li <tli@nexb.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.

Thanks @chinyeungli looks good.
See my comments for your consideration

@@ -1,23 +1,23 @@
``scancode-reindex-licenses`` Usage
-----------------------------------

Usage: ``scancode-reindex-licenses [OPTIONS]``
Copy link
Member

Choose a reason for hiding this comment

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

Isn't CLI scripts/othe CLI commands best be wrapped by `` so they are highlighted differently?

.. include:: /rst_snippets/scancode-license-data.rst


``--path`` Option:
Copy link
Member

Choose a reason for hiding this comment

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

This should be inside scancode-license-data.rst

.. include:: /rst_snippets/scancode-license-data.rst


``--path`` Option:
Copy link
Member

Choose a reason for hiding this comment

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

This should be inside scancode-license-data.rst

``--path`` Option:
^^^^^^^^^^^^^^^^^^

The ``--path`` option defines the directory where the license data will be stored.
Copy link
Member

Choose a reason for hiding this comment

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

Minor, but could you add a line that this is a mandatory option


The dumped licenses directory look like this::

licenses/
Copy link
Member

Choose a reason for hiding this comment

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

Could you also explain that this is available online at scancode-licensedb.aboutcode.org/ (generated from https://github.com/aboutcode-org/scancode-licensedb which is refreshed automatically from scancode each day on new commits) and that someone can open this on their browser locally after using scancode-license-data by doing see /path/index.html

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AyanSinhaMahapatra

someone can open this on their browser locally after using scancode-license-data by doing see /path/index.html

I don't understand what does this mean?

Perhaps I can simply say The license data is also avaliable at https://scancode-licensedb.aboutcode.org/ ?

Signed-off-by: Chin Yeung Li <tli@nexb.com>
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.

Document scancode-license-data in the console scripts section
2 participants