Fix github path in components json (#2423)

This commit is contained in:
Jesse Hills 2022-11-11 16:15:27 +13:00 committed by GitHub
parent 34be440cbe
commit 5e145b5996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def add_component_details(app, pagename, templatename, context, doctree):
page_data = {
"title": context["title"],
"url": context["pageurl"],
"path": context["pagename"],
"path": f"components/{component_name}",
}
if os.path.exists(os.path.join(app.builder.srcdir, "images", component_name + ".png")):
page_data["image"] = app.builder.config.html_baseurl + "/_images/" + component_name + ".png"