plots: fix wrong link (#6693)

This commit is contained in:
Paweł Redzyński
2021-10-11 12:22:20 +02:00
committed by GitHub
parent e8b649a75f
commit d6ecef7169
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -30,7 +30,6 @@ class ImageRenderer(Renderer):
img_path = os.path.join(
static, f"{revision}_{filename.replace(os.sep, '_')}"
)
rel_img_path = relpath(img_path, page_dir_path)
with open(img_path, "wb") as fd:
fd.write(image_data)
return """
@@ -38,7 +37,7 @@ class ImageRenderer(Renderer):
<p>{title}</p>
<img src="{src}">
</div>""".format(
title=revision, src=rel_img_path
title=revision, src=(relpath(img_path, page_dir_path))
)
def _convert(self, path: "StrPath"):
+1 -1
View File
@@ -28,7 +28,7 @@ class PlotDataStructureError(DvcException):
def __init__(self):
super().__init__(
"Plot data extraction failed. Please see "
"https://man.dvc.org/plot for supported data formats."
"https://man.dvc.org/plots for supported data formats."
)