Skip to content

docs: avoid repeating section names #4518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/docs/src/en/advanced/extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Now that we know where to use these extension APIs, let's look more closely at h

Alpine allows you to register your own custom directives using the `Alpine.directive()` API.

<a name="method-signature"></a>
### Method Signature
<a name="directive-method-signature"></a>
### Directive Method Signature

```js
Alpine.directive('[name]', (el, { value, modifiers, expression }, { Alpine, effect, cleanup }) => {})
Expand Down Expand Up @@ -247,8 +247,8 @@ Alpine.directive('foo', (el, { value, modifiers, expression }) => {

Alpine allows you to register custom "magics" (properties or methods) using `Alpine.magic()`. Any magic you register will be available to all your application's Alpine code with the `$` prefix.

<a name="method-signature"></a>
### Method Signature
<a name="magic-method-signature"></a>
### Magic Method Signature

```js
Alpine.magic('[name]', (el, { Alpine }) => {})
Expand Down