Skip to content

Commit 85e3496

Browse files
committed
Added Docs CI, fixed minor docs errors
Signed-off-by: Omkar Phansopkar <[email protected]>
1 parent be37218 commit 85e3496

26 files changed

+174
-84
lines changed

.github/workflows/docs-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI Documentation
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read # to fetch code (actions/checkout)
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
12+
strategy:
13+
max-parallel: 4
14+
matrix:
15+
python-version: [3.9]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install Dependencies
27+
run: pip install -e .[docs]
28+
29+
- name: Check Sphinx Documentation build minimally
30+
working-directory: ./docs
31+
run: sphinx-build -E -W source build
32+
33+
- name: Check for documentation style errors
34+
working-directory: ./docs
35+
run: ./scripts/doc8_style_check.sh
36+

CODE_OF_CONDUCT.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Enforcement
6565

6666
Instances of abusive, harassing, or otherwise unacceptable behavior may
6767
be reported by contacting the project team at [email protected]
68-
or on the Gitter chat channel at https://gitter.im/aboutcode-org/discuss .
68+
or on the Gitter chat channel at https://matrix.to/#/#aboutcode-org_discuss:gitter.im
6969
All complaints will be reviewed and investigated and will result in a
7070
response that is deemed necessary and appropriate to the circumstances.
7171
The project team is obligated to maintain confidentiality with regard to

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license and other notices identified by
1111
and other interesting information in your code.
1212

