Skip to content

Commit bd25b09

Browse files
author
Tony Sansone
committed
Update supported versions
1 parent 5ac42d8 commit bd25b09

File tree

7 files changed

+385
-139
lines changed

7 files changed

+385
-139
lines changed

src/_data/macos.json

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
[
2+
{
3+
"cycle":"14",
4+
"codename":"Sonoma",
5+
"releaseDate":"2023-09-26",
6+
"eol":false,
7+
"latest":"14.2.1",
8+
"latestReleaseDate":"2023-12-19",
9+
"link":"https://support.apple.com/HT213895",
10+
"lts":false
11+
},
12+
{
13+
"cycle":"13",
14+
"codename":"Ventura",
15+
"releaseDate":"2022-10-24",
16+
"eol":false,
17+
"latest":"13.6.3",
18+
"latestReleaseDate":"2023-12-11",
19+
"link":"https://support.apple.com/HT213268",
20+
"lts":false
21+
},
22+
{
23+
"cycle":"12",
24+
"codename":"Monterey",
25+
"releaseDate":"2021-10-25",
26+
"eol":false,
27+
"latest":"12.7.2",
28+
"latestReleaseDate":"2023-12-11",
29+
"link":"https://support.apple.com/HT212585",
30+
"lts":false
31+
},
32+
{
33+
"cycle":"11",
34+
"codename":"Big Sur",
35+
"releaseDate":"2020-11-12",
36+
"eol":"2023-09-26",
37+
"latest":"11.7.10",
38+
"latestReleaseDate":"2023-09-11",
39+
"link":"https://support.apple.com/HT211896",
40+
"lts":false
41+
},
42+
{
43+
"cycle":"10.15",
44+
"codename":"Catalina",
45+
"releaseDate":"2019-10-07",
46+
"eol":"2022-09-12",
47+
"latest":"10.15.7",
48+
"latestReleaseDate":"2020-09-24",
49+
"link":"https://support.apple.com/HT210642",
50+
"lts":false
51+
},
52+
{
53+
"cycle":"10.14",
54+
"codename":"Mojave",
55+
"releaseDate":"2018-09-24",
56+
"eol":"2021-10-25",
57+
"latest":"10.14.6",
58+
"latestReleaseDate":"2019-07-22",
59+
"lts":false
60+
},
61+
{
62+
"cycle":"10.13",
63+
"codename":"High Sierra",
64+
"releaseDate":"2017-09-25",
65+
"eol":"2020-12-01",
66+
"latest":"10.13.6",
67+
"latestReleaseDate":"2018-07-09",
68+
"lts":false
69+
},
70+
{
71+
"cycle":"10.12",
72+
"codename":"Sierra",
73+
"releaseDate":"2016-09-20",
74+
"eol":"2019-10-01",
75+
"latest":"10.12.6",
76+
"latestReleaseDate":"2017-07-19",
77+
"lts":false
78+
},
79+
{
80+
"cycle":"10.11",
81+
"codename":"El Capitan",
82+
"releaseLabel":"OS X __RELEASE_CYCLE__ (__CODENAME__)",
83+
"releaseDate":"2015-09-30",
84+
"eol":"2018-12-01",
85+
"latest":"10.11.6",
86+
"latestReleaseDate":"2016-07-18",
87+
"lts":false
88+
},
89+
{
90+
"cycle":"10.10",
91+
"releaseLabel":"OS X __RELEASE_CYCLE__ (__CODENAME__)",
92+
"codename":"Yosemite",
93+
"releaseDate":"2014-10-16",
94+
"eol":"2017-08-01",
95+
"latest":"10.10.5",
96+
"latestReleaseDate":"2015-08-13",
97+
"lts":false
98+
},
99+
{
100+
"cycle":"10.9",
101+
"releaseLabel":"OS X __RELEASE_CYCLE__ (__CODENAME__)",
102+
"codename":"Mavericks",
103+
"releaseDate":"2013-10-22",
104+
"eol":"2016-12-01",
105+
"latest":"10.9.5",
106+
"latestReleaseDate":"2014-09-17",
107+
"lts":false}]

