master
nathaniel smith 2017-09-24 22:04:12 -07:00
parent 11919ff3d0
commit 002b44f6c7
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ def update_header_links(header_content:str, depth:int) -> str:
relative to the root URL. this is a dirty hack to save links during
preview."""
dots = os.path.join(*['..' for _ in range(depth)])
repl = os.path.join(dots, wiki)
repl = os.path.join(dots, 'wiki')
return re.sub(LINK_RE, repl, header_content)
def compile_wiki(source_path: str, dest_path: str) -> None: