Skip to content

Commit 37236f2

Browse files
committed
add About and Blog
1 parent beef0b5 commit 37236f2

File tree

4 files changed

+74
-4
lines changed

4 files changed

+74
-4
lines changed

Makefile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# patsubst : $(patsubst pattern,replacement,text)
1515
# https://www.gnu.org/software/make/manual/html_node/Text-Functions.html
1616

17+
TIMEOUT ?= 30
18+
1719
.PHONY: default
1820
default: all
1921

@@ -40,17 +42,21 @@ url-check-fails.json \
4042
standard.publiccode.net-url-check-fails.json \
4143
bumperscripter-url-check-fails.json \
4244
publiccode.net-url-check-fails.json \
45+
about.publiccode.net-url-check-fails.json \
46+
blog.publiccode.net-url-check-fails.json \
4347
community-implementation-guide-standard-url-check-fails.json \
4448
standard.publiccode.net-develop-url-check-fails.json \
4549
&: url-check/url-check.py url-check-config.json
46-
url-check/url-check.py --verbose --timeout=20
50+
url-check/url-check.py --verbose --timeout=$(TIMEOUT)
4751

4852
_site/url-check-fails.json _site/index.html &: index.md url-check-fails.json \
4953
badges/standard.publiccode.net.svg \
5054
badges/standard.publiccode.net-develop.svg \
5155
badges/community-implementation-guide-standard.svg \
5256
badges/bumperscripter.svg \
5357
badges/publiccode.net.svg \
58+
badges/about.publiccode.net.svg \
59+
badges/blog.publiccode.net.svg \
5460
vendor/bundle
5561
PAGES_REPO_NWO=publiccodenet/publiccodenet-url-check \
5662
bundle exec jekyll build
@@ -98,6 +104,18 @@ badges/publiccode.net.svg: \
98104
publiccode.net-url-check-fails.json
99105
$(MAKE_BADGE) "publiccode.net" "main"
100106

107+
badges/about.publiccode.net.svg: \
108+
./node_modules/.bin/badge \
109+
./url-check/make-badge \
110+
about.publiccode.net-url-check-fails.json
111+
$(MAKE_BADGE) "about.publiccode.net" "main"
112+
113+
badges/blog.publiccode.net.svg: \
114+
./node_modules/.bin/badge \
115+
./url-check/make-badge \
116+
blog.publiccode.net-url-check-fails.json
117+
$(MAKE_BADGE) "blog.publiccode.net" "main"
118+
101119
.PHONY: build
102120
build: _site/index.html
103121

