File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 74
74
entry : hooks/helmlint.sh
75
75
language : script
76
76
files : \.((ya?ml)|(tpl))$
77
+
78
+ - id : markdown-link-check
79
+ name : markdown-link-check
80
+ description : Run markdown-link-check to check all the relative and absolute links in markdown docs.
81
+ entry : hooks/mdlink-check.sh
82
+ language : script
83
+ files : \.md$
84
+ exclude : vendor\/.*$
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ # OSX GUI apps do not pick up environment variables the same way as Terminal apps and there are no easy solutions,
6
+ # especially as Apple changes the GUI app behavior every release (see https://stackoverflow.com/q/135688/483528). As a
7
+ # workaround to allow GitHub Desktop to work, add this (hopefully harmless) setting here.
8
+ export PATH=$PATH :/usr/local/bin
9
+
10
+ TMP_CONFIG=" $( mktemp) "
11
+ cat > " $TMP_CONFIG " << EOF
12
+ {
13
+ "replacementPatterns": [
14
+ {
15
+ "pattern": "^/",
16
+ "replacement": "file://$( pwd) "
17
+ }
18
+ ]
19
+ }
20
+ EOF
21
+
22
+ markdown-link-check -c " $TMP_CONFIG "
You can’t perform that action at this time.
0 commit comments