openziti / ziti-doc

Documentation describing the usage of the Ziti platform.
https://openziti.io
Apache License 2.0
34 stars 41 forks source link

detect broken links #263

Closed qrkourier closed 1 year ago

qrkourier commented 1 year ago
docker run --rm -t --network host -e INPUT_URL="http://localhost:3000" -e INPUT_CMD_PARAMS="--color=always" peru/my-broken-link-checker
qrkourier commented 1 year ago
docker run --rm --network=host raviqqe/muffet http://127.0.1.1:3000 --color=always --exclude="https://(EXWPKK5PV4-dsn.algolia.net|www.googletagmanager.com|mermaid-js.github.io|mermaid.live)"
qrkourier commented 1 year ago
docker run --rm --network=host raviqqe/muffet http://127.0.1.1:3000 --color=always --exclude="https://(EXWPKK5PV4-dsn.algolia.net|www.googletagmanager.com|mermaid-js.github.io|mermaid.live|github.com/openziti/ziti-doc/blob/main/docusaurus/|play.google.com/store/apps/details\?id=io\.netfoundry\.ziti\.tunnel|openziti.github.io|github.com/openziti/ziti-doc/tree/main/docusaurus/)|#docusaurus_skipToContent_fallback$"
qrkourier commented 1 year ago

It is sufficient to fail the build if a new broken link is introduced. It may be necessary to poll the GH API for the GH Pages bot event that indicates publishing succeeded before crawling for broken links.