Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Documentation test gen, links, images, etc. #449

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

markmandel
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix

What this PR does / Why we need it:

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.

Which issue(s) this PR fixes:

Closes #367

Special notes for your reviewer:

  • 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.

@markmandel markmandel added kind/feature New feature or request area/tests Unit tests, integration tests, anything to make sure things don't break labels Nov 30, 2021
@google-cla google-cla bot added the cla: yes label Nov 30, 2021
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
@quilkin-bot
Copy link
Collaborator

Build Succeeded 🥳

Build Id: 4530f2ef-90a7-482e-a860-73cd462e9faf

To build this version:

git fetch git@github.com:googleforgames/quilkin.git pull/449/head:pr_449 && git checkout pr_449
cargo build

@markmandel markmandel merged commit cbda4f4 into googleforgames:main Dec 1, 2021
@markmandel markmandel deleted the ci/test-site branch December 1, 2021 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Unit tests, integration tests, anything to make sure things don't break cla: yes kind/feature New feature or request size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: link checking on documentation
4 participants