mirror of
https://gitea.tendokyu.moe/eamuse/docs.git
synced 2025-03-01 07:30:39 +01:00
Fix root
This commit is contained in:
parent
9133ff9126
commit
0d264daf1f
4
docs.py
4
docs.py
@ -193,7 +193,7 @@ def generate_footer(base, name, route):
|
|||||||
us_idx = siblings.index(parts[-1])
|
us_idx = siblings.index(parts[-1])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
us_idx = -1
|
us_idx = -1
|
||||||
parent = "/" + ("/".join(parts[:-1]))
|
parent = ROOT + "/" + "/".join(parts[:-1])
|
||||||
if not parent.endswith("/"):
|
if not parent.endswith("/"):
|
||||||
parent += "/"
|
parent += "/"
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ def generate_footer(base, name, route):
|
|||||||
|
|
||||||
if parts:
|
if parts:
|
||||||
crumbs = []
|
crumbs = []
|
||||||
built = "/"
|
built = ROOT + "/"
|
||||||
for i in parts[:-1]:
|
for i in parts[:-1]:
|
||||||
built += f"{i}"
|
built += f"{i}"
|
||||||
if not built.endswith((".html", "/")):
|
if not built.endswith((".html", "/")):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user