mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Fix link tests in mungedocs
This commit is contained in:
parent
1bdc7a29ae
commit
1049ec8594
@ -48,17 +48,17 @@ func TestGoodLinks(t *testing.T) {
|
|||||||
{"[README](https://lwn.net)",
|
{"[README](https://lwn.net)",
|
||||||
"[README](https://lwn.net)"},
|
"[README](https://lwn.net)"},
|
||||||
// _ to -
|
// _ to -
|
||||||
{"[README](https://github.com/kubernetes/kubernetes/tree/master/docs/devel/cli_roadmap.md)",
|
{"[README](https://github.com/kubernetes/kubernetes/tree/master/cmd/mungedocs/testdata/test_dashes.md)",
|
||||||
"[README](../../docs/devel/cli-roadmap.md)"},
|
"[README](../../cmd/mungedocs/testdata/test-dashes.md)"},
|
||||||
// - to _
|
// - to _
|
||||||
{"[README](../../docs/devel/api-changes.md)",
|
{"[README](../../cmd/mungedocs/testdata/test-underscores.md)",
|
||||||
"[README](../../docs/devel/api_changes.md)"},
|
"[README](../../cmd/mungedocs/testdata/test_underscores.md)"},
|
||||||
|
|
||||||
// Does this even make sense? i dunno
|
// Does this even make sense? i dunno
|
||||||
{"[README](/docs/README.md)",
|
{"[README](/docs/README.md)",
|
||||||
"[README](https://github.com/docs/README.md)"},
|
"[README](https://github.com/docs/README.md)"},
|
||||||
{"[README](/kubernetes/kubernetes/tree/master/docs/README.md)",
|
{"[README](/kubernetes/kubernetes/tree/master/cmd/mungedocs/testdata/README.md)",
|
||||||
"[README](../../docs/README.md)"},
|
"[README](../../cmd/mungedocs/testdata/README.md)"},
|
||||||
}
|
}
|
||||||
for i, c := range cases {
|
for i, c := range cases {
|
||||||
in := getMungeLines(c.in)
|
in := getMungeLines(c.in)
|
||||||
|
1
cmd/mungedocs/testdata/README.md
vendored
Normal file
1
cmd/mungedocs/testdata/README.md
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
some text
|
1
cmd/mungedocs/testdata/test-dashes.md
vendored
Normal file
1
cmd/mungedocs/testdata/test-dashes.md
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
some text
|
1
cmd/mungedocs/testdata/test_underscores.md
vendored
Normal file
1
cmd/mungedocs/testdata/test_underscores.md
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
some text
|
Loading…
Reference in New Issue
Block a user