Skip to content

Commit

Permalink
fix: broken links (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos authored Apr 8, 2024
1 parent fbba2bb commit 07170eb
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 25 deletions.
2 changes: 1 addition & 1 deletion docs/development/api-wrapper/classes/context-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ new Spicetify.ContextMenu.SubMenu(
| Parameter | Type | Description |
| :--- | :--- | :--- |
| name | `string` | Name of the menu item. |
| subItems | [`Iterable<Item>`](/docs/development/api-wrapper/classes/context-menu/#item) | Array of `Item`s to be added to the sub menu. |
| subItems | [`Iterable<Item>`](#item) | Array of `Item`s to be added to the sub menu. |
| shouldAdd | [`ShouldAddCallback`](/docs/development/api-wrapper/types/context-menu/should-add-callback) | Callback function to determine if the menu item should be added. |
| disabled | `boolean` | Whether the menu item is disabled. |

Expand Down
2 changes: 1 addition & 1 deletion docs/development/api-wrapper/methods/keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Spicetify provides its own method for global keyboard shortcuts. You can specify

:::tip

`Spicetify.Keyboard` is wrapper of [`Spicetify.Mousetrap`](/docs/development/api-wrapper/modules/#mousetrap) configured to be compatible with legacy Spotify.
`Spicetify.Keyboard` is wrapper of [`Spicetify.Mousetrap`](/docs/development/api-wrapper/modules#mousetrap) configured to be compatible with legacy Spotify.

New extensions are advised to use the module instead.

Expand Down
2 changes: 1 addition & 1 deletion docs/development/api-wrapper/methods/local-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Spicetify provides a wrapper for `localStorage` to make it easier to use.

All keys created via this method is generic and stored as-is.

If you wish to store values that are specific for each user account, you can use [`Platform.LocalStorageAPI`](./platform#localstorage) instead.
If you wish to store values that are specific for each user account, you can use [`Platform.LocalStorageAPI`](/docs/development/api-wrapper/methods/platform#localstorage) instead.

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/development/api-wrapper/types/keyboard/validkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: A list of valid keys for keyboard shortcuts.

:::tip

For the list of valid keys, refer to the [type definition](/docs/development/api-wrapper/types/keyboard/validkey/#type-definition).
For the list of valid keys, refer to the [type definition](#type-definition).

:::

Expand Down
2 changes: 1 addition & 1 deletion docs/development/custom-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Spicetify.Platform.History.push({
});
```

In order to render a different page, you can check the `pathname` of the current page within `index.js`'s main render method, and render a different page component for different paths. The main path for your custom app will be the name of the folder (which is the same that needs to be used in the [`config-xpui.ini`](themes#configs) configuration file).
In order to render a different page, you can check the `pathname` of the current page within `index.js`'s main render method, and render a different page component for different paths. The main path for your custom app will be the name of the folder (which is the same that needs to be used in the [`config-xpui.ini`](./themes#configs) configuration file).
In this example, if our `pathname` is "/marketplace/readme", we load the `ReadmePage` component, otherwise we load our main page component, `Grid`.

```js
Expand Down
37 changes: 17 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 07170eb

Please sign in to comment.