From 6f62c1cd25c8de43bf4edde8de892058a1e5d898 Mon Sep 17 00:00:00 2001 From: Matt Vinall Date: Tue, 2 Jan 2024 14:37:56 +0000 Subject: [PATCH] chore: check markdown links --- .github/workflows/check-links.yml | 16 ++++++++++++++++ .github/workflows/gh-pages.yml | 4 ++++ mlc_config.json | 7 +++++++ 3 files changed, 27 insertions(+) create mode 100644 .github/workflows/check-links.yml create mode 100644 mlc_config.json diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000..b754474 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,16 @@ +name: Check Markdown links + +on: + push: + schedule: + - cron: "0 9 * * 0" + +jobs: + markdown-link-check: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - run: ls -al + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-verbose-mode: 'yes' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8e83111..79658b1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -12,16 +12,20 @@ jobs: group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v4 + - name: Configure Git Credentials run: | git config user.name github-actions[bot] git config user.email github-actions[bot]@users.noreply.github.com + - uses: actions/setup-python@v4 with: python-version: 3.12 cache: 'pip' # caching pip dependencies + - name: Install Dependencies run: pip install -r requirements.txt + - name: Deploy if: ${{ github.ref == 'refs/heads/main' }} run: mkdocs gh-deploy --strict --force diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 0000000..e9cb584 --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "^http://localhost" + } + ] +}