Link checking: update ignore rules for use with htmltest 0.16.0 (#1034)

This commit is contained in:
Patrice Chalin 2022-08-14 16:01:07 -04:00 committed by GitHub
parent 3687d1caa8
commit 724220a3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 30 deletions

View File

@ -1,36 +1,16 @@
DirectoryPath: public
IgnoreAltMissing: true
IgnoreDirectoryMissingTrailingSlash: true
CheckDoctype: false # Sadly, this is false only because of `google*.html`
CheckDoctype: false # Sadly, this is false only because of `static/google*.html`
IgnoreURLs:
- ^(\.\./)?api/?$
- ^/docs/(languages|platforms/android)/[-\w]+/(api|daily-builds)/$
- ^/grpc/python/grpc\.html\?#grpc\.(Stream|Unary)+MultiCallable
- ^https?://localhost
- http://bit\.ly/gRPC18survey # survey is closed and DNE
- https://(www.)?envoyproxy.io # valid link but flakey (https://github.com/envoyproxy/envoyproxy.github.io/issues/193)
- ^http://bit\.ly/gRPC18survey # survey is closed and DNE
- ^https://(www\.)?envoyproxy.io$ # valid link but flakey (https://github.com/envoyproxy/envoyproxy.github.io/issues/193)
- ^https://twitter.com/grpcio$ # valid and unlikely to change
IgnoreInternalURLs:
- ../api
- /docs/languages/cpp/api/
- /docs/languages/csharp/api/
- /docs/languages/csharp/daily-builds/
- /docs/languages/dart/api/
- /docs/languages/go/api/
- /docs/languages/java/api/
- /docs/languages/kotlin/api
- /docs/languages/kotlin/api/
- /docs/languages/node/api/
- /docs/languages/objective-c/api/
- /docs/languages/php/api/
- /docs/languages/php/daily-builds/
- /docs/languages/python/api/
- /docs/languages/python/daily-builds/
- /docs/languages/ruby/api/
- /docs/languages/ruby/daily-builds/
- /docs/platforms/android/java/api/
- /docs/platforms/android/kotlin/api/
- /grpc/cpp/classgrpc_1_1_completion_queue.html
- /grpc/python/_modules/grpc.html#Server
- /grpc/python/grpc.html?#grpc.StreamStreamMultiCallable
- /grpc/python/grpc.html?#grpc.StreamUnaryMultiCallable
- /grpc/python/grpc.html?#grpc.UnaryStreamMultiCallable
- /grpc/python/grpc.html?#grpc.UnaryUnaryMultiCallable
- api/
- daily-builds

View File

@ -2,7 +2,7 @@ HTMLTEST?=htmltest # Specify as make arg if different
HTMLTEST_ARGS?=--skip-external
HTMLTEST_DIR=tmp
# Use $(HTMLTEST) in PATH, if available; otherwise, we'll get a copy
# Use $(HTMLTEST) in PATH, if available; otherwise, get a copy
ifeq (, $(shell which $(HTMLTEST)))
override HTMLTEST=$(HTMLTEST_DIR)/bin/htmltest
ifeq (, $(shell which $(HTMLTEST)))
@ -10,7 +10,9 @@ GET_LINK_CHECKER_IF_NEEDED=get-link-checker
endif
endif
check-links: $(GET_LINK_CHECKER_IF_NEEDED)
check-links: $(GET_LINK_CHECKER_IF_NEEDED) htmltest
htmltest:
$(HTMLTEST) $(HTMLTEST_ARGS)
get-link-checker:

View File

@ -28,7 +28,7 @@ For more information, see the following [Kotlin pages][]:
- [Quick start](/docs/languages/kotlin/quickstart/)
- [Basics tutorial](/docs/languages/kotlin/basics/)
- [API reference](/docs/languages/kotlin/api)
- [API reference](/docs/languages/kotlin/api/)
[blog]: https://cloud.google.com/blog/products/application-development/use-grpc-with-kotlin
[Cloud Run]: https://cloud.run