Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
70a29c1a
Commit
70a29c1a
authored
Jul 27, 2015
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address comments, wait for travis pass
parent
46438528
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
.travis.yml
.travis.yml
+1
-0
links.go
cmd/linkcheck/links.go
+7
-0
pre-commit
hooks/pre-commit
+1
-1
No files found.
.travis.yml
View file @
70a29c1a
...
@@ -19,6 +19,7 @@ script:
...
@@ -19,6 +19,7 @@ script:
-
PATH=$GOPATH/bin:$PATH ./hack/verify-generated-deep-copies.sh
-
PATH=$GOPATH/bin:$PATH ./hack/verify-generated-deep-copies.sh
-
PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-gendocs.sh
-
PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-gendocs.sh
-
PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-swagger-spec.sh
-
PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-swagger-spec.sh
-
PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-linkcheck.sh
-
godep go test ./cmd/mungedocs
-
godep go test ./cmd/mungedocs
notifications
:
notifications
:
...
...
cmd/linkcheck/links.go
View file @
70a29c1a
...
@@ -14,6 +14,13 @@ See the License for the specific language governing permissions and
...
@@ -14,6 +14,13 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
//This command checks if the hyperlinks in files are valid. It checks the files
//with 'fileSuffix' in 'rootDir' for URLs that match 'prefix'. It trims the
//'prefix' from the URL, uses what's left as the relative path to repoRoot to
//verify if the link is valid. For example:
//$ linkcheck --root-dir=${TYPEROOT} --repo-root=${KUBE_ROOT} \
// --file-suffix=types.go --prefix=http://releases.k8s.io/HEAD
package
main
package
main
import
(
import
(
...
...
hooks/pre-commit
View file @
70a29c1a
...
@@ -100,7 +100,7 @@ echo "${reset}"
...
@@ -100,7 +100,7 @@ echo "${reset}"
echo
-ne
"Checking for links in API descriptions... "
echo
-ne
"Checking for links in API descriptions... "
if
!
hack/verify-linkcheck.sh
>
/dev/null
;
then
if
!
hack/verify-linkcheck.sh
>
/dev/null
;
then
echo
"
${
red
}
ERROR!"
echo
"
${
red
}
ERROR!"
echo
"Some links in pkg/api/.*types.go
is outdated. They require
manual fix."
echo
"Some links in pkg/api/.*types.go
are outdated. They require a
manual fix."
exit_code
=
1
exit_code
=
1
else
else
echo
"
${
green
}
OK"
echo
"
${
green
}
OK"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment