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.
This commit is contained in:
Stanislav Laptev 2025-10-13 12:23:24 +03:00
parent 57e653fa78
commit d89c50ce5e
2 changed files with 2 additions and 1 deletions

View file

@ -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" },
],
},
],

View file

@ -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())
```