From 120ad0ccbb31e90f188cd1819429e93a8c956637 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 5 Jan 2023 22:47:10 +0000 Subject: [PATCH] ci: remove link checker (#2075) * ci: allow link-check to fail * ci: drop link-check apparatus * chore: delete wip workflow --- .github/workflows/docs.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3af61a159e..fd2c050915 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -214,34 +214,6 @@ jobs: run: sphinx-build -M html . _build/ working-directory: docs - - name: Check links - id: check-links - run: sphinx-build -M linkcheck . _build/ - working-directory: docs - - - name: Output annotations - if: success() || steps.check-links.outcome == 'failure' - run: | - import pathlib - import json - - docs_path = pathlib.Path("docs") - output_path = docs_path / "_build" / "linkcheck" / "output.json" - with output_path.open() as f: - data = [json.loads(l) for l in f] - - for record in data: - if record['status'] != "broken": - continue - record['path'] = (docs_path / record['filename']) - print( - "::error file={path},line={lineno}::{uri} URI was {status} (code: {code}): {info}".format_map(record) - ) - print( - "??file={path},line={lineno}??{uri} URI was {status} (code: {code}): {info}".format_map(record) - ) - shell: python - - name: Upload docs artefact uses: actions/upload-artifact@v3 with: