mirror of
https://github.com/Ukendio/jecs.git
synced 2025-11-14 15:32:53 +00:00
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:
parent
57e653fa78
commit
d89c50ce5e
2 changed files with 2 additions and 1 deletions
|
|
@ -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" },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue