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

(cherry picked from commit 6cc9559)
  • Loading branch information
christophfroehlich authored and mergify[bot] committed Nov 17, 2024
1 parent bbc1904 commit d7c454b
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 @@ -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

0 comments on commit d7c454b

Please sign in to comment.