Skip to content

Add Final Improvements/Changes before Migrating - #33

Merged
steven-esser merged 7 commits into
aboutcode-org:masterfrom
AyanSinhaMahapatra:update-docs
Nov 25, 2019
Merged

Add Final Improvements/Changes before Migrating#33
steven-esser merged 7 commits into
aboutcode-org:masterfrom
AyanSinhaMahapatra:update-docs

Conversation

@AyanSinhaMahapatra

Copy link
Copy Markdown
Member

This PR essentially solves all issues mentioned in #32 and adds other final changes before migration.
[Work In Progress]

Signed-off-by: Ayan Sinha Mahapatra ayansmahapatra@gmail.com

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
This commit adds support for pip install and Python 3 install methods. Also standardizes scan commands
across the docs.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
This adds Intersphinx related docs and seperates scancode-toolkit doc contributing page from
the aboutcode page.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is looking quite good to me! 👍

Tell me when you want me to merge this.

@AyanSinhaMahapatra

Copy link
Copy Markdown
Member Author

@pombredanne I'll push some more changes in a couple of hours, for you to review. :)

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Comment on lines 38 to 45
Documentation Support
^^^^^^^^^^^^^^^^^^^^^

``pip install``
^^^^^^^^^^^^^^^
``pip install`` Support
^^^^^^^^^^^^^^^^^^^^^^^

Python 3 Support
^^^^^^^^^^^^^^^^

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'd also need suggestions on this file, i.e. scancode-toolkit/getting-started/whats-new.rst. Basically on this Brief Summary Of Changes section, should it have more points? Does this page make sense? The [ToDo] comment in this file explains what I'm proposing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We do have a CHANGELOG file here: https://github.com/nexB/scancode-toolkit/blob/develop/CHANGELOG.rst

Maybe all we need to do is link to it in whats-new.rst

@AyanSinhaMahapatra AyanSinhaMahapatra Nov 20, 2019

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@MaJuRG Yes, but my thoughts were that it contains a lot of information about bugs and every other small change too. I did obviously link to the changelog file, you can check here. This page is a more broad overview to the users, explaining why they should use this specific version.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

On a side note, why doesn't the changelog include version 3.1.1?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changelog will eventually be updated I believe.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@AyanSinhaMahapatra

Copy link
Copy Markdown
Member Author

Just to refer to later, this PR might also solve this issue - #33

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>

@steven-esser steven-esser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we remove the ./ in front of all these scancode commands? This is necessary for people who want to run scancode right after cloning, without running virualenv commands. Many people expect scancode to work this way (with the ./scancode invocation) and I think we should leave them in.

@AyanSinhaMahapatra

AyanSinhaMahapatra commented Nov 20, 2019

Copy link
Copy Markdown
Member Author

Why do we remove the ./ in front of all these scancode commands?

@MaJuRG My thoughts on this were, if pip install is the recommended install method (This doesn't raise objections right?), then all the commands should be compatible with that.

I did add extensive documentation on different install methods, and how that changes the scan commands, in the synopsis and install pages, and added reminders in all other pages that using different install methods require different commands. What's your take on this?

@steven-esser steven-esser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, on second thought I think this is fine without the ./

We have it documented on the README, which gives enough context for me.

@steven-esser
steven-esser merged commit faea9fc into aboutcode-org:master Nov 25, 2019
AyanSinhaMahapatra added a commit to AyanSinhaMahapatra/scancode-toolkit that referenced this pull request Nov 26, 2019
Migrate all scancode-toolkit documentation from aboutcode till this commit -
aboutcode-org/aboutcode@faea9fc
Last pull request adding scancode docs was aboutcode-org/aboutcode#33

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@pombredanne

Copy link
Copy Markdown
Member

Let's make sure we are clear: there are eventually multiple ways to use scancode-toolkit:

  1. as an application: there the main way is to download a released archive.
  2. as a library: using a pip installation
  3. as a git clone

2 and 3 are advanced modes and 1 should be always offered as the default.

@AyanSinhaMahapatra

Copy link
Copy Markdown
Member Author

@pombredanne Right. I'm clear on this now. I'll push some updates to the documentation accordingly, so this is more clearly understood across all pages.

Apart from that, even after documenting such that it's targeted and helpful to both developers and non-developers, there's still the scan commands which are there throughout the documentation, so whether they should be shown with or without ./ (or maybe both?), we have to decide. So assume everything else is as it should be, and just consider the scan commands.

Now people who are most likely to get confused are non-developers, i.e.

  • ./ is used in 1 (only Linux/Mac) and 3, and I guess Macs are used even by a lot of non-developer users(?), then it might be important to make sure these users are comfortable too since they mostly will be using Method 1.

  • However scan commands for windows users, (also mostly non-developer) will always be without the ./

Considering that scan command variation for different installation methods is documented everywhere (where the user will most likely start reading from), I think it's better if we don't use ./ everywhere. Giving two versions of the commands everywhere also doesn't seem to me to be a good idea (Though the main pages will obviously have both commands).

@AyanSinhaMahapatra

Copy link
Copy Markdown
Member Author

I'll push related changes in aboutcode-org/scancode-toolkit#1851. I've updated the PR name accordingly.

viragumathe5 pushed a commit to viragumathe5/scancode-toolkit that referenced this pull request Mar 13, 2020
Migrate all scancode-toolkit documentation from aboutcode till this commit -
aboutcode-org/aboutcode@faea9fc
Last pull request adding scancode docs was aboutcode-org/aboutcode#33

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
    * Create copyright statement from holder information

Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
    * This is used for the case where we are starting off a project and have not yet generated requirements files

Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
    * Add --init option to configure.bat
    * Update help text in configure and configure.bat

Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
    * Update README.rst

Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
    * Update README.rst with instructions for post-initialization usage

Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra pushed a commit that referenced this pull request Mar 30, 2022
    * Replace references to scancode-toolkit repo with links to the skeleton repo

    * Remove --python option from configure.bat

Signed-off-by: Jono Yang <jyang@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.

3 participants