diff --git a/.github/workflows/broken-link-checker.yml b/.github/workflows/broken-link-checker.yml new file mode 100644 index 000000000..b4363b789 --- /dev/null +++ b/.github/workflows/broken-link-checker.yml @@ -0,0 +1,44 @@ +--- +name: Check for broken links + +on: + workflow_dispatch: # allow manual trigger + push: + branches: + - main + schedule: + # run daily at 4 am + # * is a special character in YAML so you have to quote this string + - cron: "0 4 * * *" + +jobs: + index: + runs-on: ubuntu-latest + steps: + - name: Checking links + uses: ScholliYT/Broken-Links-Crawler-Action@v3 + with: + website_url: "https://www.pymc-marketing.io/en/latest/index.html,https://www.pymc-marketing.io/en/latest/getting_started/index.html,https://www.pymc-marketing.io/en/latest/contributing/index.html,https://www.pymc-marketing.io/en/latest/guide/index.html" + # Twitter has a redirect which fails the check, I did a manual check for it and it was working + exclude_url_prefix: "mailto:,https://www.linkedin.com,https://linkedin.com,https://twitter.com" + verbose: "error" + connect_limit_per_host: 50 + resolve_before_filtering: "true" + max_retry_time: 30 + max_retries: 5 + max_depth: 2 + docs: + runs-on: ubuntu-latest + steps: + - name: Checking links + uses: ScholliYT/Broken-Links-Crawler-Action@v3 + with: + website_url: "https://www.pymc-marketing.io/en/latest/notebooks/index.html" + # Twitter has a redirect which fails the check, I did a manual check for it and it was working + exclude_url_prefix: "mailto:,https://www.linkedin.com,https://linkedin.com,https://twitter.com" + verbose: "error" + connect_limit_per_host: 50 + resolve_before_filtering: "true" + max_retry_time: 30 + max_retries: 5 + max_depth: -1 diff --git a/docs/source/index.md b/docs/source/index.md index f89f6895d..e6ede5a76 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -201,7 +201,7 @@ See our example notebooks for [saturated markets](https://www.pymc-marketing.io/ ### Customer Lifetime Value Modeling in Marine Industry -For more videos, webinars and resources, check out the [PyMC Labs YouTube channel](https://www.youtube.com/@PyMC-Labs). +For more videos, webinars and resources, check out the [PyMC Labs YouTube channel](https://www.youtube.com/PyMC-Labs). ---