Skip to content

Commit

Permalink
ci: remove link checker (#2075)
Browse files Browse the repository at this point in the history
* ci: allow link-check to fail

* ci: drop link-check apparatus

* chore: delete wip workflow
  • Loading branch information
agoose77 committed Jan 5, 2023
1 parent f632798 commit 120ad0c
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 120ad0c

Please sign in to comment.