Skip to content

Commit

Permalink
Fix/doc links (#664)
Browse files Browse the repository at this point in the history
* fix link in navigation

* fix link to custom extensions
  • Loading branch information
patrickbaber authored Jul 31, 2023
1 parent e1bd3f1 commit 698d240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- title: Server
items:
- title: Cloud
link: /../cloud
link: /cloud
type: new
- title: Configuration
link: /server/configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/server/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tableOfContents: true

Hocuspocus offers hooks to extend it's functionality and integrate it into existing applications. Hooks are configured as simple methods the same way as [other configuration options](/server/configuration) are.

Hooks accept a hook payload as first argument. The payload is an object that contains data you can use and manipulate, allowing you to built complex things on top of this simple mechanic, like [extensions](/guides/custom-extension).
Hooks accept a hook payload as first argument. The payload is an object that contains data you can use and manipulate, allowing you to built complex things on top of this simple mechanic, like [extensions](/guides/custom-extensions).

Hooks are required to return a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise), the easiest way to do that is to mark the function as `async` (Node.js version must 14+). In this way, you can do things like executing API requests, running DB queries, trigger webhooks or whatever you need to do to integrate it into your application.

Expand Down

0 comments on commit 698d240

Please sign in to comment.