diff --git a/conf.py b/conf.py index b57b53a7cf..8224529c7b 100644 --- a/conf.py +++ b/conf.py @@ -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. diff --git a/make_help_scripts/check_links.py b/make_help_scripts/check_links.py index 0fbe18d600..d6a1d9ca7a 100755 --- a/make_help_scripts/check_links.py +++ b/make_help_scripts/check_links.py @@ -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)