Skip to content

Commit

Permalink
Add minor doc updates
Browse files Browse the repository at this point in the history
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
  • Loading branch information
AyanSinhaMahapatra committed Oct 18, 2023
1 parent 7e00d58 commit e7914f4
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 79 deletions.
19 changes: 1 addition & 18 deletions docs/source/contribute/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,8 @@ Linux
- Python 3.7 or later
- `Node.js <https://nodejs.org/en/download/package-manager/>`__ 12.x or later
- npm 6.14.x or later
- For CentOS (or linux distros without the new libstdc++) -

- Install the new libstdc++ library:

.. code-block:: bash
yum provides libstdc++
- Update LD_LIBRARY_PATH:

.. code-block:: bash
export LD_LIBRARY_PATH="/usr/local/lib64/:$LD_LIBRARY_PATH"
- Run the application with ``no-sandbox`` option:

.. code-block:: bash
./ScanCode\ Workbench-linux-x64/ScanCode\ Workbench --no-sandbox
.. include:: ../rst_snippets/centos-note.rst

MacOS
-----
Expand Down
39 changes: 12 additions & 27 deletions docs/source/getting-started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,7 @@ Download and Install

On Windows 10, for example, the executable will be named `ScanCode-Workbench.exe`.

.. Note::
For CentOS (or linux distros without the new libstdc++), follow these steps:

- Install the new libstdc++ library:

.. code-block:: bash
yum provides libstdc++
- Update LD_LIBRARY_PATH:

.. code-block:: bash
export LD_LIBRARY_PATH="/usr/local/lib64/:$LD_LIBRARY_PATH"
- Run the application with ``no-sandbox`` option:

.. code-block:: bash
./ScanCode\ Workbench-linux-x64/ScanCode\ Workbench --no-sandbox
.. include:: ../rst_snippets/centos-note.rst

- If you're interested in digging into the code, you can also use ScanCode Workbench by cloning
the GitHub repository and building it yourself -- see the :ref:`Contribute/Building<building>`
Expand All @@ -44,15 +25,19 @@ Download and Install
ScanCode Workbench-ScanCode Toolkit Compatibility
=================================================

- ScanCode Workbench >= v4.0.0 is only compatible with scans from ScanCode v32.x and above
that have been run with the ScanCode Toolkit ``-i`` option.
- ScanCode Workbench v4.x is only compatible with scans from ScanCode v32.x and above
that have been run with ScanCode Toolkit.

- You would typically create your scan with the following command::

- A list of available ScanCode Toolkit options is available in the ScanCode Toolkit
documentation:
:doc:`scancode-toolkit:tutorials/how_to_set_what_will_be_detected_in_a_scan`.
scancode -clipeu <input> --json-pp <output_file>

- You would typically create your scan with the following command:
``./scancode -clipeu <input> <output_file>``
.. Note::
A list of available ScanCode Toolkit options is available in the ScanCode Toolkit
documentation:
:doc:`scancode-toolkit:tutorials/how_to_set_what_will_be_detected_in_a_scan`.
Also see :doc:`scancode-toolkit:tutorials/how_to_run_a_scan` for more details
on running a ScanCode Toolkit scan.

Open ScanCode Workbench and Load a ScanCode Toolkit Scan
========================================================
Expand Down
7 changes: 0 additions & 7 deletions docs/source/how-to-guides/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
:index:`How-To Guides`
======================

The ScanCode Workbench How-To Guides will walk you through loading and analyzing
a ``-clipeu`` scan of ``e2fsprogs-1.45.6.tar.gz``.

.. Note:: If you'd like to follow along, you can download a copy of the ``e2fsprogs-1.45.6``
package from `SourceForge <https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v1.45.6/>`__,
run a ``-clipeu`` scan with `ScanCode Toolkit <https://github.com/nexB/scancode-toolkit>`__,
load the ``.json`` output into ScanCode Workbench and work your way through the How-To Guides.

.. toctree::
:maxdepth: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ provides details about the error and allows you to create an issue.
:scale: 50 %

If you can reproduce the error, use this approach to get the stack trace and report the issue. Open
the Developer Tools with ``Ctrl+Shift+I`` or ``Alt+Cmd+I``. From there, click the Console tab.
Include the error that is logged in the issue in a code block or a file attachment.
the Developer Tools by clicking ```View`` -> ``Toggle Developer Tools``. From there, click the
``Console`` tab. Include the error that is logged in the issue in a code block or a
file attachment.

You can `Create an issue here <https://github.com/nexB/scancode-workbench/issues>`__.

Expand Down
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Welcome to the documentation for ScanCode Workbench!
getting-started/index
how-to-guides/index
ui-reference/index
technical-reference/index
contribute/index
license

Expand Down
16 changes: 13 additions & 3 deletions docs/source/overview/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,24 @@ This documentation is organized in six sections:

- The :ref:`ui-reference` section provides an overview of each of ScanCode Workbench's data views.

- The :ref:`technical-reference` section summarizes ScanCode Workbench's underlying technology
and platform support.

- The :ref:`contribute` section is intended for advanced users and contributors to ScanCode
Workbench development.

- The :ref:`license` section provides summary licensing information for ScanCode Workbench.

Underlying Technology
=====================

- ScanCode Workbench is based on `Electron <https://www.electronjs.org/>`__ and works on
Windows, OS X and Linux operating systems.

Platform Support
================

* Linux - ``x64``
* Windows 10/11 - ``x64``
* MacOS - ``x64``, ``arm64``

Important Links
===============

Expand Down
20 changes: 20 additions & 0 deletions docs/source/rst_snippets/centos-note.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. Note::
For CentOS (or linux distros without the new libstdc++), follow these steps:

- Install the new libstdc++ library:

.. code-block:: bash
yum provides libstdc++
- Update LD_LIBRARY_PATH:

.. code-block:: bash
export LD_LIBRARY_PATH="/usr/local/lib64/:$LD_LIBRARY_PATH"
- Run the application with ``no-sandbox`` option:

.. code-block:: bash
./ScanCode\ Workbench-linux-x64/ScanCode\ Workbench --no-sandbox
18 changes: 0 additions & 18 deletions docs/source/technical-reference/index.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/ui-reference/directory-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:index:`Directory Tree`
=======================

An interactive Directory tree is present on the left side of the application for resource-focused
An interactive directory tree is present on the left side of the application for resource-focused
views. This allows the user to navigate the codebase structure.

If a directory is selected, only the information for that directory and its sub-files and folders
Expand Down
4 changes: 2 additions & 2 deletions docs/source/ui-reference/license-explorer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ were detected can be viewed using the License Explorer.
Refer -
:doc:`scancode-toolkit:reference/license-detection-reference`

.. @TODO - Replace with anchored link after merging docs PR in scancode-toolkit
.. @TODO - Replace with anchored link after merging docs PR inScanCode Toolkit
.. :doc:`scancode-toolkit:reference/license-detection-reference#what-is-a-licensedetection`
License Navigation Pane
Expand Down Expand Up @@ -43,7 +43,7 @@ User can view the match details resulting the selected license :
- ``Matched Text``
| User can click on the text to view a diff of Matched & Rule text
| (Requires ``--license-references`` flag)
- ``Rule`` - User can click on the Rule to open the rule used by scancode-toolkit in browser
- ``Rule`` - User can click on the Rule to open the rule used byScanCode Toolkit in browser
- ``SPDX License expression``

File Regions Table:
Expand Down

0 comments on commit e7914f4

Please sign in to comment.