Skip to content

Commit

Permalink
Update to linkchecker (#346)
Browse files Browse the repository at this point in the history
* Don't check gazebosim.org 404 error
* use linkcheck_anchors_ignore_for_url for github instead of ignoring it
  • Loading branch information
christophfroehlich authored Nov 17, 2024
1 parent 2a92e9f commit 6cc9559
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,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

0 comments on commit 6cc9559

Please sign in to comment.