Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create broken-linkcheck.yml #55246

Merged
merged 53 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
672c258
Create broken-linkcheck.yml
ggold7046 Sep 22, 2023
f355cdf
Update broken-linkcheck.yml
ggold7046 Sep 23, 2023
a8fc4bd
Update broken-linkcheck.yml
ggold7046 Sep 23, 2023
d7d9ba0
Update broken-linkcheck.yml
ggold7046 Sep 23, 2023
53f7a2e
Update broken-linkcheck.yml
ggold7046 Sep 23, 2023
6987819
Update broken-linkcheck.yml
ggold7046 Sep 23, 2023
2d15e1f
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 25, 2023
4e40611
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 25, 2023
d486c3e
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 25, 2023
69eaa34
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 25, 2023
86b7c9c
Update broken-linkcheck.yml
ggold7046 Sep 25, 2023
a037a9b
Update broken-linkcheck.yml
ggold7046 Sep 25, 2023
fc821e5
Update broken-linkcheck.yml
ggold7046 Sep 25, 2023
a902099
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 25, 2023
8484c63
Update broken-linkcheck.yml
ggold7046 Sep 26, 2023
d56f2c5
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 28, 2023
b50eea2
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 28, 2023
60f1655
Update broken-linkcheck.yml
ggold7046 Sep 28, 2023
3a35cd6
Update broken-linkcheck.yml
ggold7046 Sep 28, 2023
a602153
Update .github/workflows/broken-linkcheck.yml
ggold7046 Sep 28, 2023
ef26ad7
Update broken-linkcheck.yml
ggold7046 Sep 29, 2023
55afa65
Update .github/workflows/broken-linkcheck.yml
ggold7046 Oct 5, 2023
84fe04c
Update conf.py
ggold7046 Oct 10, 2023
1193567
Update conf.py
ggold7046 Oct 12, 2023
b54a6eb
Update doc/source/conf.py
ggold7046 Oct 12, 2023
787642d
Update conf.py
ggold7046 Oct 12, 2023
84f5dc4
Update conf.py
ggold7046 Oct 12, 2023
5d7bbf0
Update conf.py
ggold7046 Oct 13, 2023
bf443a6
Update conf.py
ggold7046 Oct 13, 2023
cd90793
Update conf.py
ggold7046 Oct 13, 2023
10d9259
Update conf.py
ggold7046 Oct 13, 2023
eb3daab
Update broken-linkcheck.yml
ggold7046 Oct 13, 2023
e19e2d1
Update doc/source/conf.py
ggold7046 Oct 18, 2023
7099cea
Update conf.py
ggold7046 Oct 18, 2023
36beaed
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 18, 2023
184d54b
Merge branch 'main' into patch-1
ggold7046 Oct 18, 2023
faab0e2
Update .github/workflows/broken-linkcheck.yml
ggold7046 Oct 25, 2023
2d355f3
Update .github/workflows/broken-linkcheck.yml
ggold7046 Oct 25, 2023
d148d53
Update .github/workflows/broken-linkcheck.yml
ggold7046 Oct 25, 2023
b6d3825
Update conf.py
ggold7046 Oct 25, 2023
9190aec
Update .github/workflows/broken-linkcheck.yml
ggold7046 Oct 25, 2023
4f7f305
Update conf.py
ggold7046 Oct 25, 2023
930350f
Merge branch 'main' into patch-1
ggold7046 Oct 25, 2023
fb086ea
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 25, 2023
a88d02c
Update conf.py
ggold7046 Oct 26, 2023
8b62ee3
Update conf.py
ggold7046 Oct 26, 2023
6231fd2
Update conf.py
ggold7046 Oct 26, 2023
07ceac4
Merge branch 'main' into patch-1
ggold7046 Oct 26, 2023
f4e9d1c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 26, 2023
fa68f06
Merge branch 'main' into patch-1
ggold7046 Oct 27, 2023
368b4bc
Update .github/workflows/broken-linkcheck.yml
ggold7046 Nov 7, 2023
0b22bea
Update broken-linkcheck.yml
ggold7046 Nov 7, 2023
c36aa09
Update conf.py
ggold7046 Nov 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

ggold7046 marked this conversation as resolved.
Show resolved Hide resolved
ggold7046 marked this conversation as resolved.
Show resolved Hide resolved
- 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 = [
ggold7046 marked this conversation as resolved.
Show resolved Hide resolved
ggold7046 marked this conversation as resolved.
Show resolved Hide resolved
"^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",
]
],
]
Loading