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

Update to linkchecker (backport #346) #349

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@

github_url = "https://github.com/ros-controls/control.ros.org"

# -- linkchecker options -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#filtering
linkcheck_anchors_ignore_for_url = [
'https://github.com/',
'https://index.ros.org/'
]
linkcheck_ignore = [r'https://gazebosim.org/home']

# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
Expand Down
2 changes: 1 addition & 1 deletion make_help_scripts/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main():
# Check for broken links
with open(LOGFILE, "r") as logfile:
broken_links = [
line for line in logfile if "broken" in line and "github" not in line and "vimeo" not in line]
line for line in logfile if 'broken' in line]

if broken_links:
num_broken = len(broken_links)
Expand Down