Skip to content

Commit d6cb74f

Browse files
Fix broken links in SCTK docs
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 4ac517e commit d6cb74f

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
lines changed

docs/source/cli-reference/basic-options.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -580,26 +580,26 @@
580580

581581
The ``--license-url-template`` option sets the template URL used for the license reference URLs.
582582

583-
The default template URL is : [https://enterprise.dejacode.com/urn/urn:dje:license:{}]
583+
The default template URL is : [https://scancode-licensedb.aboutcode.org/{}]
584584
In a template URL, curly braces ({}) are replaced by the license key.
585585

586-
So, by default the license reference URL points to the dejacode page for that license.
586+
So, by default the license reference URL points to the LicenseDB page for that license.
587587

588588
A scan example using the ``--license-url-template TEXT`` option ::
589589

590-
scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.yml
590+
scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE
591591

592592
In a normal scan, reference url for "ZLIB License" is as follows::
593593

594-
"reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib",
594+
"reference_url": "https://scancode-licensedb.aboutcode.org/zlib",
595595

596596
After using the option in the following manner::
597597

598-
``--license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}``
598+
``--license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE``
599599

600-
the reference URL changes to this `zlib.yml file <https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.yml>`_::
600+
the reference URL changes to this `zlib.LICENSE file <https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE>`_::
601601

602-
"reference_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/zlib.yml",
602+
"reference_url": "https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE",
603603

604604
The reference URL changes for all detected licenses in the scan, across the scan result file.
605605

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
"scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/latest/", None),
5555
}
5656

57+
# List of regular expressions for the linkchecker to ignore
58+
# See https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder
59+
linkcheck_ignore = [
60+
r'https://en.wikipedia.org/wiki/*',
61+
r'https://matrix.to/*'
62+
]
5763

5864
# Add any paths that contain templates here, relative to this directory.
5965
templates_path = ["_templates"]

docs/source/contribute/contrib_dev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ If you have a multiprocessor machine you might want to run the tests in parallel
8282
typically run the tests in verbose mode with ``pytest -vvs -n4``.
8383

8484
You can also run a subset of the test suite as shown in the CI configs
85-
https://github.com/nexB/scancode-toolkit/blob/develop/appveyor.yml#L6 e,g,
85+
https://github.com/nexB/scancode-toolkit/blob/develop/azure-pipelines.yml e,g,
8686
``pytest -n 2 -vvs tests/scancode`` runs only the test scripts present in the
8787
``tests/scancode`` directory. (You can give the path to a specific test script
8888
file there too).

docs/source/contribute/contrib_doc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ ScanCode toolkit documentation uses `Intersphinx <http://www.sphinx-doc.org/en/m
173173
to link to other Sphinx Documentations, to maintain links to other Aboutcode Projects.
174174

175175
To link sections in the same documentation, standart reST labels are used. Refer
176-
`Cross-Referencing <http://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#ref-role>`_ for more information.
176+
`Cross-Referencing <https://www.sphinx-doc.org/en/master/usage/referencing.html#cross-referencing-arbitrary-locations>`_ for more information.
177177

178178
For example::
179179

docs/source/contribute/gsoc21_final_report.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Project: Detect Unknown Licenses and Indirect License References in Scancode
1515

1616
`ScanCode-toolkit <https://github.com/nexB/scancode-toolkit>`_
1717

18-
`Project Link <https://summerofcode.withgoogle.com/projects/#6116612073062400>`_
18+
`Project Link <https://summerofcode.withgoogle.com/archive/2021/projects/6229596998991872>`_
1919

2020
`Proposal <https://docs.google.com/document/d/1Dp0Hgk38RIMwITTiS-kqfikpkHRi2rjtkotA9CLw8j0/edit?usp=sharing>`_
2121

docs/source/how-to-guides/add_new_license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You need to create a file with:
3131
text as is, with the original formatting intact.
3232

3333
- the data attributes for the license in YAML format as
34-
`YAML frontmatter <https://github.com/eyeseast/python-frontmatter#python-frontmatter>`_.
34+
`YAML frontmatter <https://python-frontmatter.readthedocs.io/en/latest/>`_.
3535

3636
See an example license: `apache-2.0.LICENSE <https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/apache-2.0.LICENSE>`_
3737

docs/source/reference/available_package_parsers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ parsers in scancode-toolkit during documentation builds.
646646
- ``pypi``
647647
- ``pypi_setup_py``
648648
- Python
649-
- https://docs.python.org/3/distutils/setupscript.html
649+
- https://docs.python.org/3.11/distutils/setupscript.html
650650
* - PyPI wheel
651651
- ``*.whl``
652652
- ``pypi``
@@ -692,7 +692,7 @@ parsers in scancode-toolkit during documentation builds.
692692
- None
693693
- https://fedoraproject.org/wiki/Changes/NewRpmDBFormat
694694
* - RPM installed package SQLite database
695-
- ``*var/lib/rpm/rpmdb.sqlite``
695+
- ``*rpm/rpmdb.sqlite``
696696
- ``rpm``
697697
- ``rpm_installed_database_sqlite``
698698
- None

docs/source/reference/license-detection-reference.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ also has been renamed to ``extracted_license_statement``.
299299

300300
.. _license_detections_unique:
301301

302-
New codebase level Unique License Detection
302+
Codebase level Unique License Detection
303303
-------------------------------------------
304304

305305
We now have a new codebase level attribute ``license_detections`` which has Unique
@@ -688,8 +688,8 @@ LicenseDetection Data
688688
This is referencing by LicenseDetections objects, and has one or multiple
689689
license matches. This is linked to the resource level detections through
690690
an ``identifier`` attribute present in both resource and codebase level
691-
detections. See the `unique license detections section <license_detections_unique>`_
692-
above for more details on this.
691+
detections. See the :ref:`license_detections_unique` above for more
692+
details on this.
693693

694694
There could be a list of ambiguous detections as a summary to review.
695695
This is WIP, see `scancode-toolkit#3122 <https://github.com/nexB/scancode-toolkit/issues/3122>`_.

src/packagedcode/pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ class PythonSetupPyHandler(BaseExtractedPythonLayout):
643643
default_package_type = 'pypi'
644644
default_primary_language = 'Python'
645645
description = 'Python setup.py'
646-
documentation_url = 'https://docs.python.org/3/distutils/setupscript.html'
646+
documentation_url = 'https://docs.python.org/3.11/distutils/setupscript.html'
647647

648648
@classmethod
649649
def parse(cls, location):

0 commit comments

Comments
 (0)