Update Help.py

This commit is contained in:
Turan Furkan Topak
2025-06-01 02:18:06 +03:00
committed by Yorik van Havre
parent b5d85fd60e
commit bbdaaf48bd

View File

@@ -237,7 +237,10 @@ def get_location(page) -> tuple:
"FreeCAD-documentation-main",
"wiki",
)
location = os.path.join(location, page + ".md")
for ext in (".md", ".html", ".htm"):
if os.path.exists(os.path.join(location, page + ext)):
location = os.path.join(location, page + ext)
break
return (location, pagename)