docs: Don't lint external links when running in CI (#12058)

Original behaviour did not take effect in CI due to a different entrypoint.

This restores the original behaviour (which will link external links when using make -C build.assets test-docs) but disables the external linting in CI for reliability.

Updates #11940
This commit is contained in:
Gus Luxton 2022-04-19 13:00:17 -03:00 committed by GitHub
parent 2d95a8717e
commit 6090379bce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -1,11 +1,9 @@
steps:
- name: quay.io/gravitational/next:main
id: docs-test
env:
- WITH_EXTERNAL_LINKS=true
entrypoint: /bin/bash
dir: /src
args:
- -c
- ln -s /workspace /src/content && yarn markdown-lint-external-links
args:
- -c
- ln -s /workspace /src/content && yarn markdown-lint
timeout: 10m

View file

@ -415,7 +415,7 @@ docsbox:
.PHONY:test-docs
test-docs: docsbox
docker run --platform=linux/amd64 -i $(NOROOT) -v $$(pwd)/..:/src/content $(DOCSBOX) \
/bin/sh -c "yarn markdown-lint"
/bin/sh -c "yarn markdown-lint-external-links"
#
# Print the Go version used to build Teleport.