Skip to content

Commit 3f55592

Browse files
committed
Fixed duplicate labels & added script to clean previous sphinx build cache
Signed-off-by: Omkar Phansopkar <[email protected]>
1 parent 52e2552 commit 3f55592

File tree

11 files changed

+20
-10
lines changed

11 files changed

+20
-10
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
npm test
5+
cd docs && ./scripts/doc8_style_check.sh && ./scripts/sphinx_build_link_check.sh

docs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ docs:
2020
@echo
2121
@echo "Starting up the docs server..."
2222
@echo
23+
make clean
2324
$(SPHINXAUTOBUILD) --port 8000 --watch ${SOURCEDIR} $(SOURCEDIR) "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
2425

2526
# Catch-all target: route all unknown targets to Sphinx using the new

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The first step you want to do is create the python virtual environment:
44

55
```
66
$ cd docs/
7-
$ python3 -m venv venv
7+
$ python -m venv venv
88
$ source venv/bin/activate
99
$ pip install -r requirements.txt
1010
```

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ doc8>=0.11.2
77
jinja2
88
markupSafe
99
sphinx-copybutton
10+
sphinx_rtd_dark_mode

docs/source/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'nexB Inc. and others'
2323
github_user = "nexB"
2424
github_repo = "scancode-workbench"
25-
github_branch = "update/docs"
25+
github_branch = "develop"
2626
html_favicon = '_static/favicon.ico'
2727

2828
# -- General configuration ---------------------------------------------------
@@ -87,7 +87,7 @@
8787
"conf_py_path": "/docs/source/", # path in the checkout to the docs root
8888
}
8989

90-
html_css_files = ["_static/theme_overrides.css"]
90+
html_css_files = ["theme_overrides.css"]
9191

9292

9393
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
@@ -117,6 +117,11 @@
117117
'scan_samples': (f"https://github.com/{github_user}/{github_repo}/blob/{github_branch}/samples/%s", '%s'),
118118
}
119119

120+
# Ignore following links in linkcheck
121+
linkcheck_ignore = [
122+
'https://matrix.to/#/#aboutcode-org_discuss:gitter.im'
123+
]
124+
120125
# -- Options for LaTeX output -------------------------------------------------
121126

122127
latex_elements = {

docs/source/contribute/building.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Create python environment, make docs
100100
cd docs/
101101
102102
# Setup virtual environment for python dependencies
103-
python3 -m venv venv
103+
python -m venv venv
104104
source venv/bin/activate
105105
106106
# Install dependencies

docs/source/how-to-guides/explore-your-data/navigate-license-explorer.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Similarly, detection origin is a clickable icon. It determines the source of det
4747
- Package icon indicates that the detection belongs to a package manifest,
4848
you can click on it to view the source package manifest in :ref:`package-explorer`.
4949

50-
- File icon indicates that the detection belongs to a plain file, you can click on it to view the file in :ref:`table-view`.
50+
- File icon indicates that the detection belongs to a plain file,
51+
you can click on it to view the file in :ref:`table-view`.
5152

5253
.. figure:: data/license-explorer-fileregion.gif
5354

docs/source/how-to-guides/explore-your-data/navigate-package-explorer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependency flags by selecting filter values in the top-left
3737

3838
.. figure:: data/package-explorer-filter.gif
3939

40-
Dependencies table
40+
Dependencies
4141
========================
4242

4343
When a package is selected, the dependencies for that package are shown

docs/source/ui-reference/license-explorer.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ Similarly, detection origin is a clickable icon. It determines the source of det
101101
- Package icon indicates that the detection belongs to a package manifest,
102102
you can click on it to view the source package manifest in :ref:`package-explorer`.
103103

104-
- File icon indicates that the detection belongs to a plain file, you can click on it to view the file in :ref:`table-view`.
104+
- File icon indicates that the detection belongs to a plain file,
105+
you can click on it to view the file in :ref:`table-view`.
105106

106107
.. figure:: data/license-explorer/license-explorer-fileregion.gif
107108

docs/source/ui-reference/pie-charts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You can click on the legend items to toggle the visibility of corresponding pie
3939
.. figure:: data/pie-charts/pie-charts-legend-toggle.gif
4040
:align: center
4141
:width: 100%
42-
42+
4343
Click legend item to toggle segment visibility in Pie chart
4444

4545
.. include:: ../rst_snippets/scans-used.rst

0 commit comments

Comments
 (0)