Skip to content

Commit

Permalink
update routes to installation page (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYJLiu authored Aug 27, 2024
1 parent 3f93182 commit ca95103
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 41 deletions.
2 changes: 1 addition & 1 deletion content/guides/dapps/cash-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Setup the following tools on your local development environment:

- [Rust](https://www.rust-lang.org/tools/install)
- [Node.js](https://nodejs.org/en/download)
- [Solana CLI & Anchor](https://solana.com/developers/guides/getstarted/setup-local-development)
- [Solana CLI & Anchor](https://solana.com/docs/intro/installation)
- [Android Studio and emulator set up](https://docs.solanamobile.com/getting-started/development-setup)
- [React Native Setup](https://reactnative.dev/docs/environment-setup?platform=android)
- [EAS CLI and Account Setup](https://docs.expo.dev/build/setup/)
Expand Down
2 changes: 1 addition & 1 deletion content/guides/dapps/journal.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ with a few tools:

- [Rust](https://www.rust-lang.org/tools/install)
- [Node JS](https://nodejs.org/en/download)
- [Solana CLI & Anchor](https://solana.com/developers/guides/getstarted/setup-local-development)
- [Solana CLI & Anchor](https://solana.com/docs/intro/installation)

## Setting up the project

Expand Down
6 changes: 3 additions & 3 deletions content/guides/getstarted/full-stack-solana-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ Here's a list of the tools you'll need to have installed:
- [Node.js](https://nodejs.org/en/download/)
- [Yarn](https://classic.yarnpkg.com/en/docs/install)
- [Rust](https://www.rust-lang.org/tools/install)
- [Solana CLI](/content/guides/getstarted/setup-local-development.md#3-install-solana-cli)
- [Solana CLI](/docs/intro/installation)
- [Anchor](https://www.anchor-lang.com/docs/installation)

You can download Node and Yarn from their setup pages which I've linked above.
For the rest, check out the
[Solana Local development guide](/content/guides/getstarted/setup-local-development.md)
which has detailed instructions for different operating systems.
[Solana Local development guide](/docs/intro/installation) which has detailed
instructions for different operating systems.

**We'll be using Anchor 0.29 for this guide**. You can make sure you're using it
with `avm use 0.29.0`.
Expand Down
15 changes: 6 additions & 9 deletions content/guides/getstarted/hello-world-in-your-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ icon and naming your project `hello_world`.
### Create a Playground wallet

Normally with
[local development](/content/guides/getstarted/setup-local-development.md), you
will need to create a file system wallet for use with the Solana CLI. But with
the Solana Playground, you only need to click a few buttons to create a
browser-based wallet.
Normally with [local development](/docs/intro/installation), you will need to
create a file system wallet for use with the Solana CLI. But with the Solana
Playground, you only need to click a few buttons to create a browser-based
wallet.

> Your _Playground Wallet_ will be saved in your browser's local storage.
> Clearing your browser cache will remove your saved wallet. When creating a new
Expand All @@ -90,9 +89,7 @@ click "**Continue**".
After your Playground Wallet is created, you will notice the bottom of the
window now states your wallet's address, your SOL balance, and the Solana
cluster you are connected to (Devnet is usually the default/recommended, but a
"localhost"
[test validator](/content/guides/getstarted/setup-local-development.md) is also
acceptable).
"localhost" [test validator](/docs/intro/installation) is also acceptable).

## Create a Solana program

Expand Down Expand Up @@ -321,7 +318,7 @@ See the links below to learn more about writing Solana programs, and setting up
your local development environment:

- [Solana Quick Start Guide](/docs/intro/quick-start.md)
- [Setup your local development environment](/developers/guides/getstarted/setup-local-development.md)
- [Setup your local development environment](/docs/intro/installation)
- [Interacting with Tokens and NFTs](/developers/courses/tokens.md)
- [Developer Guides](/developers/guides/)
- [Developing Games](/content/guides/games/getting-started-with-game-development.md)
Expand Down
4 changes: 2 additions & 2 deletions content/guides/getstarted/local-rust-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ first Rust based Solana program to the blockchain.

This guide uses the Solana CLI and assumes you have setup your local development
environment. Checkout our
[local development quickstart guide](/content/guides/getstarted/setup-local-development.md)
here to quickly get setup.
[local development quickstart guide](/docs/intro/installation) here to quickly
get setup.

</Callout>

Expand Down
2 changes: 1 addition & 1 deletion content/guides/getstarted/rust-to-solana.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ entrypoint!(process_instruction);
### Building and Testing

After
[installing the Solana command-line tools](https://solana.com/developers/guides/getstarted/setup-local-development#3-install-the-solana-cli),
[installing the Solana command-line tools](https://solana.com/docs/intro/installation),
projects can be built to target host machines as normal with `cargo build`.

However, to target the Solana runtime, use `cargo build-bpf` or
Expand Down
2 changes: 1 addition & 1 deletion content/guides/getstarted/scaffold-nextjs-anchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ but you're also welcome to use your preferred editor.

If you haven't installed Solana CLI, Rust, or Anchor before, you can easily do
so by
[following our helpful installation guide](https://solana.com/developers/guides/getstarted/setup-local-development)
[following our helpful installation guide](https://solana.com/docs/intro/installation)

> This scaffolds only supports TypeScript for now, but don’t worry, TypeScript
> simply extends on the JavaScript you already know to add helpful type
Expand Down
10 changes: 5 additions & 5 deletions content/guides/getstarted/solana-test-validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ The Solana test validator is a local emulator for the Solana blockchain,
designed to provide developers with a private and controlled environment for
building and testing Solana programs without the need to connect to a public
testnet or mainnet. If you have the Solana CLI tool suite
[already installed](/developers/guides/getstarted/setup-local-development#3-install-the-solana-cli),
you can run the test validator with the following command:
[already installed](/docs/intro/installation), you can run the test validator
with the following command:

```shell
solana-test-validator
Expand Down Expand Up @@ -56,9 +56,9 @@ your desired release (i.e. `v1.18.12`), or use one of the three symbolic channel
names: `stable`, `beta`, or `edge`.

> For more detailed instructions, checkout this guide on
> [setting up your local environment](/content/guides/getstarted/setup-local-development.md)
> for Solana development. It includes installing the Solana CLI, Anchor, getting
> a local keypair, and more.
> [setting up your local environment](/docs/intro/installation) for Solana
> development. It includes installing the Solana CLI, Anchor, getting a local
> keypair, and more.
## Starting the Test Validator

Expand Down
5 changes: 2 additions & 3 deletions content/guides/solang/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ Just follow the steps outlined below:
1. **Check Your Prerequisites**: Before diving in, ensure that you have
[Rust](https://www.rust-lang.org/tools/install) and
[Node.js](https://nodejs.org/en) installed on your system. Windows users will
also need to have
[Windows Subsystem for Linux](https://solana.com/developers/guides/setup-local-development#windows-users-only)
set up.
also need to have [Windows Subsystem for Linux](/docs/intro/installation) set
up.
2. **Solana Tool Suite Installation**: Begin by installing the
[Solana Tool Suite](https://docs.solana.com/cli/install-solana-cli-tools),
which includes the Solana Command Line Interface (CLI) and the latest version
Expand Down
6 changes: 3 additions & 3 deletions content/guides/token-extensions/dynamic-meta-data-nft.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ npx create-solana-game gameName
### Setup your local environment

In order to run this example locally, you will need to make sure you have
[setup your local environment](/content/guides/getstarted/setup-local-development)
for Solana development, including installing and configuring the Anchor CLI. If
you do not already, you can follow the previously linked setup guide to do so.
[setup your local environment](/docs/intro/installation) for Solana development,
including installing and configuring the Anchor CLI. If you do not already, you
can follow the previously linked setup guide to do so.

### Project structure

Expand Down
8 changes: 4 additions & 4 deletions content/guides/token-extensions/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ You can find a dedicated video tutorial for each Token Extension on this
## How do I create a token with token extensions?

To get started creating tokens with token extensions, you can use the
[Solana Tool Suite](https://solana.com/developers/guides/getstarted/setup-local-development)
to create tokens with a CLI. Based on the extension you want to create, your
command flags may be different. Below are the flags to add to create tokens with
each type of extension.
[Solana Tool Suite](https://solana.com/docs/intro/installation) to create tokens
with a CLI. Based on the extension you want to create, your command flags may be
different. Below are the flags to add to create tokens with each type of
extension.

| Extension | CLI Flag |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------- |
Expand Down
4 changes: 2 additions & 2 deletions docs/clients/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ program, take a look at these detailed quick start guides:

- [Build and deploy your first Solana program using only your browser](/content/guides/getstarted/hello-world-in-your-browser.md).
No installation needed.
- [Setup your local environment](/content/guides/getstarted/setup-local-development.md)
and use the local test validator.
- [Setup your local environment](/docs/intro/installation) and use the local
test validator.

</Callout>

Expand Down
2 changes: 1 addition & 1 deletion docs/intro/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ solana-test-validator

This will start a local validator on your machine that you can use to test your
programs. You can
[read more about local development in this guide](https://solana.com/developers/guides/getstarted/setup-local-development).
[read more about local development in this guide](https://solana.com/docs/intro/installation).

When building onchain programs, you have a choice to either build with native
Rust (ie, without a framework) or use the Anchor framework. Anchor is a
Expand Down
4 changes: 2 additions & 2 deletions docs/programs/lang-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ program, take a look at these detailed quick start guides:

- [Build and deploy your first Solana program using only your browser](/content/guides/getstarted/hello-world-in-your-browser.md).
No installation needed.
- [Setup your local environment](/content/guides/getstarted/setup-local-development.md)
and use the local test validator.
- [Setup your local environment](/docs/intro/installation) and use the local
test validator.

</Callout>

Expand Down
4 changes: 2 additions & 2 deletions docs/programs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ program, take a look at these detailed quick start guides:

- [Build and deploy your first Solana program using only your browser](/content/guides/getstarted/hello-world-in-your-browser.md).
No installation needed.
- [Setup your local environment](/content/guides/getstarted/setup-local-development.md)
and use the local test validator.
- [Setup your local environment](/docs/intro/installation) and use the local
test validator.

</Callout>

Expand Down
2 changes: 1 addition & 1 deletion redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"source": "/getstarted/hello-world"
},
{
"destination": "/developers/guides/getstarted/setup-local-development",
"destination": "docs/intro/installation",
"source": "/getstarted/local"
},
{
Expand Down

0 comments on commit ca95103

Please sign in to comment.