src/_sass/site.scss

+15-2
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ li.card {
553553
border-radius: 0;
554554
color: $site-color-body;
555555
margin-top: 1rem;
556-
padding: 30px 30px;
556+
padding: 1.5rem;
557557

558558
i.material-icons {
559559
font-size: 20px;
@@ -569,7 +569,7 @@ li.card {
569569
background-color: #00000010;
570570
}
571571

572-
p:last-child {
572+
p:last-child, li:last-child, ul:last-child, ol:last-child {
573573
margin-bottom: 0;
574574
}
575575

@@ -884,3 +884,16 @@ body.obsolete {
884884
}
885885
}
886886
}
887+
888+
/* -----------------------------------------
889+
Headings in boxes
890+
----------------------------------------- */
891+
892+
div h1:first-child,
893+
div h2:first-child,
894+
div h3:first-child,
895+
div h4:first-child,
896+
div h5:first-child,
897+
div h6:first-child {
898+
margin-top: 0rem;
899+
}

src/get-dart/_linux.md

+76-18
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,87 @@
1-
If you're using Debian/Ubuntu on AMD64 (64-bit Intel), you can choose one of the
2-
following options, both of which can update the SDK automatically when new
3-
versions are released.
41

5-
* [Install using apt-get](#install-using-apt-get)
6-
* [Install a Debian package](#install-a-debian-package)
72

8-
#### Install using apt-get
3+
### System requirements
4+
{: .no_toc}
95

10-
Perform the following **one-time setup**:
6+
Dart supports the following hardware architectures and platform versions
7+
to develop and run Dart code on Linux.
118

12-
```terminal
13-
$ sudo apt-get update
14-
$ sudo apt-get install apt-transport-https
15-
$ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
16-
$ echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
17-
```
9+
#### Hardware architecture
10+
{: .no_toc}
11+
12+
Dart supports the following CPU architectures on Linux.
13+
14+
| Platform | x86 | x64 | ARM | ARM64 | RISC-V |
15+
|----------|-----|-----|-----|-----------|-----------|
16+
| Linux | Yes | Yes | Yes | Yes | Dev, Beta |
17+
{:.table .table-striped}
18+
19+
#### Operating system flavor and version
20+
{: .no_toc}
21+
22+
Dart supports the [Debian stable][] and [Ubuntu LTS][] under standard
23+
support.
24+
25+
| Platform | OS Versions |
26+
|----------|------------------------------------------|
27+
| Windows | 10, 11 |
28+
| Linux | [Debian stable][], [Ubuntu LTS][] |
29+
| macOS | {% for version in site.data.macos %}{% if version.eol == true %}{% break %}{%- else -%}{{version.cycle}} ({{version.codename}}){% endif %},{% endfor %} |
30+
{:.table .table-striped}
31+
32+
### Install using package manager
33+
{: .no_toc}
34+
35+
Choose to install either using [apt-get](#install-using-apt-get)
36+
or downloading a [`.deb`](#install-a-debian-package) package.
37+
38+
Both methods trigger an SDK update whenever Dart releases a new version.
39+
40+
#### Install using `apt-get`
41+
{: .no_toc}
42+
43+
Perform the following steps for the first install only.
1844

19-
Then install the Dart SDK:
45+
1. Update the package index files and install the secure HTTP package.
46+
47+
```terminal
48+
$ sudo apt-get update && sudo apt-get install apt-transport-https
49+
```
50+
51+
1. Download and add the Google Linux GPG public key.
52+
53+
```terminal
54+
$ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
55+
```
56+
57+
1. Add the Dart package repository to your Linux system.
58+
59+
```terminal
60+
$ echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
61+
```
62+
63+
Install the Dart SDK using [`sudo`][sudo].
2064

2165
```terminal
22-
$ sudo apt-get update
23-
$ sudo apt-get install dart
66+
$ sudo apt-get update && sudo apt-get install dart
2467
```
2568

2669
#### Install a Debian package
2770

28-
Alternatively, download Dart SDK [as a Debian package](#){:.debian-link-stable}
29-
in the `.deb` package format.
71+
To install the Dart SDK as a Debian package (`*.deb`).
72+
73+
1. Download the Dart SDK as a [Debian package](#){:.debian-link-stable}.
74+
75+
1. Install the `*.deb` package using one of two methods:
76+
77+
* From a GUI, double-click the `.deb` file.
78+
79+
* From a terminal, run the following command:
80+
81+
```terminal
82+
$ sudo dpkg -i dart_3.2.6-1_amd64.deb
83+
```
84+
85+
[sudo]: https://www.sudo.ws/
86+
[Debian stable]: https://www.debian.org/releases
87+
[Ubuntu LTS]: https://wiki.ubuntu.com/Releases

src/get-dart/_mac.md

+63-17
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,88 @@
1-
[Install Homebrew,](https://brew.sh)
2-
and then run the following commands:
1+
2+
### System requirements
3+
{: .no_toc}
4+
5+
Dart supports the following hardware architectures and platform versions
6+
to develop and run Dart code on macOS.
7+
8+
#### Hardware architecture
9+
{: .no_toc}
10+
11+
Dart supports the following CPU architectures.
12+
13+
| Platform | x86 | x64 | ARM | ARM64 | RISC-V |
14+
|----------|-----|-----|-----|-------|--------|
15+
| macOS | No | Yes | No | Yes | No |
16+
{:.table .table-striped}
17+
18+
#### Operating system
19+
{: .no_toc}
20+
21+
Dart supports the latest three major versions of macOS.
22+
23+
| Platform | OS Versions |
24+
|----------|------------------------------------------|
25+
| macOS | {% for version in site.data.macos %}{% if version.eol != false %}{% break %}{%- else -%}{{version.cycle}} ({{version.codename}}){% endif %},{% endfor %} |
26+
{:.table .table-striped}
27+
28+
### Install using Homebrew
29+
{: .no_toc}
30+
31+
To install the Dart SDK, use [Homebrew][].
32+
33+
Install Homebrew, then run the following commands.
334

435
```terminal
536
$ brew tap dart-lang/dart
637
$ brew install dart
738
```
839

9-
{{site.alert.important}}
10-
Make sure the **Homebrew `bin` directory is in your `PATH`**.
40+
### Verify PATH includes Homebrew
41+
{: .no_toc}
42+
43+
Verify that your `PATH` includes the **Homebrew `bin`.
1144
Setting up the path correctly makes it easier to use Dart SDK commands
12-
such as `dart run` and `dart format`.
13-
For help configuring your path,
45+
such as `dart run` and `dart format`.
46+
For help configuring your path,
1447
consult the [Homebrew FAQ.](https://docs.brew.sh/FAQ)
1548
{{site.alert.end}}
1649

50+
### Upgrade using Homebrew
51+
{: .no_toc}
52+
1753
To upgrade when a new release of Dart is available:
1854

1955
```terminal
2056
$ brew upgrade dart
2157
```
2258

23-
To switch between locally installed Dart releases,
24-
first install the version you want to switch to if you haven't.
25-
For example, to install Dart 2.12:
59+
### Switch Dart versions
60+
{: .no_toc}
2661

27-
```terminal
28-
$ brew install dart@2.12
29-
```
62+
To switch between locally installed Dart releases:
3063

31-
Then to switch between versions,
32-
unlink the current version and link the desired version.
64+
1. Install the version to which you want to switch.
3365

34-
```terminal
35-
$ brew unlink dart@<old> && brew unlink dart@<new> && brew link dart@<new>
36-
```
66+
For example, to install Dart 3.1:
67+
68+
```terminal
69+
$ brew install dart@3.1
70+
```
71+
72+
1. To switch between versions,
73+
unlink the current version and link the desired version.
74+
75+
```terminal
76+
$ brew unlink dart@<old> && brew unlink dart@<new> && brew link dart@<new>
77+
```
78+
79+
### List installed Dart versions
80+
{: .no_toc}
3781

3882
To see which versions of Dart you've installed:
3983

4084
```terminal
4185
$ brew info dart
4286
```
87+
88+
[Homebrew]: https://brew.sh

0 commit comments

Comments
 (0)