Skip to content

Commit b0fbe1a

Browse files
Update Index page
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent cc01e48 commit b0fbe1a

5 files changed

Lines changed: 82 additions & 37 deletions

File tree

docs/source/cli-reference/synopsis.rst

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,30 @@ Toolkit Command Line Interface in the following sections:
1818
Installation
1919
------------
2020

21-
Scancode-Toolkit installation can be installed from ``pip``, the default Python Package Manager.
22-
However, there are more ways to perform an installation, and refer the following sections for
21+
Scancode-Toolkit installation can be done by downloading ScanCode as an application, which
22+
is recommended generally. For users familiar with ``pip``, ScanCode is also available and can be
23+
installed from ``pip``, the default Python Package Manager. Refer the following sections for
2324
detailed Instructions on the each of the Installation Methods.
2425

26+
- :ref:`app_install`
2527
- :ref:`pip_install`
26-
- :ref:`latest_release_download_install`
27-
- :ref:`source_configure_install`
28+
- :ref:`source_code_install`
2829

2930
.. _synopsis_quickstart:
3031

3132
Quickstart
3233
----------
3334

34-
The basic command to perform a scan, if Scancode is installed from ``pip``::
35+
The basic command to perform a scan, in case of a download and configure installation
36+
(on Linux/MacOS) is::
3537

36-
scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
38+
path/to/scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
3739

38-
The basic usage in case of a download and configure installation (on Linux/MacOS) is::
40+
The basic usage, if Scancode is installed from ``pip``, or in Windows::
3941

40-
path/to/scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
42+
scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
4143

42-
.. include:: /rst_snippets/tip_snippets/synopsis_quickstart.rst
44+
.. include:: /rst_snippets/note_snippets/synopsis_install_quickstart.rst
4345

4446
Here Scancode scans the <SCAN INPUT> file or directory for license, origin and packages and saves
4547
results to FILE(s) using one or more output format option. Error and progress are printed to
@@ -64,10 +66,12 @@ While a scan using absolute paths from the file system root will look like::
6466
home/ayansm/software/scancode-toolkit-3.1.1/scancode -clpieu --json-pp home/ayansm/scan_scan_results/output.json home/ayansm/codebases/samples/
6567

6668
Commands similar to ``scancode --clpi --json-pp output.json samples`` will be used as examples
67-
throughout the documentation. Here we are inside the ``virtualenv`` where Scancode-Toolkit was
68-
installed by ``pip``, and the default ``samples`` folder is being scanned, which is distributed
69-
by default with Scancode-Toolkit.
69+
throughout the documentation.
70+
71+
- Here we are inside the ``virtualenv`` where Scancode-Toolkit is configured.
7072

73+
- And the default ``samples`` folder is being scanned, which is distributed by default with
74+
Scancode-Toolkit.
7175

7276
.. _scancode_cli_options:
7377

docs/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
# This points to aboutcode.readthedocs.io
3535
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
3636
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
37-
intersphinx_mapping = {'aboutcode': ('https://aboutcode.readthedocs.io/en/latest/', None)}
37+
38+
intersphinx_mapping = {'aboutcode': ('https://aboutcode.readthedocs.io/en/latest/', None),
39+
'scancode-workbench': ('https://scancode-workbench.readthedocs.io/en/develop/', None)}
3840

3941
# Add any paths that contain templates here, relative to this directory.
4042
templates_path = ['_templates']

docs/source/index.rst

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
ScanCode Toolkit Documentation
22
==============================
33

4-
Guide
5-
-----
4+
Welcome to ScanCode Toolkit Documentation!
5+
6+
If you are new to ScanCode Toolkit, start here:
67

78
.. toctree::
89
:maxdepth: 2
910

10-
getting-started/index
11-
cli-reference/index
12-
plugins/index
13-
tutorials/index
14-
how-to-guides/index
15-
explanations/index
16-
contribute/index
17-
misc/index
18-
license
11+
getting-started/newcomer
12+
13+
Here's a list of more Documentation Pages:
14+
15+
- A :ref:`cli_synopsis` of ScanCode Command Line Options
16+
- Tutorials on :ref:`how_to_run_a_scan` and :ref:`how_to_visualize_scan_results`
17+
- An exhaustive List of :ref:`cli_list_options`
18+
- Documentation on :ref:`contrib_code_dev`
19+
- Documentation on :ref:`plugin_arch`
20+
- :ref:`faq`
1921

2022
----
2123

@@ -25,12 +27,24 @@ Getting Started
2527
.. toctree::
2628
:maxdepth: 2
2729

28-
getting-started/newcomer
30+
getting-started/index
2931

3032
----
3133

32-
Tutorial Documents
33-
------------------
34+
Command Line Options Reference
35+
------------------------------
36+
37+
Reference documents describe the Command Line options, and application concepts in depth.
38+
39+
.. toctree::
40+
:maxdepth: 2
41+
42+
cli-reference/index
43+
44+
----
45+
46+
Tutorials
47+
---------
3448

3549
Tutorial documents provide specific instructions to help you get started.
3650

@@ -53,18 +67,36 @@ How-To documents explain how to accomplish specific tasks.
5367

5468
----
5569

56-
Reference Documents
57-
-------------------
70+
Contribute To ScanCode
71+
----------------------
5872

59-
Reference documents describe the Command Line options, and application concepts in depth.
73+
.. toctree::
74+
:maxdepth: 2
75+
76+
contribute/index
77+
78+
----
79+
80+
Plugins Documentation
81+
---------------------
6082

6183
.. toctree::
6284
:maxdepth: 2
6385

64-
cli-reference/index
86+
plugins/index
6587

6688
----
6789

90+
Miscellaneous Documents
91+
-----------------------
92+
93+
.. toctree::
94+
:maxdepth: 2
95+
96+
misc/index
97+
license
98+
99+
68100
Discussion Documents
69101
--------------------
70102

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
.. note::
22

3-
For more information on the Scan Command for Various Installation Methods/Operating Systems,
4-
refer :ref:`syn_install`.
3+
Please note that different for different install methods, scan commands vary.
4+
5+
The basic command to perform a scan, in case of a download and configure installation
6+
(on Linux/MacOS) is::
7+
8+
path/to/scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
9+
10+
The basic usage, if Scancode is installed from ``pip``, or in Windows::
11+
12+
scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
13+
14+
For more information on how the Scan Command varies for Various Installation
15+
Methods/Operating Systems, refer :ref:`commands_variation`.

docs/source/rst_snippets/tip_snippets/synopsis_quickstart.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)