sigh
parent
11919ff3d0
commit
002b44f6c7
|
@ -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
|
relative to the root URL. this is a dirty hack to save links during
|
||||||
preview."""
|
preview."""
|
||||||
dots = os.path.join(*['..' for _ in range(depth)])
|
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)
|
return re.sub(LINK_RE, repl, header_content)
|
||||||
|
|
||||||
def compile_wiki(source_path: str, dest_path: str) -> None:
|
def compile_wiki(source_path: str, dest_path: str) -> None:
|
||||||
|
|
Loading…
Reference in New Issue