forked from aboutcode-org/scancode-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs server script, dark mode & copybutton for docs (aboutcode-…
…org#3549) * Added docs server script, dark mode & copybutton for docs Signed-off-by: Omkar Phansopkar <[email protected]>
- Loading branch information
Showing
7 changed files
with
39 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,109 +3,14 @@ | |
How to Visualize Scan results | ||
============================= | ||
|
||
In this simple tutorial example, we import results from a basic scan performed on the ``samples`` | ||
directory distributed by default with Scancode, and visualize the outputs through | ||
Scancode Workbench. | ||
To help visualize the scans, we have a dedicated tool `Scancode workbench <https://github.com/nexb/scancode-workbench/>`_ which is a desktop application that allows you to visualize and explore the results of one or more scans. It is a cross-platform application that runs on Windows, Mac OS X and Linux. It is built using the Electron framework and is built using Electron, Typescript & React | ||
|
||
Detailed Installation and Usage guide can be found here - :ref:`scancode-workbench:getting-started` | ||
|
||
.. WARNING:: | ||
|
||
This tutorial uses the 3.1.1 version of Scancode Toolkit, and Scancode Workbench 3.1.0 (This | ||
beta version of ScanCode Workbench is compatible with scans from any ScanCode Toolkit develop | ||
version/branch at or after v3.0.2). If you are using an older version of Scancode Toolkit, check | ||
This tutorial uses the 32.x version of Scancode Toolkit, and Scancode Workbench 4.0.x (This version of ScanCode Workbench is compatible with scans from any ScanCode Toolkit develop | ||
version/branch at or after v32.x). If you are using an older version of Scancode Toolkit, check | ||
respective versions of this documentation. Also refer the Scancode Workbench | ||
`release highlights <https://github.com/nexB/scancode-workbench/releases/>`_. | ||
|
||
.. | ||
[ToDo] | ||
Add Windows/MacOS Support and remove this WARNING. | ||
.. WARNING:: | ||
|
||
This tutorial is for Linux based systems presently. Additional Help for Windows/MacOS will be | ||
added. | ||
|
||
Setting up Scancode Workbench | ||
----------------------------- | ||
|
||
According to the Installation instructions for the Workbench, we have to install Node.js 6.x or later. | ||
Refer to Node.js install `instructions <https://nodejs.org/en/download/package-manager/>`_ here. | ||
|
||
You can also run the following commands:: | ||
|
||
sudo apt-get install -y nodejs | ||
sudo npm install [email protected] -g | ||
|
||
After ``Node.js`` and ``npm`` is installed and get the Scancode Workbench 3.1.0 tarball from the | ||
`Workbench Release Page <https://github.com/nexB/scancode-workbench/releases/tag/v3.1.0>`_. Extract | ||
the package and then launch Scancode Workbench:: | ||
|
||
./ScanCode-Workbench | ||
|
||
This opens the Workbench. | ||
|
||
.. note:: | ||
|
||
You can also build Scancode Toolkit and Scancode Workbench from source. Clone the repository, | ||
don't forget to checkout to the specific release using ``git checkout <release>``, and follow | ||
the build instructions. You will ll also have to create a Python virtual environment. | ||
|
||
|
||
|
||
Importing Data into Scancode Workbench | ||
-------------------------------------- | ||
|
||
#. Click on the ``File -> Import JSON File`` or Press ``Ctrl + I``. | ||
|
||
#. Select the file from the pop-up window. | ||
|
||
#. Select a Name and Location (where you want it later) for the .sqlite output file. | ||
|
||
.. note:: | ||
|
||
You can also import a .sqlite file you've saved in the past to load scan results. As it is much | ||
faster, once you've imported the JSON file and a corresponding SQLite file has been created, | ||
you shouldn't repeat this. Instead, import the SQLite file next time you want to visualize the | ||
same scan result. | ||
|
||
Visualization | ||
------------- | ||
|
||
Views | ||
^^^^^ | ||
|
||
Refer to the workbench documentation for more information on Visualization. | ||
|
||
The dashboard has a general overview. | ||
|
||
.. image:: /tutorials/data/workbench_dashboard.png | ||
|
||
There are three main views (They appear in the same order in the GIFs): | ||
|
||
- Chart Summary View, | ||
- Table View, | ||
- Components Summary View. | ||
|
||
.. image:: /tutorials/data/views_sample.gif | ||
|
||
Filters | ||
^^^^^^^ | ||
|
||
You can also click any file/directory on the file list located on the right, to filter the results | ||
such that it only contains results from that File/Directory. | ||
|
||
.. image:: /tutorials/data/filter_sample.gif | ||
|
||
Components | ||
^^^^^^^^^^ | ||
|
||
Refer :ref:`workbench_components` for more information on Components. | ||
|
||
In the table view, | ||
|
||
#. Apply filters by selecting Files/Directories | ||
#. Right Click on the Left Panel | ||
#. Select ``Edit Component`` | ||
#. A pop-up opens with fields, make necessary edits and Save. | ||
#. Go to the Component Summary View to see the Component. | ||
|
||
.. image:: /tutorials/data/components_sample.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters