Skip to content

Commit 6042374

Browse files
authored
Merge pull request #1 from nexB/master
Upsyncing
2 parents efc1652 + 348f0c8 commit 6042374

25 files changed

Lines changed: 1018 additions & 20 deletions

docs/source/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

17+
# Adding Support for GIFs in Sphinx
18+
from sphinx.builders.html import StandaloneHTMLBuilder
19+
StandaloneHTMLBuilder.supported_image_types = [
20+
'image/svg+xml',
21+
'image/gif',
22+
'image/png',
23+
'image/jpeg'
24+
]
1725

1826
# -- Project information -----------------------------------------------------
1927

docs/source/doc_maintenance.rst

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,56 @@
11
Document Maintenance
22
====================
33

4-
Sphinx
5-
------
4+
Document Software Setup
5+
-----------------------
66

7-
Install Sphinx on your local machine.
8-
See http://www.sphinx-doc.org/en/master/usage/installation.html
7+
AboutCode documentation is built using Sphinx.
8+
See http://www.sphinx-doc.org/en/master/index.html
9+
10+
AboutCode documentation is distributed using "Read the Docs".
11+
See https://readthedocs.org/
12+
13+
Individual document files are in reStructuredText format.
14+
See http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
15+
16+
You create, build, and preview AboutCode documentation on your local machine.
17+
18+
You commit your updates to the AboutCode repository on GitHub, which triggers an automatic rebuild of https://aboutcode.readthedocs.io/en/latest/index.html
919

1020

1121
Clone AboutCode
1222
---------------
1323

14-
Create or identify a working directory on your local machine.
24+
To get started, create or identify a working directory on your local machine.
1525

16-
Open that directory and execute the following commands in a terminal session::
26+
Open that directory and execute the following command in a terminal session::
1727

1828
git clone https://github.com/nexB/aboutcode.git
19-
git status
29+
30+
That will create an /aboutcode directory in your working directory.
31+
Now you can install the dependencies in a virtualenv::
32+
33+
cd aboutcode
34+
python3.6 -m venv .
35+
source bin/activate
36+
37+
Now you can install Sphinx and the format theme used by readthedocs::
38+
39+
pip install Sphinx sphinx_rtd_theme
40+
41+
Now you can build the HTML documents locally::
42+
2043
cd docs
2144
make html
2245

23-
Assuming that your Sphinx installation was successful, Sphinx should build a local instance of the documentaiton .html files::
46+
Assuming that your Sphinx installation was successful, Sphinx should build a local instance of the documentation .html files::
2447

2548
open build/html/index.html
2649

50+
In case this command did not work, for example on Ubuntu 18.04 you may get a message like “Couldn’t get a file descriptor referring to the console”, try: ::
51+
52+
see build/html/index.html
53+
2754
You now have a local build of the AboutCode documents.
2855

2956
Improve AboutCode Documents
@@ -50,8 +77,8 @@ Share AboutCode Document Improvements
5077
Follow standard git procedures to upload your new and modified files. The following commands are examples::
5178

5279
git status
53-
git add docs/source/index.rst
54-
git add docs/source/how-to-scan.rst
80+
git add source/index.rst
81+
git add source/how-to-scan.rst
5582
git status
5683
git commit -m "New how-to document that explains how to scan"
5784
git status

docs/source/help.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ AboutCode is a suite of open source projects.
66
AboutCode Projects
77
******************
88

