forked from googleforgames/quilkin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Documentation test gen, links, images, etc.
Introduces both building the documentation sites with `mdbook` and `cargo doc` as well as placing them in the same directory structure as they exist in on GitHub pages. Utilising `htmltest` to test the links, images, scripts etc in the `mdbook` pages (there are lots of invalid anchors in the rustdoc, so not testing the links for now - but we could later). To use locally: `make test-docs` will run the tests for you. Extra notes: * Had to use a fork of `htmltest`, as awaiting the merging of a critical bugfix. * Split up each of the test targets in `cloudbuild.yaml`. This requires a bit more work when writing new test targets in the Makefile, but will be easier to determine why things go wrong in CI. * Broke up the Dockerfile into sections, to make it faster for local rebuilding. Fix googleforgames#367
- Loading branch information
1 parent
58ac663
commit da7365e
Showing
4 changed files
with
77 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2021 Google LLC All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
TestFilesConcurrently: false | ||
IgnoreInternalEmptyHash: true | ||
IgnoreEmptyHref: true | ||
CheckExternal: true | ||
ExternalTimeout: 60 | ||
IgnoreURLs: | ||
- "http://localhost:9091/" | ||
IgnoreInternalURLs: | ||
- "book/print.html" | ||
- "print.html" | ||
- "../print.html" | ||
IgnoreDirs: | ||
- "api" | ||
HTTPHeaders: | ||
User-Agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" | ||
Accept: "text/html" |