Skip to content

Commit

Permalink
Create broken-linkcheck.yml (#55246)
Browse files Browse the repository at this point in the history
* Create broken-linkcheck.yml

Created a Github Action to run the Sphinx linkcheck monthly.
#45409

* Update broken-linkcheck.yml

* Update broken-linkcheck.yml

* Update broken-linkcheck.yml

* Update broken-linkcheck.yml

* Update broken-linkcheck.yml

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update broken-linkcheck.yml

* Update broken-linkcheck.yml

* Update broken-linkcheck.yml

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update broken-linkcheck.yml

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update broken-linkcheck.yml

* Update broken-linkcheck.yml

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update broken-linkcheck.yml

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Philip Meier <[email protected]>

* Update conf.py

Added Ignore list for broken link checks

* Update conf.py

#55246
This is an ignore list for broken links found in CI run checks for broken-linkcheck.yml

* Update doc/source/conf.py

Co-authored-by: Philip Meier <[email protected]>

* Update conf.py

* Update conf.py

* Update conf.py

* Update conf.py

* Update conf.py

* Update conf.py

* Update broken-linkcheck.yml

* Update doc/source/conf.py

Co-authored-by: Philip Meier <[email protected]>

* Update conf.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Matthew Roeschke <[email protected]>

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Matthew Roeschke <[email protected]>

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Matthew Roeschke <[email protected]>

* Update conf.py

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Matthew Roeschke <[email protected]>

* Update conf.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update conf.py

* Update conf.py

* Update conf.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update .github/workflows/broken-linkcheck.yml

Co-authored-by: Matthew Roeschke <[email protected]>

* Update broken-linkcheck.yml

* Update conf.py

---------

Co-authored-by: Philip Meier <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Matthew Roeschke <[email protected]>
  • Loading branch information
4 people authored Nov 7, 2023
1 parent f2794fd commit 21fa354
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/broken-linkcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Linkcheck
on:
schedule:
# Run monthly on the 1st day of the month
- cron: '0 0 1 * *'
pull_request:
paths:
- ".github/workflows/broken-linkcheck.yml"
- "doc/make.py"
jobs:
linkcheck:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Conda
uses: ./.github/actions/setup-conda

- name: Build Pandas
uses: ./.github/actions/build_pandas

- name: Run linkcheck script
working-directory: ./doc
run: |
set -o pipefail
python make.py linkcheck | tee linkcheck.txt
- name: Display broken links
if: failure()
working-directory: ./doc
run: grep broken linkcheck.txt
47 changes: 47 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import inspect
import logging
import os
import re
import sys
import warnings

Expand Down Expand Up @@ -798,3 +799,49 @@ def setup(app):
app.add_autodocumenter(AccessorMethodDocumenter)
app.add_autodocumenter(AccessorCallableDocumenter)
app.add_directive("autosummary", PandasAutosummary)


# Ignore list for broken links,found in CI run checks for broken-linkcheck.yml

linkcheck_ignore = [
"^http://$",
"^https://$",
*[
re.escape(link)
for link in [
"http://scatterci.github.io/pydata/pandas",
"http://specs.frictionlessdata.io/json-table-schema/",
"https://cloud.google.com/bigquery/docs/access-control#roles",
"https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query",
"https://crates.io/crates/calamine",
"https://devguide.python.org/setup/#macos",
"https://en.wikipedia.org/wiki/Imputation_statistics",
"https://en.wikipedia.org/wiki/Imputation_(statistics",
"https://github.com/noatamir/pandas-dev",
"https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/__init__.py#L1",
"https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/generic.py#L568",
"https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/frame.py#L1495",
"https://github.com/pandas-dev/pandas/issues/174151",
"https://gitpod.io/#https://github.com/USERNAME/pandas",
"https://manishamde.github.io/blog/2013/03/07/pandas-and-python-top-10/",
"https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.table",
"https://nipunbatra.github.io/blog/visualisation/2013/05/01/aggregation-timeseries.html",
"https://nbviewer.ipython.org/gist/metakermit/5720498",
"https://numpy.org/doc/stable/user/basics.byteswapping.html",
"https://pandas-gbq.readthedocs.io/en/latest/changelog.html#changelog-0-8-0",
"https://pandas.pydata.org/pandas-docs/stable/io.html#io-chunking",
"https://pandas.pydata.org/pandas-docs/stable/ecosystem.html",
"https://sqlalchemy.readthedocs.io/en/latest/dialects/index.html",
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245912.htm",
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm",
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002283942.htm",
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245965.htm",
"https://support.sas.com/documentation/cdl/en/imlug/66845/HTML/default/viewer.htm#imlug_langref_sect455.htm",
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002284668.htm",
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002978282.htm",
"https://wesmckinney.com/blog/update-on-upcoming-pandas-v0-10-new-file-parser-other-performance-wins/",
"https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022",
"pandas.zip",
]
],
]

0 comments on commit 21fa354

Please sign in to comment.