9-
- **[ScanCode Toolkit](https://github.com/nexB/scancode-toolkit)**: This is a set of code scanning tools to detect the origin and license of code and dependencies. ScanCode Toolkit uses a plug-in architecture to run a series of scan-related tools in one process flow. This is the most popular project and is used by hundreds of software teams. https://github.com/nexB/scancode-toolkit . The lead maintainer is @pombredanne
9+
- `ScanCode Toolkit <https://github.com/nexB/scancode-toolkit>`_: This is a set of code scanning tools to detect the origin and license of code and dependencies. ScanCode Toolkit uses a plug-in architecture to run a series of scan-related tools in one process flow. This is the most popular project and is used by hundreds of software teams. https://github.com/nexB/scancode-toolkit . The lead maintainer is @pombredanne
1010

11-
- **[Scancode Workbench](https://github.com/nexB/scancode-workbench)** (formerly AboutCode Manager) This is a desktop application (based on Electron) to review the results of a scan and document your conclusions about the origin and license of software components and packages. https://github.com/nexB/aboutcode-manager . The lead maintainer is @majurg
11+
- `Scancode Workbench <https://github.com/nexB/scancode-workbench>`_ (formerly AboutCode Manager) This is a desktop application (based on Electron) to review the results of a scan and document your conclusions about the origin and license of software components and packages. https://github.com/nexB/aboutcode-manager . The lead maintainer is @majurg
1212

13-
- **[AboutCode Toolkit](https://github.com/nexB/aboutcode-toolkit)**: This is a set of command line tools to document the provenance of your code and generate attribution notices. AboutCode Toolkit uses small yaml files to document code provenance inside a codebase. https://github.com/nexB/aboutcode-toolkit . The lead maintainer is @chinyeungli
13+
- `AboutCode Toolkit <https://github.com/nexB/aboutcode-toolkit>`_: This is a set of command line tools to document the provenance of your code and generate attribution notices. AboutCode Toolkit uses small yaml files to document code provenance inside a codebase. https://github.com/nexB/aboutcode-toolkit . The lead maintainer is @chinyeungli
1414

15-
- **[TraceCode Toolkit](https://github.com/nexB/tracecode-toolkit)**: This is a set of tools to trace files from your deployment or distribution packages back to their origin in a development codebase or repository. The primary tool uses strace https://github.com/strace/strace/ to trace system calls on Linux and construct a build graph from syscalls to show which files are used to build a binary. We are contributors to strace. Maintained by @pombredanne
15+
- `TraceCode Toolkit <https://github.com/nexB/tracecode-toolkit>`_: This is a set of tools to trace files from your deployment or distribution packages back to their origin in a development codebase or repository. The primary tool uses strace https://github.com/strace/strace/ to trace system calls on Linux and construct a build graph from syscalls to show which files are used to build a binary. We are contributors to strace. Maintained by @pombredanne
1616

17-
- **[Conan](https://github.com/nexB/conan)**: "conan" stands for "CONtainer ANalysis" and is a tool to analyze the structure and provenance of software components in Docker images using static analysis. https://github.com/nexB/conan Maintained by @pombredanne
17+
- `Conan <https://github.com/nexB/conan>`_: "conan" stands for "CONtainer ANalysis" and is a tool to analyze the structure and provenance of software components in Docker images using static analysis. https://github.com/nexB/conan Maintained by @pombredanne
1818

19-
- **[license-expression](https://github.com/nexB/license-expression/)**: This is a library to parse, analyze, compare and normalize SPDX-like license expressions using a boolean logic expression engine. See https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60 to understand what a license expression is. See https://github.com/nexB/license-expression for the code. The underlying boolean engine is at https://github.com/bastikr/boolean.py . Both are co-maintained by @pombredanne
19+
- `license-expression <https://github.com/nexB/license-expression/>`_: This is a library to parse, analyze, compare and normalize SPDX-like license expressions using a boolean logic expression engine. See https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60 to understand what a license expression is. See https://github.com/nexB/license-expression for the code. The underlying boolean engine is at https://github.com/bastikr/boolean.py . Both are co-maintained by @pombredanne
2020

21-
- **ABCD aka AboutCode Data** is a simple set of conventions to define data structures that all the AboutCode tools can understand and use to exchange data. The specification lives in this repository. .ABOUT files and ScanCode tooklit data are examples of this approach. Other projects such as https://libraries.io and [OSS Review Toolkit](https://github.com/heremaps/oss-review-toolkit) also use these conventions.
21+
- `ABCD aka AboutCode Data <https://github.com/nexB/aboutcode/blob/master/aboutcode-data/README.rst>`_: is a simple set of conventions to define data structures that all the AboutCode tools can understand and use to exchange data. The specification lives in this repository. .ABOUT files and ScanCode tooklit data are examples of this approach. Other projects such as https://libraries.io and `OSS Review Toolkit <https://github.com/heremaps/oss-review-toolkit>`_ also use these conventions.
2222

23-
- **[DeltaCode](https://github.com/nexB/deltacode)** is a command line tool to compare scans and determine if and where there are material differences that affect licensing. The lead maintainer is @majurg
23+
- `DeltaCode <https://github.com/nexB/deltacode>`_ is a command line tool to compare scans and determine if and where there are material differences that affect licensing. The lead maintainer is @majurg
2424

25-
- **[VulnerableCode](https://github.com/nexB/vulnerablecode)**: an emerging server-side application to collect and track known package vulnerabilities.
25+
- `VulnerableCode <https://github.com/nexB/vulnerablecode>`_: an emerging server-side application to collect and track known package vulnerabilities.
2626

docs/source/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ Guide
55
*****
66

77
.. toctree::
8-
:maxdepth: 2
8+
:maxdepth: 3
99

10+
scancode-toolkit/index
11+
scancode-workbench/index
1012
license
1113
help
1214
doc_maintenance
3.63 KB
Loading
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
Comprehensive Installation
2+
==========================
3+
4+
ScanCode requires Python 2.7.x and is tested on Linux, Mac, and Windows. Make sure Python 2.7 is installed first.
5+
6+
System Requirements
7+
-------------------
8+
9+
- Hardware : ScanCode will run best with a modern X86 processor and at least 2GB of RAM and 250MB of disk.
10+
11+
- Supported operating systems : ScanCode should run on these OSes:
12+
13+
#. Linux: on most recent 64-bit Linux distributions (32-bit distros are only partially supported),
14+
#. Mac: on recent Mac OSX (10.6.8 and up),
15+
#. Windows: on Windows 7 and up (32- or 64-bit) using a 32-bit Python.
16+
17+
Prerequisites
18+
-------------
19+
ScanCode needs a Python 2.7 interpreter.
20+
21+
- On Linux: Use your package manager to install python2.7. If Python 2.7 is not available from your package manager, you must compile it from sources. For instance, visit https://github.com/dejacode/about-code-tool/wiki/BuildingPython27OnCentos6 for instructions to compile Python from sources on Centos.
22+
23+
- On Ubuntu 12.04, 14.04 and 16.04, you will need to install these packages first: ``python-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev``
24+
25+
- On Debian and Debian-based distros you will need to install these packages first: ``python-dev libbz2-1.0 xz-utils zlib1g libxml2-dev libxslt1-dev``
26+
27+
- On RPM-based distros, you will need to install these packages first: ``python-devel zlib bzip2-libs xz-libs libxml2-devel libxslt-devel``
28+
29+
- **On Windows**:
30+
31+
Use the Python 2.7 32-bit (e.g. the Windows x86 MSI installer) for X86 regardless of whether you run Windows on 32-bit or 64-bit. DO NOT USE Python X86_64 installer even if you run 64 bit Windows. Download Python from this url: https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi
32+
33+
Install Python on the c: drive and use all default installer options(scancode will try to find python just in c:\python27\python.exe). See the Windows installation section for more installation details.
34+
35+
- On Mac: Download and install Python from this url: https://www.python.org/ftp/python/2.7.13/python-2.7.13-macosx10.6.pkg
36+
37+
Do not use Unicode, non-ASCII in your installation Path
38+
-------------------------------------------------------
39+
There is a bug in underlying libraries that prevent this.
40+
41+
Installation on Linux and Mac
42+
-----------------------------
43+
44+
Download and extract the latest ScanCode release from:
45+
https://github.com/nexB/scancode-toolkit/releases/latest
46+
47+
Open a terminal in the extracted directory and run::
48+
49+
./scancode --help
50+
51+
This will configure ScanCode and display the command line help.
52+
53+
Installation on Windows
54+
-----------------------
55+
56+
- Download the latest ScanCode release zip file from https://github.com/nexB/scancode-toolkit/releases/latest
57+
58+
- In Windows Explorer (called File Explorer on Windows 10), select the downloaded ScanCode zip and right-click.
59+
60+
- In the pop-up menu select 'Extract All...'
61+
62+
- In the pop-up window 'Extract zip folders' ('Extract Compressed (Zipped) Folders' on Windows 10) use the default options to extract.
63+
64+
- Once the extraction is complete, a new Windows Explorer/File Explorer window will pop up.
65+
66+
- In this Explorer window, select the new folder that was created and right-click.
67+
68+
* On Windows 10, double-click the new folder, select one of the files inside the folder (e.g., 'setup.py'), and right-click.
69+
- In the pop-up menu select 'Properties'.
70+
71+
- In the pop-up window 'Properties', select the Location value. Copy this to the clipboard and close the 'Properties' window.
72+
73+
- Press the start menu button. (On Windows 10, click the search box or search icon in the taskbar.)
74+
75+
- In the search box type::
76+
77+
cmd
78+
79+
- Select 'cmd.exe' listed in the search results. (On Windows 10, you may see 'Command Prompt' instead -- select that.)
80+
81+
- A new 'cmd.exe' window ('Command Prompt' on Windows 10) pops up.
82+
83+
- In this window (aka a 'command prompt'), type the following (i.e., 'cd' followed by a space)::
84+
85+
cd
86+
87+
- Right-click in this window and select Paste. This will paste the path where you extracted ScanCode.
88+
89+
- Press Enter.
90+
91+
- This will change the current location of your command prompt to the root directory where scancode is installed.
92+
93+
- Then type::
94+
95+
scancode -h
96+
97+
- Press enter. This will configure your ScanCode installation.
98+
99+
- Several messages are displayed followed by the scancode command help.
100+
101+
- The installation is complete.
102+
103+
Un-installation
104+
---------------
105+
106+
- Delete the directory in which you extracted ScanCode.
107+
- Delete any temporary files created in your system temp directory under a scancode directory.

0 commit comments

Comments
 (0)