Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
Added Ignore list for broken link checks
  • Loading branch information
ggold7046 committed Oct 10, 2023
1 parent 55afa65 commit 84fe04c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,3 +798,35 @@ def setup(app):
app.add_autodocumenter(AccessorMethodDocumenter)
app.add_autodocumenter(AccessorCallableDocumenter)
app.add_directive("autosummary", PandasAutosummary)


#### Ignore list for broken link checks

import re
import requests

# Fetch the content of the ci file
pipeline_url = ("https://pipelinesghubeus22.actions.githubusercontent.com/"
"xZyE9jtmkxWlfCAbyu1SHPJOlsa2huNFYcxohSTomy6EbdNZT9/"
"_apis/pipelines/1/runs/531865/signedlogcontent/2?"
"urlExpires=2023-10-08T10%3A02%3A18.0563894Z&"
"urlSigningMethod=HMACV1&"
"urlSignature=9icPkVbCE2Ya0M5%2FY03N8fkFuDfYBn%2F"
"DyJ93o2R4%2BWk%3D")

response = requests.get(pipeline_url)
ignore_patterns = response.text.splitlines()

# List to store broken links
broken_links = []

# Ignore links based on patterns from ci file
for pattern in ignore_patterns:
# Compile the regular expression pattern
regex_pattern = re.compile(pattern)

# Check if any broken link matches the pattern
ignored_links = [link for link in broken_links if regex_pattern.search(link)]

print(f"Ignored links matching pattern {pattern}:")
print(ignored_links)

0 comments on commit 84fe04c

Please sign in to comment.