Skip to content

Commit

Permalink
fix docs links for list.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Nov 13, 2024
1 parent e5993b4 commit 8fdf437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adabot/lib/common_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ def get_docs_link(bundle_path, submodule):
with open(f"{bundle_path}/{submodule[1]['path']}/README.rst", "r") as readme:
lines = readme.read().split("\n")
for i in range(10):
if "target" in lines[i] and "readthedocs" in lines[i]:
if "target" in lines[i] and (
"readthedocs" in lines[i] or "docs.circuitpython.org" in lines[i]
):
return lines[i].replace(" :target: ", "")
return None
except FileNotFoundError:
Expand Down

0 comments on commit 8fdf437

Please sign in to comment.