forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds ChromeOS, Linux GS pages (flutter#10316)
Adds ChromeOS, Linux GS pages plus all 2nd level add-ons to getting started. Fixes flutter#10255 Fixes flutter#10186 Fixes flutter#10188 Fixes flutter#10191 Reviewed and approved by @anderdobo in flutter#10302 ---- ## New pages These are mostly reusing includes or include templates from the other Getting Started pages. The main new pages are under: - src/_includes/docs/install/reqs/linux/base.md - src/get-started/install/chromeos/ - src/get-started/install/linux/ - src/platform-integration/android/install-android/ - src/platform-integration/linux/install-linux/ - src/platform-integration/web/install-web/ Changed to fix auto-population of current build artifacts in terminal code blocks. - src/assets/js/archive.js Added tabs - src/assets/js/main.js Refactored other framework pages to clean up includes. ---- ## New page links It will help to see these staged because of the heavy reuse and Liquid logic. ### ChromeOS install - [Install on ChromeOS landing page](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/get-started/install/chromeos/) - [Install Flutter with Android tools on ChromeOS](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/get-started/install/chromeos/android/) - [Install Flutter with web tools on ChromeOS](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/get-started/install/chromeos/web/) ### Linux Install - [Install on Linux landing page](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/get-started/install/linux/) - [Install Flutter for Linux Desktop on Linux](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/get-started/install/linux/desktop) - [Install Flutter with Android tools on on Linux](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/get-started/install/linux/android) - [Install Flutter with web tools on Linux](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/get-started/install/linux/web) ### Add Linux desktop to Linux Android or Web install - [Add Linux Desktop tools landing page](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/linux/install-linux/) - [Add Linux Desktop tools to Flutter & Android tools on Linux](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/linux/install-linux/install-linux-from-android) - [Add Linux Desktop tools to Flutter & Web tools on Linux](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/linux/install-linux/install-linux-from-web) ### Add Android to Linux Desktop install - [Add Android tools to Flutter & Linux Desktop tools on Linux](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/android/install-android/install-android-from-linux) - [Add Android tools to Flutter & Web tools on Linux](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/android/install-android/install-android-from-web-on-linux) ### Add Android to ChromeOS Web install - [Add Android tools to Flutter on ChromeOS](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/android/install-android/install-android-from-web-on-chromeos) ### Add Web to Linux Desktop install - [Add web tools to Flutter & Linux Desktop tools on ChromeOS](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/web/install-web/install-web-from-linux-desktop) - [Add web tools to Flutter & Android tools on ChromeOS](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/web/install-web/install-web-from-android-on-linux) ### Add Web to ChromeOS Android install - [Add web tools to ChromeOS](https://flutter-docs-prod--pr10316-fix-10255-ayluprrv.web.app/platform-integration/web/install-web/install-web-from-android-on-chromeos) --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]> Co-authored-by: John Ryan <[email protected]>
- Loading branch information
1 parent
428853a
commit 22b84fb
Showing
102 changed files
with
1,674 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- name: bash | ||
set-path: echo 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.bash_profile | ||
- name: zsh | ||
set-path: echo 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.zshenv | ||
- name: fish | ||
set-path: fish_add_path -g -p $HOME/development/flutter/bin | ||
- name: csh | ||
set-path: echo 'setenv PATH "$HOME/development/flutter/bin:$PATH"' >> ~/.cshrc | ||
- name: tsch | ||
set-path: echo 'setenv PATH "$HOME/development/flutter/bin:$PATH"' >> ~/.tcshrc | ||
- name: ksh | ||
set-path: echo 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.profile | ||
- name: sh | ||
set-path: echo 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/_includes/docs/install/accordions/install-chrome-from-cli.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
<details markdown="1"> | ||
<summary><b>How to install Chrome from the command line</b></summary> | ||
|
||
```terminal | ||
$ wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O /tmp/google.pub | ||
$ gpg --no-default-keyring \ | ||
--keyring /etc/apt/keyrings/google-chrome.gpg \ | ||
--import /tmp/google.pub | ||
$ echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list | ||
$ sudo apt-get update -y; sudo apt-get install -y google-chrome-stable | ||
``` | ||
|
||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{site.alert.important}} | ||
Perform this guide in sequence. Skipping steps can cause errors. | ||
{{site.alert.end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,64 @@ | ||
{% assign doctor = site.data.doctor %} | ||
{% assign config = site.data.doctor[include.config] %} | ||
{% case include.devos %} | ||
{% when 'macOS' %} | ||
{% assign displayos = 'macOS 14.4.0 23E214 darwin-arm64' %} | ||
{% when 'Windows' %} | ||
{% assign displayos = 'Microsoft Windows 11 [Version 10.0.22621.3155]' %} | ||
{% when 'Linux' %} | ||
{% assign displayos = 'Ubuntu 20.04 (LTS)' %} | ||
{% endcase %} | ||
|
||
{% comment %} | ||
Don't change the whitespace control dashes in this list. | ||
It took about two hours to get exactly right. @atsansone | ||
{% endcomment %} | ||
|
||
```terminal | ||
Running flutter doctor... | ||
Doctor summary (to see all details, run flutter doctor -v): | ||
[✓] Flutter (Channel stable, {{site.appnow.flutter}}, on {{os}} A.B chipset, locale en) | ||
[✓] Flutter (Channel stable, {{site.appnow.flutter}}, on {{displayos}}, locale en) | ||
{%- if config.windows == 'Y' %} | ||
[✓] Windows version (Installed version of Windows is version 10 or higher) | ||
{%- endif %} | ||
{% case config.android-toolchain %} | ||
{%- when 'Y' %}[✓] Android toolchain - develop for Android devices (Android SDK version {{site.appnow.android_sdk}}) | ||
{%- when 'N' %}[!] Android toolchain - develop for Android devices | ||
{%- endcase %} | ||
{% case config.chrome %} | ||
{%- when 'Y' %}[✓] Chrome - develop for the web | ||
{%- when 'N' %}[!] Chrome - develop for the web | ||
{%- endcase %} | ||
{% when 'Y' %}[✓] Android toolchain - develop for Android devices (Android SDK version {{site.appnow.android_sdk}}) | ||
{% when 'N' %}[!] Android toolchain - develop for Android devices | ||
{% endcase %} | ||
{%- case config.chrome %} | ||
{% when 'Y' %}[✓] Chrome - develop for the web | ||
{% when 'N' %}[!] Chrome - develop for the web | ||
{% endcase -%} | ||
{% unless config.xcode == 'X' -%} | ||
{% case config.xcode %} | ||
{%- when 'Y' %}[✓] Xcode - develop for iOS and macOS (Xcode {{site.appnow.xcode}}) | ||
{%- when 'N' %}[!] Xcode - develop for iOS and macOS (Xcode not installed) | ||
{%- endcase -%} | ||
{% when 'Y' %}[✓] Xcode - develop for iOS and macOS (Xcode {{site.appnow.xcode}}) | ||
{% when 'N' %}[!] Xcode - develop for iOS and macOS (Xcode not installed) | ||
{% endcase %} | ||
{%- endunless -%} | ||
{% unless config.visual-studio == 'X' -%} | ||
{% case config.visual-studio %} | ||
{%- when 'Y' %}[✓] Visual Studio - develop Windows apps (version 2022) | ||
{%- when 'N' %}[!] Visual Studio - develop Windows apps | ||
{%- endcase %} | ||
{% case config.android-studio %} | ||
{%- when 'Y' %}[✓] Android Studio (version {{site.appnow.android_studio}}) | ||
{%- when 'N' %}[!] Android Studio (not installed) | ||
{%- endcase %} | ||
{% when 'Y' %}[✓] Visual Studio - develop Windows apps (version 2022) | ||
{% when 'N' %}[!] Visual Studio - develop Windows apps | ||
{% endcase %} | ||
{%- endunless %} | ||
{%- case config.android-studio %} | ||
{% when 'Y' %}[✓] Android Studio (version {{site.appnow.android_studio}}) | ||
{% when 'N' %}[!] Android Studio (not installed) | ||
{% endcase -%} | ||
{% unless config.linux == 'X' -%} | ||
{% case config.linux %} | ||
{%- when 'Y' %}[✓] Linux toolchain - develop for Linux desktop | ||
{%- when 'N' %}[!] Linux toolchain - develop for Linux desktop | ||
{%- endcase -%} | ||
{% when 'Y' %}[✓] Linux toolchain - develop for Linux desktop | ||
{% when 'N' %}[!] Linux toolchain - develop for Linux desktop | ||
{% endcase %} | ||
{%- endunless -%} | ||
[✓] VS Code (version {{site.appnow.vscode}}) | ||
[✓] Connected device (1 available) | ||
[✓] Network resources | ||
{% unless config.errors == 0 %} | ||
! Doctor found issues in {{config.errors}} categories. | ||
{% else %} | ||
∙ No issues found! | ||
{% endunless -%} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.