mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
🐛 fix doc plugin build fail
This commit is contained in:
parent
304118c98e
commit
95415659ce
@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"archive": "yarn workspace nonebot docusaurus docs:version",
|
"archive": "yarn workspace nonebot docusaurus docs:version",
|
||||||
"build": "yarn workspace nonebot build",
|
"build": "yarn workspace nonebot build",
|
||||||
"build:plugin": "cross-env BASE_URL='/docs/' yarn workspace nonebot build",
|
"build:plugin": "cross-env BASE_URL='/website/' yarn workspace nonebot build",
|
||||||
"start": "yarn workspace nonebot start",
|
"start": "yarn workspace nonebot start",
|
||||||
"serve": "yarn workspace nonebot serve",
|
"serve": "yarn workspace nonebot serve",
|
||||||
"clear": "yarn workspace nonebot clear",
|
"clear": "yarn workspace nonebot clear",
|
||||||
|
@ -20,7 +20,8 @@ def init():
|
|||||||
if host in ["0.0.0.0", "127.0.0.1"]:
|
if host in ["0.0.0.0", "127.0.0.1"]:
|
||||||
host = "localhost"
|
host = "localhost"
|
||||||
logger.opt(colors=True).info(
|
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>"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,4 +9,4 @@ def register_route(driver: Driver):
|
|||||||
|
|
||||||
static_path = str((Path(__file__).parent / ".." / "dist").resolve())
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user