diff --git a/website/API/service.md b/website/API/service.md index 76f8d8b5..bfaab554 100644 --- a/website/API/service.md +++ b/website/API/service.md @@ -1,6 +1,6 @@ #api/syscall -Exposes a simple service registry API leveraged by various parts of SilverBullet, see [[Services]]. +Exposes a simple service registry API leveraged by various parts of SilverBullet, see [[Service]]. ## Example ```space-lua diff --git a/website/Architecture.md b/website/Architecture.md index 12244f03..7ded8863 100644 --- a/website/Architecture.md +++ b/website/Architecture.md @@ -24,7 +24,7 @@ A lot of [“built in” functionality](https://github.com/silverbulletmd/silver Syscalls (system calls) are the abstraction used in SilverBullet to cleanly create an API boundary between SilverBullet and extension code (Plugs or Space Lua). A lot of functionality core to SilverBullet (in the editor, the event system, datastore) are exposed through syscalls. ## Events and services -[[Events]] +[[Event]] ## Datastore diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md index 7e2a0dce..577c8cb5 100644 --- a/website/CHANGELOG.md +++ b/website/CHANGELOG.md @@ -10,7 +10,7 @@ Here’s what’s new: * [[Share]]: a new mechanism to push content to external places and pull external content in (also used as the foundation of [[Library]]). This partially replaces many [[Export]] use cases. Export will be more for one-off use cases. * [[Library]]: are now a more “real” thing, and can be distributed via the [[Library Manager]] and curated with [[Repository]]. For instructions on how to build your own libraries, see [[Library/Development]]. Eventually, this mechanism will succeed the `plugs` configuration and `Plugs: Update` mechanism. Plug authors can already start to update their plugs to get ready, usually all that needs to be done is to add a `PLUG.md` file to their repository: [example](https://github.com/silverbulletmd/silverbullet-mermaid/blob/main/PLUG.md). -* [[Services]]: a new mechanism used behind the scenes to power [[Share]], but also [[Export]] and likely other features in the future. Built on top of [[Events]]. +* [[Service]]: a new mechanism used behind the scenes to power [[Share]], but also [[Export]] and likely other features in the future. Built on top of [[Event]]. * [[URIs]] are now a more formalized and centralized mechanism, used by [[Share]] and likely other features in the future. * Removed “Import” support, succeeded by [[Share]]. * [[Tag Picker]]: to quickly navigate to tag pages diff --git a/website/Events.md b/website/Event.md similarity index 80% rename from website/Events.md rename to website/Event.md index 5ac48e2b..be475c16 100644 --- a/website/Events.md +++ b/website/Event.md @@ -1,6 +1,6 @@ SilverBullet has its own event bus. -Events can be subscribed to and dispatched via the [[API/event]] API. Other features, such as [[Services]] are built on top of Events. +Events can be subscribed to and dispatched via the [[API/event]] API. Other features, such as [[Service]] are built on top of Events. # Available events Here’s a dynamically generated list of events to give a sense of what’s used: diff --git a/website/Services.md b/website/Service.md similarity index 77% rename from website/Services.md rename to website/Service.md index e900cf5c..6b299e34 100644 --- a/website/Services.md +++ b/website/Service.md @@ -7,7 +7,7 @@ The SilverBullet service bus is an extension mechanism built into SilverBullet. * Invocation: running a discovered service. # Architecture -Services are an abstraction built on top of [[Events]]. When a new service is defined, it registers itself listening to the `discover:<>` event (to be discovered), and under `service:<>` to be invoked. +Services are an abstraction built on top of [[Event]]. When a new service is defined, it registers itself listening to the `discover:<>` event (to be discovered), and under `service:<>` to be invoked. Service discovery happens by broadcasting an event on the event bus with the given selector, returning a list of services that are a match, ordered by (self assigned) priority. One (or all) of these services can then be invoked based on their returned ID.