Skip to content

Commit

Permalink
Change name of marketplace and fix master branch reference (spicetify#52
Browse files Browse the repository at this point in the history
)

* Change name of marketplace and fix master branch reference
* Fix marketplace auto-installer path
  • Loading branch information
theRealPadster authored Jun 8, 2022
1 parent 976a737 commit 27c715c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/development/custom-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ You can use `Spicetify.Platform.History.push(...)` to navigate to a new page. Th

```js
Spicetify.Platform.History.push({
pathname: '/spicetify-marketplace/readme',
pathname: '/marketplace/readme',
state: {
data: {
title: 'My sub page title',
Expand All @@ -121,15 +121,15 @@ 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 this example, if our `pathname` is "/spicetify-marketplace/readme", we load the `ReadmePage` component, otherwise we load our main page component, `Grid`.
In this example, if our `pathname` is "/marketplace/readme", we load the `ReadmePage` component, otherwise we load our main page component, `Grid`.

```js
function render() {
const { location } = Spicetify.Platform.History;

// If page state set to display readme, render it
// (This location state data comes from your Spicetify.Platform.History.push() call
if (location.pathname === '/spicetify-marketplace/readme') {
if (location.pathname === '/marketplace/readme') {
return react.createElement(ReadmePage, {
title: 'Spicetify Marketplace - Readme',
data: location.state.data,
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Spicetify is a multiplatform command-line tool to customize the official Spotify

### Windows

This is the installation method what we recommend for most users. It is the fastest and most reliable way to install Spicetify. It also includes the [**Spicetify Marketplace**](https://github.com/spicetify/spicetify-marketplace) that gives you access to a tab in Spotify's sidebar that allows you to search for and install _themes_, _extensions_ and _snippets_.
This is the installation method what we recommend for most users. It is the fastest and most reliable way to install Spicetify. It also includes the [**Spicetify Marketplace**](https://github.com/spicetify/spicetify-marketplace) that gives you access to a tab in Spotify's sidebar that allows you to search for and install _themes_, _extensions_, and _snippets_.

#### Powershell (pre-built binary)

```powershell
iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-cli/master/install.ps1 | iex
iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-marketplace/master/install.ps1 | iex
iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/install.ps1 | iex
```

### Linux and MacOS
Expand All @@ -24,7 +24,7 @@ iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-marketplace/mast

```bash
curl -fsSL https://raw.githubusercontent.com/spicetify/spicetify-cli/master/install.sh | sh
curl -fsSL https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/install.sh | sh
curl -fsSL https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/install.sh | sh
```

<hr/>
Expand Down

0 comments on commit 27c715c

Please sign in to comment.