From d89c50ce5ed8291b9dacc57d7d3d78077b553c31 Mon Sep 17 00:00:00 2001 From: Stanislav Laptev Date: Mon, 13 Oct 2025 12:23:24 +0300 Subject: [PATCH] docs: add Observers to API navigation and fix import path Update the VitePress config to include Observers in the API navigation menu. Fix the incorrect import path in the Observers documentation. --- docs/.vitepress/config.mts | 1 + docs/api/observers.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index fa6e9c3..a980a05 100755 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -21,6 +21,7 @@ export default defineConfig({ { text: "jecs", link: "/api/jecs" }, { text: "World", link: "/api/world" }, { text: "Query", link: "/api/query" }, + { text: "Observers", link: "/api/observers" }, ], }, ], diff --git a/docs/api/observers.md b/docs/api/observers.md index 509225a..048948c 100755 --- a/docs/api/observers.md +++ b/docs/api/observers.md @@ -8,7 +8,7 @@ The observers addon is included with jecs and can be imported directly: ```luau local jecs = require(path/to/jecs) -local observers_add = require(path/to/jecs/addons/observers) +local observers_add = require(path/to/jecs/addons/ob) local world = observers_add(jecs.world()) ```