index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
| [community-implementation-guide-standard (main)](https://github.com/publiccodenet/community-implementation-guide-standard/tree/main) | [![standard badge](badges/community-implementation-guide-standard.svg)](community-implementation-guide-standard-url-check-look.json) |
1212
| [bumperscripter (main)](https://github.com/publiccodenet/bumperscripter/tree/main) | [![bumperscripter badge](badges/bumperscripter.svg)](bumperscripter-url-check-look.json) |
1313
| [publiccode.net (main)](https://github.com/publiccodenet/publiccode.net/tree/main) | [![publiccode.net badge](badges/publiccode.net.svg)](publiccode.net-url-check-look.json) |
14+
| [about.publiccode.net (main)](https://github.com/publiccodenet/about/tree/main) | [![about badge](badges/about.publiccode.net.svg)](about.publiccode.net-url-check-look.json) |
15+
| [blog.publiccode..net (main)](https://github.com/publiccodenet/blog/tree/main) | [![blog badge](badges/blog.publiccode.net.svg)](blog.publiccode.net-url-check-look.json) |
1416

1517
## Overall link check results
1618

url-check-config.json

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
"url": "https://github.com/publiccodenet/publiccode.net.git",
1313
"branch": "main"
1414
},
15+
"about.publiccode.net": {
16+
"url": "https://github.com/publiccodenet/about.git",
17+
"branch": "main"
18+
},
19+
"blog.publiccode.net": {
20+
"url": "https://github.com/publiccodenet/blog.git",
21+
"branch": "main"
22+
},
1523
"community-implementation-guide-standard": {
1624
"url": "https://github.com/publiccodenet/community-implementation-guide-standard.git",
1725
"branch": "main"
@@ -22,23 +30,65 @@
2230
}
2331
},
2432
"ignore_patterns" : {
33+
"^http[s]\\?://archive\\.org/web/": "often times out",
2534
"^http[s]\\?://twitter\\.com": "302; does not serve scripts",
35+
"^http[s]\\?://linkedin\\.com": "302; does not serve scripts",
36+
"^http[s]\\?://www\\.linkedin\\.com": "999; does not serve scripts",
37+
"^http[s]\\?://chat\\.openai\\.com": "302; does not serve scripts",
38+
"^https://github.com/org_name/codebase_name.git": "bogus example URL",
2639
"^http[s]\\?://github\\.com/.*/edit/": "may point to yet-to-exist page",
2740
"^http[s]\\?://docs\\.github\\.com/": "seems blocked as DoS protection",
41+
"^http[s]\\?://github\\.com/[0-9A-Za-z_\\-\\./]\\+/\\(issues\\|pull\\)/[0-9]\\+[\\.,)]*": "ignore github issues and PRs",
2842
"plausible\\.io/js/plausible\\.js": "does not serve to scripts",
2943
"opensource\\.org": "failed: 503 No error",
3044
"belastingdienst\\.nl/wps/wcm/connect/bldcontenten": "regular timeouts",
3145
"reclameland\\.nl/drukken/softcover-boeken": "failed: 403 No error",
46+
"^https://help.miro.com": "403 to script",
3247
"www\\.dta\\.gov\\.au/help-and-advice": "failed: 403 No error",
3348
"^https://pixabay\\.com/": "gives 403 to curl",
3449
"^https://fonts.google.com/download?family=": "bash param in the URL",
3550
"https://standard.publiccode.net/criteria/\\\\2.html": "regex in URL",
3651
"^https://www.go-fair.org/": "gives 400s when run as GitHub workflow",
52+
"^https://support\\.google\\.com/": "gives 404 to curl",
53+
"^https://www\\.komoot\\.com/": "gives 404 to curl, works in browser",
3754
"^https://www\\.grammarly\\.com/": "HTTP/2 405, allow: POST, GET",
55+
"^https://giphy\\.com": "gives 503 to curl",
3856
"^https://www\\.lonebeard\\.com": "defunct, referenced in binary files",
3957
"^http[s]\\?://cipa\\.jp/exif": "defunct, embedded in some .jpg files",
4058
"^http://ns\\.adobe\\.com/": "defunct, embedded in .jpg",
41-
"^http://www.gimp.org/xmp/": "defunct, embedded in .jpg",
42-
"amsterdam\\.nl/en/": "frequent timeouts"
59+
"^http://www\\.gimp\\.org/xmp/": "defunct, embedded in .jpg",
60+
"^http://www\\.inkscape\\.org/namespaces/inkscape": "defunct, in .svg",
61+
"^http[s]\\?://sodipodi\\.sourceforge\\.net/DTD/sodipodi-0\\.dtd": "defunct, in SVGs",
62+
"^http[s]\\?://www\\.omg\\.org/spec/.*/20100524": "defunct, embedded in old .bpmn files",
63+
"^http[s]\\?://bpmn.io/schema/bpmn": "unreliable",
64+
"^http[s]\\?://www\\.un\\.org/en/content/": "frequent timeout",
65+
"^http[s]\\?://arkitektur\\.digst\\.dk/node/1173": "times out",
66+
"^http[s]\\?://eur-lex\\.europa\\.eu/legal-content/EN/TXT": "timeouts",
67+
"^https://www\\.uwv\\.nl": "gives 404 to curl",
68+
"listennotes\\.com/": "frequent timeouts",
69+
"lists\\.publiccode\\.net/mailman/": "frequent timeouts",
70+
"https://wetten\\.overheid\\.nl/BWBR0025279/2013-01-01": "times out",
71+
"amsterdam\\.nl/en/": "frequent timeouts",
72+
"^http[s]\\?://www\\.figma\\.com": "gives 404 to curl"
73+
},
74+
"transforms" : {
75+
"sed 's@/[\\.,)]*$@/@'":
76+
"remove trailing punctuation from links ending in '/'",
77+
"sed 's@\\.net[\\.,)]*[email protected]@'":
78+
"remove trailing punctuation from links ending in '.net'",
79+
"sed 's@\\.com[\\.,)]*[email protected]@'":
80+
"remove trailing punctuation from links ending in '.com'",
81+
"sed 's@^\\(http.*\\.html\\)[\\.,)]*$@\\1@'":
82+
"remove trailing punctuation from links ending in '.html'",
83+
"sed 's@^\\(http.*\\.pdf\\)[\\.,)]*$@\\1@'":
84+
"remove trailing punctuation from links ending in '.pdf'",
85+
"sed 's@Open_air_school).$@Open_air_school@'":
86+
"remove trailing punctuation'",
87+
"sed 's@\\(nextcloud/index.php/s/[0-9a-zA-Z]*\\)[\\.,)]*$@\\1@'":
88+
"remove trailing punctuation from nextcloud files",
89+
"sed 's@poortwachter[\\.,)]*$@poortwachter@'":
90+
"remove trailing punctuation",
91+
"sed 's@\\(publiccode\\.net/careers/marketing\\)[\\.),:]*@\\1@'":
92+
"remove trailing punctuation"
4393
}
4494
}

0 commit comments

Comments
 (0)