🐛 fix doc plugin build fail

This commit is contained in:
yanyongyu
2022-01-08 19:36:19 +08:00
parent 304118c98e
commit 95415659ce
3 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,8 @@ def init():
if host in ["0.0.0.0", "127.0.0.1"]:
host = "localhost"
logger.opt(colors=True).info(
f"Nonebot docs will be running at: " f"<b><u>http://{host}:{port}/docs/</u></b>"
f"Nonebot docs will be running at: "
f"<b><u>http://{host}:{port}/website/</u></b>"
)

View File

@ -9,4 +9,4 @@ def register_route(driver: Driver):
static_path = str((Path(__file__).parent / ".." / "dist").resolve())
app.mount("/docs", StaticFiles(directory=static_path, html=True), name="docs")
app.mount("/website", StaticFiles(directory=static_path, html=True), name="docs")