Skip to content

Commit 850399b

Browse files
authored
Merge pull request #1909 from AyanSinhaMahapatra/fix-links-md
Fix broken links and Add awesome_bot linkcheck
2 parents 58b585e + 3936b4e commit 850399b

12 files changed

Lines changed: 36 additions & 16 deletions

.github/ISSUE_TEMPLATE/--first-timers-only.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ docs.
2020

2121
### A first-timer's Issue
2222

23-
A [first-timers-only issue](https://github.com/nexB/scancode-toolkit/labels/%20first%20timers%20only)
23+
A [first-timers-only issue](https://github.com/nexB/scancode-toolkit/labels/first%20timers%20only)
2424
means we've worked to make it more legible to folks who either **haven't contributed to our codebase before,
2525
or even folks who haven't contributed to open source before**.
2626

@@ -63,7 +63,7 @@ If this happens to you, don't sweat it! Grab another open issue.
6363
easily see if someone's already started on it.
6464

6565
👥- **If someone seems stuck, offer them some help!** Otherwise,
66-
[take a look at some other issues you can help with](https://github.com/nexB/scancode-toolkit/labels/%20first%20timers%20only).
66+
[take a look at some other issues you can help with](https://github.com/nexB/scancode-toolkit/labels/20first%20timers%20only).
6767
Thanks!
6868

6969
### 🤔❓ Questions?
@@ -92,7 +92,7 @@ This task list makes it easier for the maintainers to track your Progress, so up
9292

9393
- [ ] **Review Guidelines** Check out our Code of Conduct and Contributing Guidelines before you start working.
9494

95-
- [ ] **Refer Documentation** Refer [docuementation](https://aboutcode.readthedocs.io/en/latest/scancode-toolkit/contribute/contrib_doc.html)
95+
- [ ] **Refer Documentation** Refer [docuementation](https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_doc.html)
9696
for more help on the contribution process and to understand our Sphinx and reStructuredText built
9797
documentation generation better.
9898

.github/ISSUE_TEMPLATE/--good-first-issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Make sure all these boxes are checked before your pull request (PR) is ready to
6363
- [ ] 📝 **Code your Solution**
6464

6565
- [ ] 📝 **Run the tests locally**
66-
Refer [Documentation](https://aboutcode.readthedocs.io/en/latest/scancode-toolkit/contribute/contrib_dev.html#running-tests)
66+
Refer [Documentation](https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_dev.html#running-tests)
6767

6868
- [ ] 💾 **Commit and Push** your changes. Do check out this documentation on
6969
[writing good commit messages](https://aboutcode.readthedocs.io/en/latest/aboutcode-docs/writing_good_commit_messages.html)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Make sure these boxes are checked before your pull request (PR) is ready to be r
1515
* [ ] Reviewed [contribution guidelines](https://github.com/nexB/scancode-toolkit/blob/develop/CONTRIBUTING.rst)
1616
* [ ] PR is descriptively titled 📑 and links the original issue above 🔗
1717
* [ ] Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
18-
Run [tests](https://aboutcode.readthedocs.io/en/latest/scancode-toolkit/contribute/contrib_dev.html#running-tests) locally to check for errors.
18+
Run [tests](https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_dev.html#running-tests) locally to check for errors.
1919
* [ ] Commits are in uniquely-named feature branch and has no merge conflicts 📁
2020

2121
<!--

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,37 @@ matrix:
7878
python: "3.6"
7979
dist: bionic
8080

81+
# Refer https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_doc.html#continuous-integration
8182
- os: linux
8283
sudo: required
8384
script:
8485
- source bin/activate
8586
- cd docs
87+
# This script tests the Sphinx Documentation build
88+
# Also checks for broken links in the documentation
8689
- ./scripts/sphinx_build_link_check.sh
90+
# This script checks for documentation style errors
8791
- ./scripts/doc8_style_check.sh
8892
language: python
8993
python: "3.6"
9094
dist: bionic
9195

96+
# Refer https://github.com/dkhamsing/awesome_bot#command-line for more info.
97+
- os: linux
98+
sudo: required
99+
before_install:
100+
- gem install awesome_bot
101+
script:
102+
# These check for broken links inside .md files used for GitHub templates
103+
- awesome_bot .github/*.md --allow-redirect --allow-dupe --skip-save-results
104+
- awesome_bot .github/ISSUE_TEMPLATE/*.md --allow-redirect --allow-dupe --skip-save-results
105+
# This checks for broken links inside .rst files at Project Root, like README.rst
106+
- awesome_bot *.rst --allow-redirect --allow-dupe --skip-save-results
107+
# This checks for broken links inside README.md files of plugins/plugins-builtin folders.
108+
- awesome_bot */**/*.md --allow-redirect --allow-dupe --skip-save-results
109+
# This checks for broken links inside Thirdparty .ABOUT files
110+
- awesome_bot */*.ABOUT --allow-redirect --allow-dupe --skip-save-results
111+
92112
addons:
93113
homebrew:
94114
packages:

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Contributing
55
Contributions are welcome and appreciated!
66
Every little bit helps, and credit will always be given.
77

8-
.. _issue : https://github.com/nexB/scancode-toolkit/issue
9-
__ issue_
8+
.. _issues : https://github.com/nexB/scancode-toolkit/issues
9+
__ issues_
1010

1111
If you are new to ScanCode and want to find easy tickets to work on,
1212
check `easy issues <https://github.com/nexB/scancode-toolkit/labels/easy>`_

thirdparty/psutil-5.6.2-cp27-cp27m-linux_x86_64.whl.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
about_resource: psutil-5.6.2-cp27-cp27m-linux_x86_64.whl
22
name: psutil
33
version: 5.6.2
4-
download_url: https://github.com/nexB/scancode-toolkit/raw/295-tests-and-setup/thirdparty/psutil-5.6.2-cp27-cp27m-linux_x86_64.whl
4+
download_url: https://github.com/nexB/scancode-toolkit/blob/develop/thirdparty/psutil-5.6.2-cp27-cp27m-linux_x86_64.whl
55
description: Cross-platform lib for process and system monitoring in Python
66
homepage_url: https://github.com/giampaolo/psutil
77
license_expression: bsd-new

thirdparty/psutil-5.6.2-cp36-cp36m-linux_x86_64.whl.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
about_resource: psutil-5.6.2-cp36-cp36m-linux_x86_64.whl
22
name: psutil
33
version: 5.6.2
4-
download_url: https://github.com/nexB/scancode-toolkit/raw/295-tests-and-setup/thirdparty/psutil-5.6.2-cp36-cp36m-linux_x86_64.whl
4+
download_url: https://github.com/nexB/scancode-toolkit/blob/develop/thirdparty/psutil-5.6.2-cp36-cp36m-linux_x86_64.whl
55
description: Cross-platform lib for process and system monitoring in Python
66
homepage_url: https://github.com/giampaolo/psutil
77
license_expression: bsd-new

thirdparty/publicsuffix2-2.20180921-py2.py3-none-any.whl.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ licenses:
2222
name: Mozilla Public License 2.0
2323
name: publicsuffix2
2424
notice_file: publicsuffix2-2.20180921-py2.py3-none-any.whl.NOTICE
25-
notice_url: https://github.com/nexB/python-publicsuffix2/blob/develop/publicsuffix.LICENSE
25+
notice_url: https://github.com/nexB/python-publicsuffix2/blob/develop/src/publicsuffix2/mpl-2.0.LICENSE
2626
owner: nexB
2727
owner_url: http://www.nexb.com/
2828
redistribute: true

thirdparty/py2-ipaddress-3.4.1.tar.gz.ABOUT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Python 2.7 backport of the Python 3.3 ipaddress module. Not all 3.3
88
is supported, due to the lack of a distinct bytes type in Python 2.7. Nevertheless,
99
it is quite useful if you're stuck with Python 2.7.
1010
download_url: https://files.pythonhosted.org/packages/06/f2/ff20f2d2fd4757be329c8ecb81e9e7fa3bec0b65445821e3a575410cf194/py2-ipaddress-3.4.1.tar.gz
11-
homepage_url: https://bitbucket.org/kwi/py2-ipaddress
11+
homepage_url: https://github.com/kwi-dk/py2-ipaddress
1212
license_expression: python AND public-domain
1313
licenses:
1414
- file: public-domain.LICENSE
@@ -23,5 +23,5 @@ notice_file: py2-ipaddress-3.4.1.tar.gz.NOTICE
2323
owner: Google
2424
owner_url: http://www.google.com/intl/en/about/index.html
2525
track_changes: true
26-
vcs_url: https://bitbucket.org/kwi/py2-ipaddress
26+
vcs_url: https://github.com/kwi-dk/py2-ipaddress
2727
version: 3.4.1

thirdparty/py2_ipaddress-3.4.1-py2-none-any.whl.ABOUT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Python 2.7 backport of the Python 3.3 ipaddress module. Not all 3.3
66
is supported, due to the lack of a distinct bytes type in Python 2.7. Nevertheless,
77
it is quite useful if you're stuck with Python 2.7.
88
download_url: https://files.pythonhosted.org/packages/06/f2/ff20f2d2fd4757be329c8ecb81e9e7fa3bec0b65445821e3a575410cf194/py2-ipaddress-3.4.1.tar.gz
9-
homepage_url: https://bitbucket.org/kwi/py2-ipaddress
9+
homepage_url: https://github.com/kwi-dk/py2-ipaddress
1010
license_expression: python AND public-domain
1111
licenses:
1212
- file: public-domain.LICENSE
@@ -21,5 +21,5 @@ notice_file: py2-ipaddress-3.4.1.tar.gz.NOTICE
2121
owner: Google
2222
owner_url: http://www.google.com/intl/en/about/index.html
2323
track_changes: true
24-
vcs_url: https://bitbucket.org/kwi/py2-ipaddress
24+
vcs_url: https://github.com/kwi-dk/py2-ipaddress
2525
version: 3.4.1

0 commit comments

Comments
 (0)