Skip to content

Commit 8fdf437

Browse files
committed
fix docs links for list.md file
1 parent e5993b4 commit 8fdf437

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adabot/lib/common_funcs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ def get_docs_link(bundle_path, submodule):
220220
with open(f"{bundle_path}/{submodule[1]['path']}/README.rst", "r") as readme:
221221
lines = readme.read().split("\n")
222222
for i in range(10):
223-
if "target" in lines[i] and "readthedocs" in lines[i]:
223+
if "target" in lines[i] and (
224+
"readthedocs" in lines[i] or "docs.circuitpython.org" in lines[i]
225+
):
224226
return lines[i].replace(" :target: ", "")
225227
return None
226228
except FileNotFoundError:

0 commit comments

Comments
 (0)