Fix the replacement path
This commit is contained in:
parent
95b8b123d7
commit
75cc5563c7
@ -43,7 +43,7 @@ def main(path: Path):
|
|||||||
|
|
||||||
new_path = dir_path / "index.html"
|
new_path = dir_path / "index.html"
|
||||||
p.rename(new_path)
|
p.rename(new_path)
|
||||||
replacements[str(p.relative_to(path))] = str(new_path.relative_to(path))
|
replacements[str(p.relative_to(path))] = f"{new_path.parent.relative_to(path)}/"
|
||||||
|
|
||||||
replace_links(path, replacements)
|
replace_links(path, replacements)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user