From 002b44f6c768b1533566b9f8cb733f248bbcfa52 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Sun, 24 Sep 2017 22:04:12 -0700 Subject: [PATCH] sigh --- tildewiki/compilation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildewiki/compilation.py b/tildewiki/compilation.py index 1a08040..e710aa5 100644 --- a/tildewiki/compilation.py +++ b/tildewiki/compilation.py @@ -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: