forked from plume-lib/checklink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME-developers
32 lines (28 loc) · 1.22 KB
/
README-developers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Maintenance
Here are some instructions about maintaining this package.
Periodically update the base version of `checklink` from one of these URLs:
http://search.cpan.org/dist/W3C-LinkChecker/
https://github.com/w3c/link-checker
To do so, run these commands:
mv checklink checklink-local
wget https://raw.githubusercontent.com/w3c/link-checker/master/bin/checklink
chmod ogu+x checklink
patch -p7 < checklink-upstream.diff
Also perhaps update the diff file in this repository.
Periodically browse to each URL in `checklink-args.txt` and remove any that
are not valid. Executing the following forms in Emacs, one at a time, will
open sets of URLs in your browser. It avoids opening all of the URLs in
one go, which might overpower your browser.
(defun browse-url-checklink (number-prefix)
(find-file "../bin/checklink-args.txt")
(goto-char (point-min))
(browse-url-once-if-matched (concat number-prefix ":\\(http.*\\)") 1))
(browse-url-checklink "0")
(browse-url-checklink "1")
(browse-url-checklink "2")
(browse-url-checklink "3")
(browse-url-checklink "4")
(browse-url-checklink "5")
(browse-url-checklink "6")
;; Just in case the above searches missed something.
(browse-url-checklink "[^0-6]")