This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
docs #300
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
schedule: | |
# Scheduled workflows run on the latest commit on the default or base branch. | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 0 * * 3' | |
jobs: | |
markdown-link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Check top-level markdown files | |
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.12 | |
with: | |
max-depth: '0' | |
use-verbose-mode: 'yes' | |
config-file: 'markdown-link-check-config.json' | |
site-link-checker: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3.1.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r docs/requirements.txt | |
- name: Build docs for link check | |
run: mkdocs build | |
# Using liche action to check generated HTML site | |
- name: Link Checker (generated site) | |
id: lc2 | |
uses: peter-evans/link-checker@v1 | |
with: | |
args: -d site/ -r site/ -x "(github.com/weaveworks/ignite($|/issue|/pull|/releases|/commit/|/releases)|squidfunk.github.io|ignite.readthedocs.io)" | |
- name: Fail if there were link errors | |
run: exit ${{ steps.lc2.outputs.exit_code }} |