Skip to content
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

fix version number in getting-started/installation #276

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import TabItem from "@theme/TabItem";

### Installing manually

1. [Download](https://ziglang.org/download/#release-0.12.0) a prebuilt version of Zig.
1. [Download](https://ziglang.org/download/#release-0.13.0) a prebuilt version of Zig.

Choose a build of Zig 0.12 for Linux that matches your CPU architecture. If you're unsure which architecture you're using, this can be found with:
Choose a build of Zig 0.13 for Linux that matches your CPU architecture. If you're unsure which architecture you're using, this can be found with:

```bash
uname -m
Expand All @@ -30,13 +30,13 @@ import TabItem from "@theme/TabItem";
2. Extract the archive using tar, e.g.

```bash
tar xf zig-linux-x86_64-0.12.0.tar.xz
tar xf zig-linux-x86_64-0.13.0.tar.xz
```

3. Add the location of your Zig binary to your path, e.g.

```bash
echo 'export PATH="$HOME/zig-linux-x86_64-0.12.0:$PATH"' >> ~/.bashrc
echo 'export PATH="$HOME/zig-linux-x86_64-0.13.0:$PATH"' >> ~/.bashrc
```
</TabItem>
<TabItem value="windows">
Expand All @@ -56,9 +56,9 @@ import TabItem from "@theme/TabItem";

### Installing manually

1. [Download](https://ziglang.org/download/#release-0.12.0) a prebuilt version of Zig.
1. [Download](https://ziglang.org/download/#release-0.13.0) a prebuilt version of Zig.

Choose a build of Zig 0.12 for Windows that matches your CPU architecture. Most Windows systems use `x86_64`, also known as `AMD64`. If you're unsure which architecture you're using, this can be found with:
Choose a build of Zig 0.13 for Windows that matches your CPU architecture. Most Windows systems use `x86_64`, also known as `AMD64`. If you're unsure which architecture you're using, this can be found with:

```powershell
$Env:PROCESSOR_ARCHITECTURE
Expand Down Expand Up @@ -118,7 +118,7 @@ Verify your installation with `zig version`. The output should look like this:

```
$ zig version
0.12.0
0.13.0
```

### Extras
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ import TabItem from "@theme/TabItem";
{label: 'macOS', value: 'macos'},
]}>
<TabItem value="linux">
Consider getting Zig from your distribution's [package manager](https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Package-Manager). Most major linux distros package the latest Zig release.
{/*
Consider getting Zig from your distribution's [package manager](https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Package-Manager). Most major linux distros package the latest Zig release.
*/}

### Installing manually

1. [Download](https://ziglang.org/download/#release-0.12.0) a prebuilt version of Zig.
1. [Download](https://ziglang.org/download/#release-0.14.0) a prebuilt version of Zig.

Choose a build of Zig 0.12 for Linux that matches your CPU architecture. If you're unsure which architecture you're using, this can be found with:
Choose a build of Zig 0.14 for Linux that matches your CPU architecture. If you're unsure which architecture you're using, this can be found with:

```bash
uname -m
Expand All @@ -30,16 +32,17 @@ import TabItem from "@theme/TabItem";
2. Extract the archive using tar, e.g.

```bash
tar xf zig-linux-x86_64-0.12.0.tar.xz
tar xf zig-linux-x86_64-0.14.0-dev.2183+ee9f00d67.tar.xz
```

3. Add the location of your Zig binary to your path, e.g.

```bash
echo 'export PATH="$HOME/zig-linux-x86_64-0.12.0:$PATH"' >> ~/.bashrc
echo 'export PATH="$HOME/zig-linux-x86_64-0.14.0-dev.2183+ee9f00d67:$PATH"' >> ~/.bashrc
```
</TabItem>
<TabItem value="windows">
{/*
Consider getting Zig from a package manager such as [chocolatey](https://chocolatey.org/), [scoop](https://scoop.sh/), or [winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget).

All commands shown are to be used inside Powershell.
Expand All @@ -53,12 +56,19 @@ import TabItem from "@theme/TabItem";
```
scoop install zig
```
*/}
Latest [dev build](https://scoop.sh/#/apps?q=zig&id=921df07e75042de645204262e784a17c2421944c) is available on [scoop](https://scoop.sh/#/apps?q=zig&id=7e124d6047c32d426e4143ab395d863fc9d6d491).

```
scoop bucket add versions
scoop install versions/zig-dev
```

### Installing manually

1. [Download](https://ziglang.org/download/#release-0.12.0) a prebuilt version of Zig.
1. [Download](https://ziglang.org/download/#release-0.14.0) a prebuilt version of Zig.

Choose a build of Zig 0.12 for Windows that matches your CPU architecture. Most Windows systems use `x86_64`, also known as `AMD64`. If you're unsure which architecture you're using, this can be found with:
Choose a build of Zig 0.14 for Windows that matches your CPU architecture. Most Windows systems use `x86_64`, also known as `AMD64`. If you're unsure which architecture you're using, this can be found with:

```powershell
$Env:PROCESSOR_ARCHITECTURE
Expand Down Expand Up @@ -103,11 +113,13 @@ import TabItem from "@theme/TabItem";
</TabItem>

<TabItem value="macos">
{/*
Consider getting Zig from a package manager such as [brew](https://brew.sh/).

```
brew install zig
```
*/}
</TabItem>

</Tabs>
Expand All @@ -118,7 +130,7 @@ Verify your installation with `zig version`. The output should look like this:

```
$ zig version
0.12.0
0.14.0-dev.2183+ee9f00d67
```

### Extras
Expand Down