From 0242d85201617d14b4f5be6bdd4ef6f3fbeeec38 Mon Sep 17 00:00:00 2001 From: Zijian Zhang <35801754+futrime@users.noreply.github.com> Date: Sun, 15 Nov 2026 21:54:38 +0800 Subject: [PATCH] docs: move from docs.levimc.org to levimc.org/LegacyScriptEngine/ The project docs are served at levimc.org// now (LiteLDev/levimc.org#99): canonical URLs, sitemap, linkcheck origin, the kit check and links point at https://levimc.org. docs.levimc.org redirects to the same path. --- .github/workflows/build_docs.yml | 2 +- README.md | 4 ++-- README.zh.md | 4 ++-- docs.config.ts | 4 ++-- docs/apis/LanguageSupport.md | 2 +- docs/apis/LanguageSupport.zh.md | 2 +- docs/index.md | 4 ++-- docs/index.zh.md | 4 ++-- docs/tutorials/create_your_first_plugin.md | 2 +- docs/tutorials/create_your_first_plugin.zh.md | 2 +- package.json | 2 +- src/legacy/api/LoggerAPI.cpp | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 7e2d0da6..d220e8b0 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -28,7 +28,7 @@ jobs: - id: check run: | want=$(curl -fsSL https://levimc.org/kit/v2/manifest.json | jq -r '"levimc-kit " + .version + "+" + .build') - have=$(curl -fsSL https://docs.levimc.org/LegacyScriptEngine/ | grep -o 'levimc-kit [^"]*' | head -1) + have=$(curl -fsSL https://levimc.org/LegacyScriptEngine/ | grep -o 'levimc-kit [^"]*' | head -1) echo "live: $have · published: $want" echo "stale=$([ "$want" != "$have" ] && echo true || echo false)" >> "$GITHUB_OUTPUT" diff --git a/README.md b/README.md index 200c9edf..188c06b0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A plugin engine for running LLSE plugins on LeviLamina ## Installation -Please refer to https://docs.levimc.org/LegacyScriptEngine/ +Please refer to https://levimc.org/LegacyScriptEngine/ ## Usage @@ -15,7 +15,7 @@ To access plugin development API hints and scaffolding toolkits, visit the [lega 2. Run the server, then the plugins will be migrated automatically and get a LeviLamina mod manifest (manifest.json) 3. To load them, you need to restart the server -For more information, please refer to [the documentation](https://docs.levimc.org/LegacyScriptEngine/) +For more information, please refer to [the documentation](https://levimc.org/LegacyScriptEngine/) ## Contributing diff --git a/README.zh.md b/README.zh.md index e43ae9ff..d239cd8c 100644 --- a/README.zh.md +++ b/README.zh.md @@ -5,7 +5,7 @@ ## 安装 -请参考 https://docs.levimc.org/LegacyScriptEngine/zh/ +请参考 https://levimc.org/LegacyScriptEngine/zh/ ## 使用 @@ -15,7 +15,7 @@ 2. 运行服务器,然后插件会被自动迁移,并生成 LeviLamina 模组清单(manifest.json) 3. 重启服务器后,插件就会被加载 -更多信息请参见[文档](https://docs.levimc.org/LegacyScriptEngine/zh/) +更多信息请参见[文档](https://levimc.org/LegacyScriptEngine/zh/) ## 贡献 diff --git a/docs.config.ts b/docs.config.ts index c804eebb..5869bfb3 100644 --- a/docs.config.ts +++ b/docs.config.ts @@ -11,8 +11,8 @@ export default defineDocsConfig({ repo: 'https://github.com/LiteLDev/LegacyScriptEngine', editLink: 'https://github.com/LiteLDev/LegacyScriptEngine/edit/develop/docs/:path', contentDir: 'docs', - hostname: 'https://docs.levimc.org', - sitemap: { hostname: 'https://docs.levimc.org' }, + hostname: 'https://levimc.org', + sitemap: { hostname: 'https://levimc.org' }, lastUpdated: true, i18n: { mode: 'suffix', diff --git a/docs/apis/LanguageSupport.md b/docs/apis/LanguageSupport.md index 24366a88..7505dc52 100644 --- a/docs/apis/LanguageSupport.md +++ b/docs/apis/LanguageSupport.md @@ -18,7 +18,7 @@ Currently, LSE supports writing plugins in the following languages: !!! tip If you need to write plugins in native languages such as C++, Go, Rust, etc., please go - to [Home](https://docs.levimc.org/LeviLamina/) for other language documentation + to [Home](https://levimc.org/LeviLamina/) for other language documentation ## JavaScript language support description diff --git a/docs/apis/LanguageSupport.zh.md b/docs/apis/LanguageSupport.zh.md index dc57660e..f9fae92e 100644 --- a/docs/apis/LanguageSupport.zh.md +++ b/docs/apis/LanguageSupport.zh.md @@ -15,7 +15,7 @@ | `Python` | 使用 CPython 引擎运行插件,支持 pip 包管理 | !!! tip - 如果需要使用 C++、Go、Rust 等原生语言编写插件,请移步 [主页](https://docs.levimc.org/LeviLamina/) 查看其他语言文档 + 如果需要使用 C++、Go、Rust 等原生语言编写插件,请移步 [主页](https://levimc.org/LeviLamina/) 查看其他语言文档 ## JavaScript 语言支持说明 diff --git a/docs/index.md b/docs/index.md index 5d685037..e6abead7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -59,12 +59,12 @@ Each engine is its own package variant. Version numbers can be found in === "Client" lip manages server directories only. On the client, install the engine into a LeviLauncher instance that has - LeviLamina (see [Install client on Windows](https://docs.levimc.org/LeviLamina/user_guides/install_on_client/)): + LeviLamina (see [Install client on Windows](https://levimc.org/LeviLamina/user_guides/install_on_client/)): LeviLauncher installs the same variants as on the server, `#lua`, `#quickjs`, `#nodejs` and `#python`, and picks their client builds. Releases up to 0.23.1 name the client builds `#client_lua`, `#client_quickjs`, `#client_nodejs` and `#client_python`, for example `github.com/LiteLDev/LegacyScriptEngine#client_lua@0.17.0-rc.2`. See LeviLauncher's - [Mods & Integrations](https://docs.levimc.org/LeviLauncher/guide/mods-integrations?platform=windows). + [Mods & Integrations](https://levimc.org/LeviLauncher/guide/mods-integrations?platform=windows). ## Usage diff --git a/docs/index.zh.md b/docs/index.zh.md index eee57125..d24d9de4 100644 --- a/docs/index.zh.md +++ b/docs/index.zh.md @@ -57,11 +57,11 @@ features: === "客户端" lip 只管理服务端目录。在客户端上,请把引擎安装到已安装 LeviLamina 的 LeviLauncher 实例中(参见 - [在Windows上安装客户端](https://docs.levimc.org/LeviLamina/zh/user_guides/install_on_client/)):LeviLauncher + [在Windows上安装客户端](https://levimc.org/LeviLamina/zh/user_guides/install_on_client/)):LeviLauncher 会安装与服务端相同的变体 `#lua`、`#quickjs`、`#nodejs` 和 `#python`,并选用它们的客户端版本。0.23.1 及更早的版本 把客户端版本命名为 `#client_lua`、`#client_quickjs`、`#client_nodejs` 和 `#client_python`,例如 `github.com/LiteLDev/LegacyScriptEngine#client_lua@0.17.0-rc.2`。参见 LeviLauncher 的 - [模组与集成](https://docs.levimc.org/LeviLauncher/zh-CN/guide/mods-integrations?platform=windows)。 + [模组与集成](https://levimc.org/LeviLauncher/zh-CN/guide/mods-integrations?platform=windows)。 ## 使用 diff --git a/docs/tutorials/create_your_first_plugin.md b/docs/tutorials/create_your_first_plugin.md index 8d06a8ef..c760b9c1 100644 --- a/docs/tutorials/create_your_first_plugin.md +++ b/docs/tutorials/create_your_first_plugin.md @@ -12,7 +12,7 @@ editor that works well for this tutorial, otherwise [VSCode](https://code.visual editor with a lot of powerful features. You will also need to set up a clean LeviLamina installation, details on how to install LeviLamina can be -found [here](https://docs.levimc.org/LeviLamina/user_guides/install/). This server will be used to test your plugin. +found [here](https://levimc.org/LeviLamina/user_guides/install/). This server will be used to test your plugin. With your IDE in hand, and the server installation complete, you are ready to begin! diff --git a/docs/tutorials/create_your_first_plugin.zh.md b/docs/tutorials/create_your_first_plugin.zh.md index a5783a05..3d33c093 100644 --- a/docs/tutorials/create_your_first_plugin.zh.md +++ b/docs/tutorials/create_your_first_plugin.zh.md @@ -9,7 +9,7 @@ - [Atom](https://github.blog/news-insights/product-news/sunsetting-atom/) 是轻量级的编辑器,在本教程中很好用。 - [VSCode](https://code.visualstudio.com/) 也是一个广泛使用的编辑器,具有很多强大的功能。 -你还需要建立一个干净的LeviLamina安装,关于如何安装LeviLamina的细节可以在 [这里](https://docs.levimc.org/LeviLamina/zh/user_guides/install/) 找到。这个服务器将被用来测试你的插件。 +你还需要建立一个干净的LeviLamina安装,关于如何安装LeviLamina的细节可以在 [这里](https://levimc.org/LeviLamina/zh/user_guides/install/) 找到。这个服务器将被用来测试你的插件。 有了你的开发环境,并完成了服务器的安装,你就可以开始了! diff --git a/package.json b/package.json index b4cc4e7d..d5f7ac30 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "node kit/docs/build.mjs", "preview": "node kit/scripts/serve-pages.mjs dist --base /LegacyScriptEngine/ --port 4173", "typecheck": "tsc --noEmit", - "linkcheck": "node kit/scripts/linkcheck.mjs dist --base /LegacyScriptEngine/ --site-origin https://docs.levimc.org", + "linkcheck": "node kit/scripts/linkcheck.mjs dist --base /LegacyScriptEngine/ --site-origin https://levimc.org", "smoke": "node kit/scripts/smoke.mjs --url http://127.0.0.1:4173/LegacyScriptEngine/" }, "dependencies": { diff --git a/src/legacy/api/LoggerAPI.cpp b/src/legacy/api/LoggerAPI.cpp index 6563e4c9..062dddf9 100644 --- a/src/legacy/api/LoggerAPI.cpp +++ b/src/legacy/api/LoggerAPI.cpp @@ -145,7 +145,7 @@ Local LoggerClass::setConsole(Arguments const& args) { // TODO: implement LSE defined sink, because LL's sinks don't support setLevel logger->setLevel( static_cast(args[1].asNumber().toInt32() - 1) - ); // See LSE's definition https://docs.levimc.org/LegacyScriptEngine/apis/ScriptAPI/Logger/ + ); // See LSE's definition https://levimc.org/LegacyScriptEngine/apis/ScriptAPI/Logger/ } if (args[0].asBoolean().value()) { if (!logger->getSink("ll_default_console")) {