Skip to content

Commit f4fcb32

Browse files
authored
[sync] 2025/10/09 (#1582)
2 parents 9b5d6e9 + b74f3f5 commit f4fcb32

File tree

598 files changed

+8388
-7738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

598 files changed

+8388
-7738
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/1_page_issue.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ body:
88
value: |
99
发现了内容错误?你或许可以尝试修复它!
1010
11-
1. 点击页面标题右侧的页面图标(BUG 图标左侧),跳转到对应的 GitHub 页面。
12-
1. 点击源代码右上方的铅笔图标,进入修改。
13-
1. 修复页面错误。
14-
1. 点击 **Commit changes...**。
15-
1. 写明提交信息和描述。
16-
1. 点击 **Propose changes**。
11+
1. 滚动页面到底部,点击页面底部的 **查看文档源码**,跳转到对应的 GitHub 页面。
12+
1. 点击源代码右上方的铅笔图标,进入修改。
13+
1. 修复页面错误。
14+
1. 点击 **Commit changes...**。
15+
1. 写明提交信息和描述。
16+
1. 点击 **Propose changes**。
1717
1818
如果你希望由维护者来修复问题,请填写完整该问题表单。
1919
- type: input

.github/workflows/build.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232
continue-on-error: ${{ matrix.experimental }}
3333
steps:
3434
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
35-
with:
36-
submodules: recursive
3735
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
3836
with:
3937
channel: ${{ matrix.branch }}
@@ -56,8 +54,6 @@ jobs:
5654
if: github.repository == 'cfug/flutter.cn'
5755
steps:
5856
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
59-
with:
60-
submodules: recursive
6157
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
6258
with:
6359
sdk: beta
@@ -74,11 +70,9 @@ jobs:
7470
github.repository == 'cfug/flutter.cn'
7571
steps:
7672
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
77-
with:
78-
submodules: recursive
7973
- name: Enable Corepack
8074
run: npm i -g corepack@latest && corepack enable
81-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
75+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
8276
with:
8377
node-version: ${{ env.NODE_VERSION }}
8478
cache: 'pnpm'
@@ -91,6 +85,8 @@ jobs:
9185
sdk: beta
9286
- name: Fetch Dart dependencies
9387
run: dart pub get
88+
- name: Install firebase-tools
89+
run: curl -sL https://firebase.tools | bash
9490
- name: Build site
9591
run: dart run flutter_site build
9692
- name: Translated (docs.flutter.cn)
@@ -107,8 +103,6 @@ jobs:
107103
if: github.repository == 'cfug/flutter.cn'
108104
steps:
109105
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
110-
with:
111-
submodules: recursive
112106
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
113107
with:
114108
sdk: beta
@@ -128,12 +122,11 @@ jobs:
128122
steps:
129123
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
130124
with:
131-
submodules: recursive
132125
# docs.flutter.cn | https://github.com/cfug/flutter.cn/pull/1518
133126
fetch-depth: 0
134127
- name: Enable Corepack
135128
run: npm i -g corepack@latest && corepack enable
136-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
129+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
137130
with:
138131
node-version: ${{ env.NODE_VERSION }}
139132
cache: 'pnpm'

.github/workflows/compile_host_redirect_js.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
contents: write
1515

1616
env:
17-
NODE_VERSION: 20
17+
NODE_VERSION: 22
1818

1919
jobs:
2020
compile_host_redirect_js:
@@ -23,8 +23,6 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v5
26-
with:
27-
submodules: recursive
2826
- uses: actions/setup-node@v4
2927
with:
3028
node-version: ${{ env.NODE_VERSION }}

.github/workflows/stage.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
permissions: read-all
1010

1111
env:
12-
NODE_VERSION: 20
12+
NODE_VERSION: 22
1313

1414
jobs:
1515
stage:
@@ -22,12 +22,11 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2424
with:
25-
submodules: recursive
2625
# docs.flutter.cn | https://github.com/cfug/flutter.cn/pull/1518
2726
fetch-depth: 0
2827
- name: Enable Corepack
2928
run: npm i -g corepack@latest && corepack enable
30-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
29+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
3130
with:
3231
node-version: ${{ env.NODE_VERSION }}
3332
cache: 'pnpm'

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ package-lock.json
2222
pubspec.lock
2323
tmp/
2424

25-
# Temporary as codelabs used to be a submodule
26-
examples/codelabs
25+
# Temporary as site-shared used to be a submodule.
26+
site-shared/

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idx/dev.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# see: https://developers.google.com/idx/guides/customize-idx-env
33
{ pkgs, ... }: {
44
# Which nixpkgs channel to use.
5-
channel = "stable-24.11"; # or "unstable"
5+
channel = "stable-25.05"; # or "unstable"
66

77
# Use https://search.nixos.org/packages to find packages
88
packages = [
@@ -38,7 +38,6 @@
3838
workspace = {
3939
# Runs when a workspace is first created
4040
onCreate = {
41-
get-submodule = "git submodule update --init --recursive";
4241
pnpm-install = "pnpm install";
4342
};
4443
# Runs when the workspace is (re)started

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Other ways you can contribute:
4444
* [Request docs for docs.flutter.dev][doc-issues]
4545
* [Submit PRs to docs.flutter.dev][doc-PRs]
4646
* [Follow us on Twitter: @flutterdev](https://twitter.com/flutterdev/)
47-
* [Read the Flutter Publication on Medium](https://medium.com/flutter)
47+
* [Read the Flutter Publication on Medium](https://blog.flutter.dev)
4848
* [Sign up to Future UX Studies on Flutter](https://flutter.dev/research-signup)
4949
* [Join the subreddit to keep up with the latest in the Flutter
5050
community][reddit]

README.md

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ you probably don't need to build this site.
7575
Often you can make changes using the GitHub UI.
7676
If needed, we can stage the changes automatically in your pull request.
7777

78-
> [!IMPORTANT]
79-
> If you are cloning this repository locally,
80-
> follow the below instruction on cloning with its submodule.
81-
8278
If your change involves code samples, adds/removes pages, or affects navigation,
8379
do consider building and testing your work before submitting.
8480

@@ -133,52 +129,28 @@ follow the update instructions for how you originally installed it.
133129
[Node.js download archive]: https://nodejs.org/en/download/
134130
[nvm]: https://github.com/nvm-sh/nvm
135131

136-
### Clone this repo and its submodules
137-
138-
> [!NOTE]
139-
> This repository has git _submodules_, which affects how you clone it.
140-
> The GitHub documentation has general help on
141-
> [forking][] and [cloning][] repos.
132+
### Clone this repo
142133

143134
If you're not a member of the Flutter organization,
144-
we recommend you **create a fork** of this repo under your own account,
135+
we recommend you [create a fork][] of this repo under your own account,
145136
and then submit a PR from that fork.
146137

147138
Once you have a fork (or you're a Flutter org member),
148-
_choose one_ of the following submodule-cloning techniques:
149-
150-
1. Clone the repo and its submodule at the same time
151-
using the `--recurse-submodules` option:
152-
153-
```console
154-
git clone --recurse-submodules https://github.com/flutter/website.git
155-
```
139+
clone the repository with `git clone`:
156140

157-
2. If you've already cloned the repo without its submodule,
158-
then run this command from the root of the repository:
159-
160-
```console
161-
git submodule update --init --recursive
162-
```
163-
164-
> [!NOTE]
165-
> At any time during development
166-
> you can use the `git submodule` command to refresh submodules:
167-
>
168-
> ```console
169-
> git pull && git submodule update --init --recursive
170-
> ```
141+
```bash
142+
git clone https://github.com/flutter/website.git
143+
```
171144

172-
[cloning]: https://docs.github.com/repositories/creating-and-managing-repositories/cloning-a-repository
173-
[forking]: https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo
145+
[create a fork]: https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo
174146

175147
## Set up your local environment and serve changes
176148

177149
Before you continue setting up the site infrastructure,
178150
verify the correct versions of Flutter and Node.js are set up and available by
179151
following the instructions in [Get the prerequisites](#get-the-prerequisites).
180152

181-
1. _Optional:_ After cloning the repo and its submodules,
153+
1. _Optional:_ After cloning the repo,
182154
create a branch for your changes:
183155

184156
```console

0 commit comments

Comments
 (0)