Skip to content

Commit 6269abb

Browse files
authored
fix: some broken links fuond by html-proofer (#223)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 85b0083 commit 6269abb

File tree

7 files changed

+56
-8
lines changed

7 files changed

+56
-8
lines changed

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ end
2828
group :development do
2929
# Verify good coding practices in Ruby files
3030
gem 'rubocop', '~>1.52', require: false
31+
32+
# Check links. Use:
33+
# bundle exec jekyll build
34+
# bundle exec htmlproofer --assume_extension '.html' ./_site
35+
gem 'html-proofer'
3136
end
3237

3338
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,47 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
Ascii85 (1.1.0)
45
addressable (2.8.4)
56
public_suffix (>= 2.0.2, < 6.0)
7+
afm (0.2.2)
68
ast (2.4.2)
9+
async (2.6.2)
10+
console (~> 1.10)
11+
fiber-annotation
12+
io-event (~> 1.1)
13+
timers (~> 4.1)
714
colorator (1.1.0)
815
concurrent-ruby (1.2.2)
16+
console (1.17.2)
17+
fiber-annotation
18+
fiber-local
919
em-websocket (0.5.3)
1020
eventmachine (>= 0.12.9)
1121
http_parser.rb (~> 0)
22+
ethon (0.16.0)
23+
ffi (>= 1.15.0)
1224
eventmachine (1.2.7)
1325
ffi (1.15.5)
26+
fiber-annotation (0.2.0)
27+
fiber-local (1.0.0)
1428
forwardable-extended (2.6.0)
1529
google-protobuf (3.23.3-x86_64-darwin)
1630
google-protobuf (3.23.3-x86_64-linux)
31+
hashery (2.1.2)
32+
html-proofer (5.0.7)
33+
addressable (~> 2.3)
34+
async (~> 2.1)
35+
nokogiri (~> 1.13)
36+
pdf-reader (~> 2.11)
37+
rainbow (~> 3.0)
38+
typhoeus (~> 1.3)
39+
yell (~> 2.0)
40+
zeitwerk (~> 2.5)
1741
http_parser.rb (0.8.0)
1842
i18n (1.14.1)
1943
concurrent-ruby (~> 1.0)
44+
io-event (1.2.2)
2045
jekyll (4.3.2)
2146
addressable (~> 2.4)
2247
colorator (~> 1.0)
@@ -55,12 +80,22 @@ GEM
5580
rb-fsevent (~> 0.10, >= 0.10.3)
5681
rb-inotify (~> 0.9, >= 0.9.10)
5782
mercenary (0.4.0)
83+
nokogiri (1.15.3-x86_64-darwin)
84+
racc (~> 1.4)
85+
nokogiri (1.15.3-x86_64-linux)
86+
racc (~> 1.4)
5887
parallel (1.23.0)
5988
parser (3.2.2.3)
6089
ast (~> 2.4.1)
6190
racc
6291
pathutil (0.16.2)
6392
forwardable-extended (~> 2.6)
93+
pdf-reader (2.11.0)
94+
Ascii85 (~> 1.0)
95+
afm (~> 0.2.1)
96+
hashery (~> 2.0)
97+
ruby-rc4
98+
ttfunk
6499
public_suffix (5.0.1)
65100
racc (1.7.1)
66101
rainbow (3.1.1)
@@ -84,21 +119,29 @@ GEM
84119
rubocop-ast (1.29.0)
85120
parser (>= 3.2.1.0)
86121
ruby-progressbar (1.13.0)
122+
ruby-rc4 (0.1.5)
87123
safe_yaml (1.0.5)
88124
sass-embedded (1.63.6)
89125
google-protobuf (~> 3.23)
90126
rake (>= 13.0.0)
91127
terminal-table (3.0.2)
92128
unicode-display_width (>= 1.1.1, < 3)
129+
timers (4.3.5)
130+
ttfunk (1.7.0)
131+
typhoeus (1.4.0)
132+
ethon (>= 0.9.0)
93133
unicode-display_width (2.4.2)
94134
wdm (0.1.1)
95135
webrick (1.8.1)
136+
yell (2.2.2)
137+
zeitwerk (2.6.8)
96138

97139
PLATFORMS
98140
x86_64-darwin-21
99141
x86_64-linux
100142

101143
DEPENDENCIES
144+
html-proofer
102145
jekyll (~> 4.3)
103146
jekyll-feed
104147
jekyll-seo-tag

_config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ email: [email protected]
33
description: >-
44
This guide is maintained by the scientific Python community for the benefit of
55
fellow scientists and research software engineers.
6-
url: "https://learn.scientific-python.org"
76
github_username: scientific-python
87
source: docs
98

@@ -23,7 +22,7 @@ search_enabled: true
2322
# Aux links for the upper right navigation
2423
aux_links:
2524
"Scientific Python Cookie":
26-
- "//github.com/scientific-python/cookie"
25+
- "https://github.com/scientific-python/cookie"
2726

2827
gh_edit_link: true
2928
gh_edit_link_text: "View source for this page on GitHub."

docs/pages/guides/gha_basic.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ shown on the summary page.
205205
You can output annotations, as well; these show up inline on the code in the PR.
206206
This can be done by
207207
[setting special double-colon outputs](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message),
208-
like `echo "::error file=app.js,line=1::Missing semicolon"`. See []() for a
209-
plugin to do this with pytest.
208+
like `echo "::error file=app.js,line=1::Missing semicolon"`. See
209+
[pytest-github-actions-annotate-failures](https://github.com/pytest-dev/pytest-github-actions-annotate-failures)
210+
for a plugin to do this with pytest.
210211

211212
You can also do this
212213
[by supplying matchers](https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md),
@@ -274,7 +275,7 @@ There are also a few useful tools installed which can really simplify your
274275
workflow or adding custom actions. This includes system package managers (like
275276
brew, chocolaty, NuGet, Vcpkg, etc), as well as a fantastic cross platform one:
276277

277-
- [pipx](https://github.com/pypy/pipx): This is pre-installed on all runners
278+
- [pipx](https://github.com/pypa/pipx): This is pre-installed on all runners
278279
(GitHub uses to set up other things), and is kept up to date. It enables you
279280
to use any PyPI application in a single line with `pipx run <app>`.
280281

docs/pages/guides/packaging_simple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ This is tool specific.
169169
- [Flit info here](https://flit.readthedocs.io/en/latest/pyproject_toml.html#sdist-section).
170170
Flit requires manual inclusion/exclusion in many cases, like using a dirty
171171
working directory.
172-
- [PDM info here](https://pdm.fming.dev/pyproject/tool-pdm/#include-and-exclude-package-files).
172+
- [PDM info here](https://pdm-backend.fming.dev/build_config/#include-or-exclude-files).
173173
- Setuptools still uses `MANIFEST.in`.
174174

175175
{: .warning }

docs/pages/guides/style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ when clearly better (please always use them, they are faster) if you set
441441
args: ["--py38-plus"]
442442
```
443443

444-
[pyupgrade]: https://github.com/asottile/pyupgrade:
444+
[pyupgrade]: https://github.com/asottile/pyupgrade
445445

446446
{: .note }
447447

docs/pages/principles/design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,6 @@ Python can be used to build scientific tools that last and grow well over time.
269269

270270
[the UNIX philosophy]: https://en.wikipedia.org/wiki/Unix_philosophy
271271
[Duck typing]: https://en.wikipedia.org/wiki/Duck_typing
272-
["Stop Writing Classes"]: https:k//www.youtube.com/watch?v=o9pEzgHorH0&t=193s
272+
["Stop Writing Classes"]: https://youtube.com/watch?v=o9pEzgHorH0&t=193s
273273

274274
<!-- prettier-ignore-end -->

0 commit comments

Comments
 (0)