Skip to content

Commit

Permalink
fix(docs): update the "Upgrade is available" text (#3564)
Browse files Browse the repository at this point in the history
* Reduces redirect to `#upgrade` as in #3225

* Solve Update the "Upgrade is available" text #3225

* Nightly case removed to a generalized redirect

* Space title - #upgrade

Co-authored-by: Jerónimo Albi <[email protected]>

* returning void instead of undefined

Co-authored-by: Jerónimo Albi <[email protected]>

* Spacing v0.25.2

* Spacing 0.27.1

* Spacing 0.26.1

* Update ignite/cmd/cmd.go

Co-authored-by: Maksym Hontar <[email protected]>

---------

Co-authored-by: Danilo Pantani <[email protected]>
Co-authored-by: Jerónimo Albi <[email protected]>
Co-authored-by: Jerónimo Albi <[email protected]>
Co-authored-by: Maksym Hontar <[email protected]>
  • Loading branch information
5 people committed Jul 26, 2023
1 parent 1765de4 commit 5e831ed
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/docs/01-welcome/02-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ In this case, use sudo before `curl` and before `bash`:
sudo curl https://get.ignite.com/cli | sudo bash
```

## Upgrading your Ignite CLI installation
## Upgrading your Ignite CLI installation {#upgrade}

Before you install a new version of Ignite CLI, remove all existing Ignite CLI installations.

Expand Down
18 changes: 12 additions & 6 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,18 @@ const config = {
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
from: "/nightly/guide/install",
to: "/nightly/welcome/install",
},
],
createRedirects(existingPath) {
if (existingPath.includes('/welcome')) {
/*
If the link received contains the path /guide,
this will change to /welcome.
*/
return [
existingPath.replace('/welcome', '/guide'),
];
}
return; // No redirect created if it doesn't contain /guide
},
},
],
async function myPlugin(context, options) {
Expand Down
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-v0.25.2/guide/01-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ In this case, use sudo before `curl` and before `bash`:
sudo curl https://get.ignite.com/cli! | sudo bash
```

## Upgrading your Ignite CLI installation
## Upgrading your Ignite CLI installation {#upgrade}

Before you install a new version of Ignite CLI, remove all existing Ignite CLI installations.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ In this case, use sudo before `curl` and before `bash`:
sudo curl https://get.ignite.com/cli | sudo bash
```

## Upgrading your Ignite CLI installation
## Upgrading your Ignite CLI installation {#upgrade}

Before you install a new version of Ignite CLI, remove all existing Ignite CLI installations.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ In this case, use sudo before `curl` and before `bash`:
sudo curl https://get.ignite.com/cli | sudo bash
```

## Upgrading your Ignite CLI installation
## Upgrading your Ignite CLI installation {#upgrade}

Before you install a new version of Ignite CLI, remove all existing Ignite CLI installations.

Expand Down
9 changes: 1 addition & 8 deletions ignite/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,7 @@ func checkNewVersion(ctx context.Context) {
return
}

fmt.Printf(
· 🛸 Ignite CLI %s is available!
·
· To upgrade your Ignite CLI version, see the upgrade doc: https://docs.ignite.com/welcome/install#upgrading-your-ignite-cli-installation
·
··
`, next)
fmt.Printf("⬆️ Ignite CLI %s is available! To upgrade: https://docs.ignite.com/welcome/install#upgrade", next)
}

func printSection(session *cliui.Session, title string) error {
Expand Down

0 comments on commit 5e831ed

Please sign in to comment.