Skip to content

Commit 0fa1603

Browse files
julioestgregjkal
andauthored
Update libraries/utils.py
Co-authored-by: Greg Kaleka <greg@gregkaleka.com>
1 parent bc57cee commit 0fa1603

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

libraries/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,16 +392,14 @@ def get_tools(version=None):
392392
- description: str
393393
- url: str (generated for version_specific tools if version provided)
394394
"""
395+
version_slug = version.stripped_boost_url_slug
395396
tools = []
396397
for tool in TOOLS.copy():
397398
tool_dict = tool.copy()
398399
url_path = tool_dict.get("url_path", "")
399400
if tool_dict.get("version_specific"):
400401
if version:
401-
version_slug = version.stripped_boost_url_slug
402-
tool_dict["url"] = (
403-
f"https://www.boost.org/doc/libs/{version_slug}/{url_path}"
404-
)
402+
tool_dict["url"] = f"/doc/libs/{version_slug}/{url_path}"
405403
else:
406404
tool_dict["url"] = ""
407405
else:

0 commit comments

Comments
 (0)