1313
ScanCode Workbench is based on
14-
[Electron](https://electron.atom.io/) and will be the primary desktop/GUI tool
14+
[Electron](https://www.electronjs.org/) and will be the primary desktop/GUI tool
1515
for using nexB’s [AboutCode tools](https://github.com/nexB/aboutcode). This app
1616
works on Windows, OS X and Linux operating systems.
1717

@@ -96,6 +96,6 @@ See the NOTICE file for more details.
9696

9797
If you have a question, a suggestion or find a bug, enter an issue.
9898

99-
[![Gitter chat](https://badges.gitter.im/aboutcode-org/gitter.png)](https://gitter.im/aboutcode-org/discuss)
99+
[![Gitter chat](https://badges.gitter.im/aboutcode-org/gitter.png)](https://matrix.to/#/#aboutcode-org_discuss:gitter.im)
100100

101-
For questions and chats, you can join the Gitter channel at https://gitter.im/aboutcode-org/discuss
101+
For questions and chats, you can join the Gitter channel at https://matrix.to/#/#aboutcode-org_discuss:gitter.im

docs/scripts/doc8_style_check.sh

100644100755
File mode changed.

docs/scripts/sphinx_build_link_check.sh

100644100755
File mode changed.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
# Define reusable URLs using extlinks
113113
extlinks = {
114114
'github_repo': (f"https://github.com/{github_user}/{github_repo}/%s", '%s'),
115-
'scan_samples': (f"https://github.com/{github_user}/{github_repo}/tree/{github_branch}/samples/%s", '%s'),
115+
'scan_samples': (f"https://github.com/{github_user}/{github_repo}/blob/{github_branch}/samples/%s", '%s'),
116116
}
117117

118118
# -- Options for LaTeX output -------------------------------------------------

docs/source/contribute/building.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Clone, Install, Build and Run
88
=============================
99

10-
You'll need `Node.js <https://nodejs.org/>`__ (which comes with `npm <http://npmjs.com/>`__) installed on your computer in order to build this app. (See below for a list of platform-specific requirements.) Then, from your command line:
10+
You'll need `Node.js <https://nodejs.org/en>`__ (which comes with `npm <https://www.npmjs.com/>`__) installed on your computer in order to build this app. (See below for a list of platform-specific requirements.) Then, from your command line:
1111

1212
.. code-block:: bash
1313
@@ -33,23 +33,23 @@ Linux
3333
- `Node.js <https://nodejs.org/en/download/package-manager/>`__ 12.x or later
3434
- npm 6.14.x or later
3535
- For CentOS (or linux distros without the new libstdc++) -
36-
37-
- Install the new libstdc++ library:
36+
37+
- Install the new libstdc++ library:
3838

3939
.. code-block:: bash
40-
40+
4141
yum provides libstdc++
42-
42+
4343
- Update LD_LIBRARY_PATH:
44-
44+
4545
.. code-block:: bash
46-
46+
4747
export LD_LIBRARY_PATH="/usr/local/lib64/:$LD_LIBRARY_PATH"
4848
4949
- Run the application with ``no-sandbox`` option:
50-
50+
5151
.. code-block:: bash
52-
52+
5353
./ScanCode\ Workbench-linux-x64/ScanCode\ Workbench --no-sandbox
5454
5555
MacOS
@@ -58,11 +58,11 @@ MacOS
5858
- Python 3.7 or later
5959
- `Node.js <https://nodejs.org/en/>`__ 12.x or later
6060
- npm 6.14.x or later
61-
- Command Line Tools for `Xcode <https://developer.apple.com/xcode/downloads/>`_
61+
- Command Line Tools for `Xcode <https://developer.apple.com/xcode/resources/>`_
6262
Install using:
6363

6464
.. code-block:: bash
65-
65+
6666
xcode-select --install
6767
6868
Windows
@@ -73,7 +73,7 @@ Windows
7373
* Make sure your Python path is set. To verify, open a command prompt and see the python version:
7474

7575
.. code-block:: bash
76-
76+
7777
python --version
7878
7979
- `Node.js <https://nodejs.org/en/>`__ 12.x or later

docs/source/contribute/community-channels.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
If you have a question, a suggestion or find a bug, `enter an issue <https://github.com/nexB/scancode-workbench/issues>`__.
66

7-
For questions and chats, you can join the Gitter channel at https://gitter.im/aboutcode-org/discuss
7+
For questions and chats, you can join the Gitter channel at `<https://matrix.to/#/#aboutcode-org_discuss:gitter.im>`_

docs/source/getting-started/index.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,30 @@ Download and Install
99

1010
- ScanCode Workbench is available for Windows, macOS and Linux -
1111
`ScanCode Workbench releases <https://github.com/nexB/scancode-workbench/releases>`__.
12-
13-
- Once downloaded, you'll find the ScanCode Workbench executable inside the ``ScanCode Workbench-<os>-<arch>`` folder. On Windows 10, for example, the executable will be named `ScanCode-Workbench.exe`.
12+
13+
-
14+
Once downloaded, you'll find the ScanCode Workbench executable inside the
15+
``ScanCode Workbench-<os>-<arch>`` folder.
16+
17+
On Windows 10, for example, the executable will be named `ScanCode-Workbench.exe`.
1418

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

1822
- Install the new libstdc++ library:
19-
23+
2024
.. code-block:: bash
21-
25+
2226
yum provides libstdc++
2327
2428
- Update LD_LIBRARY_PATH:
25-
29+
2630
.. code-block:: bash
2731
2832
export LD_LIBRARY_PATH="/usr/local/lib64/:$LD_LIBRARY_PATH"
2933
3034
- Run the application with ``no-sandbox`` option:
31-
35+
3236
.. code-block:: bash
3337
3438
./ScanCode\ Workbench-linux-x64/ScanCode\ Workbench --no-sandbox

docs/source/how-to-guides/explore-your-data/navigate-chart-summary-view.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ Once you have a SQLite file loaded into ScanCode Workbench, displaying the Chart
99
Summary View is easy:
1010

1111
* Select a file or directory in the Tree View on the left.
12-
* Click on `Chart Summary View` in the sidebar or open the :kbd:`View` menu and select :kbd:`Chart Summary View` (keyboard shortcut: :kbd:`Ctrl+Shift+D` or :kbd:`+Shift+D`).
12+
*
13+
Click on `Chart Summary View` in the sidebar or open the
14+
:kbd:`View` menu and select :kbd:`Chart Summary View`
15+
(keyboard shortcut: :kbd:`Ctrl+Shift+D` or :kbd:`+Shift+D`).
1316

1417
Select an attribute
1518
===================
@@ -36,4 +39,4 @@ directory or file.
3639

3740
.. figure:: data/chart-summary-filetree.gif
3841

39-
For entire UI reference, Read :ref:`chart-summary-view`
42+
For entire UI reference, Read :ref:`chart-summary-view`

0 commit comments

Comments
 (0)