Skip to content

Build documentation and check links #1395

Build documentation and check links

Build documentation and check links #1395

Workflow file for this run

name: Build documentation and check links
on:
workflow_dispatch:
schedule:
# Runs at 1am each day.
- cron: '0 1 * * *'
jobs:
linkcheck:
# don't run cron job on forks
# ref: https://github.com/orgs/community/discussions/26684
if: github.repository == '2i2c-org/docs'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install mystmd
run: pip install mystmd
- name: Download figures
run: python scripts/download-images.py
- name: Build the site and check links
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: myst build --html --check-links --strict