Skip to content

Commit 21fa354

Browse files
ggold7046pmeierpre-commit-ci[bot]mroeschke
authored
Create broken-linkcheck.yml (#55246)
* 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]>
1 parent f2794fd commit 21fa354

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Linkcheck
2+
on:
3+
schedule:
4+
# Run monthly on the 1st day of the month
5+
- cron: '0 0 1 * *'
6+
pull_request:
7+
paths:
8+
- ".github/workflows/broken-linkcheck.yml"
9+
- "doc/make.py"
10+
jobs:
11+
linkcheck:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
shell: bash -el {0}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up Conda
24+
uses: ./.github/actions/setup-conda
25+
26+
- name: Build Pandas
27+
uses: ./.github/actions/build_pandas
28+
29+
- name: Run linkcheck script
30+
working-directory: ./doc
31+
run: |
32+
set -o pipefail
33+
python make.py linkcheck | tee linkcheck.txt
34+
35+
- name: Display broken links
36+
if: failure()
37+
working-directory: ./doc
38+
run: grep broken linkcheck.txt

doc/source/conf.py

+47
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import inspect
1515
import logging
1616
import os
17+
import re
1718
import sys
1819
import warnings
1920

@@ -798,3 +799,49 @@ def setup(app):
798799
app.add_autodocumenter(AccessorMethodDocumenter)
799800
app.add_autodocumenter(AccessorCallableDocumenter)
800801
app.add_directive("autosummary", PandasAutosummary)
802+
803+
804+
# Ignore list for broken links,found in CI run checks for broken-linkcheck.yml
805+
806+
linkcheck_ignore = [
807+
"^http://$",
808+
"^https://$",
809+
*[
810+
re.escape(link)
811+
for link in [
812+
"http://scatterci.github.io/pydata/pandas",
813+
"http://specs.frictionlessdata.io/json-table-schema/",
814+
"https://cloud.google.com/bigquery/docs/access-control#roles",
815+
"https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query",
816+
"https://crates.io/crates/calamine",
817+
"https://devguide.python.org/setup/#macos",
818+
"https://en.wikipedia.org/wiki/Imputation_statistics",
819+
"https://en.wikipedia.org/wiki/Imputation_(statistics",
820+
"https://github.com/noatamir/pandas-dev",
821+
"https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/__init__.py#L1",
822+
"https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/generic.py#L568",
823+
"https://github.com/pandas-dev/pandas/blob/v0.20.2/pandas/core/frame.py#L1495",
824+
"https://github.com/pandas-dev/pandas/issues/174151",
825+
"https://gitpod.io/#https://github.com/USERNAME/pandas",
826+
"https://manishamde.github.io/blog/2013/03/07/pandas-and-python-top-10/",
827+
"https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.table",
828+
"https://nipunbatra.github.io/blog/visualisation/2013/05/01/aggregation-timeseries.html",
829+
"https://nbviewer.ipython.org/gist/metakermit/5720498",
830+
"https://numpy.org/doc/stable/user/basics.byteswapping.html",
831+
"https://pandas-gbq.readthedocs.io/en/latest/changelog.html#changelog-0-8-0",
832+
"https://pandas.pydata.org/pandas-docs/stable/io.html#io-chunking",
833+
"https://pandas.pydata.org/pandas-docs/stable/ecosystem.html",
834+
"https://sqlalchemy.readthedocs.io/en/latest/dialects/index.html",
835+
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245912.htm",
836+
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm",
837+
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002283942.htm",
838+
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245965.htm",
839+
"https://support.sas.com/documentation/cdl/en/imlug/66845/HTML/default/viewer.htm#imlug_langref_sect455.htm",
840+
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002284668.htm",
841+
"https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002978282.htm",
842+
"https://wesmckinney.com/blog/update-on-upcoming-pandas-v0-10-new-file-parser-other-performance-wins/",
843+
"https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022",
844+
"pandas.zip",
845+
]
846+
],
847+
]

0 commit comments

Comments
 (0)