Skip to content

Commit 6e96047

Browse files
authored
Merge pull request #1404 from SwiftGGTeam/main
修改了 集合类型
2 parents a976913 + ed524e2 commit 6e96047

File tree

239 files changed

+172
-777
lines changed

Some content is hidden

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

239 files changed

+172
-777
lines changed

.github/workflows/deploy.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- release/*
6+
jobs:
7+
deploy:
8+
runs-on: "macos-15"
9+
permissions:
10+
contents: read
11+
deployments: write
12+
name: Deploy to Cloudflare Pages
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Setup node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20"
20+
- name: Install npm packages
21+
run: npm install
22+
- name: Setup Xcode
23+
uses: maxim-lobanov/setup-xcode@v1
24+
with:
25+
xcode-version: "16.0"
26+
- name: Get swift version
27+
run: swift --version
28+
- name: Build
29+
run: xcrun docc convert swift-6.docc --output-path ./docs --transform-for-static-hosting --experimental-enable-custom-templates
30+
- name: Copy Redirects
31+
run: cp swift-6.docc/_redirects ./docs/_redirects
32+
- name: Publish
33+
uses: cloudflare/pages-action@v1
34+
with:
35+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
36+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
37+
projectName: swift-programming-lang
38+
directory: ./docs
39+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
node_modules
33
package-lock.json
44
**/.docc-build
5+
docs
6+

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This repository includes the latest version of TSPL, as well as Simplified Chine
1313

1414
## Building
1515

16-
Clone this repository and run `docc preview swift-6-beta.docc`
16+
Clone this repository and run `docc preview swift-6.docc`
1717
in this repository's root directory.
1818

1919
After running DocC, open the link that `docc` outputs
@@ -41,7 +41,7 @@ to display a local preview in your browser.
4141
> includes that directory.
4242
>
4343
> If you installed DocC by downloading Xcode,
44-
> run `xcrun docc preview swift-6-beta.docc` instead.
44+
> run `xcrun docc preview swift-6.docc` instead.
4545
4646
3. Replace the content of the original Markdown file with your Chinese translation, following the terminology table below and the [SwiftGG style guide][swiftgg-style-guide]. Submit your translation through a Pull Request. Once verified by SwiftGG members, it will be merged into the current translation branch.
4747

@@ -59,13 +59,13 @@ We extend our heartfelt thanks to all our contributors. You can find the [list o
5959

6060
## 构建
6161

62-
克隆此仓库并在仓库根目录运行 `docc preview swift-6-beta.docc`
62+
克隆此仓库并在仓库根目录运行 `docc preview swift-6.docc`
6363

6464
运行 DocC 后,打开 `docc` 输出的链接,即可在浏览器中显示本地预览。
6565

6666
## 当前状态
6767

68-
- The Swift Programming Language 的最新英文版本。[最新提交: 11a2b29][11a2b29]
68+
- The Swift Programming Language 的最新英文版本。[最新提交: fe0121d][https://github.com/swiftlang/swift-book/commit/fe0121d1f2d86d6139c2b424d45a7889b82ff5e2]
6969
- 对应的简体中文翻译 (进行中和已归档):
7070
- Swift 6 beta (当前正在翻译)
7171
- Swift 5.x 及更早版本 (可在 [GitBook][legacy-documentations] 上阅读)
@@ -83,7 +83,7 @@ We extend our heartfelt thanks to all our contributors. You can find the [list o
8383
> 确保您的 shell 的 `PATH` 环境变量包含该目录。
8484
>
8585
> 如果您通过下载 Xcode 安装了 DocC,
86-
> 请运行 `xcrun docc preview swift-6-beta.docc`
86+
> 请运行 `xcrun docc preview swift-6.docc`
8787
8888
3. 按照下面的术语表和 [SwiftGG 排版指南][swiftgg-style-guide] 将原始 Markdown 文件的内容替换为您的中文翻译。通过 Pull Request 提交您的翻译。经 SwiftGG 成员验证后,将合并到当前的翻译分支。
8989

TSPL.docc/GuidedTour/AboutSwift.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ Swift continues to evolve with thoughtful new features and powerful capabilities
4545
The goals for Swift are ambitious.
4646
We can’t wait to see what you create with it.
4747

48-
> Beta Software:
49-
>
50-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
51-
>
52-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
53-
5448
<!--
5549
This source file is part of the Swift.org open source project
5650

TSPL.docc/GuidedTour/Compatibility.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ that's divided into multiple frameworks,
4343
you can migrate your code to a newer language version
4444
one framework at a time.
4545

46-
> Beta Software:
47-
>
48-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
49-
>
50-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
51-
5246
<!--
5347
This source file is part of the Swift.org open source project
5448

TSPL.docc/GuidedTour/GuidedTour.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,12 +2449,6 @@ anyCommonElements([1, 2, 3], [3])
24492449
Writing `<T: Equatable>`
24502450
is the same as writing `<T> ... where T: Equatable`.
24512451

2452-
> Beta Software:
2453-
>
2454-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
2455-
>
2456-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
2457-
24582452
<!--
24592453
This source file is part of the Swift.org open source project
24602454

TSPL.docc/LanguageGuide/AccessControl.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,12 +1508,6 @@ but a public type alias can't alias an internal, file-private, or private type.
15081508
```
15091509
-->
15101510

1511-
> Beta Software:
1512-
>
1513-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1514-
>
1515-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1516-
15171511
<!--
15181512
This source file is part of the Swift.org open source project
15191513

TSPL.docc/LanguageGuide/AdvancedOperators.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,12 +1561,6 @@ see <doc:Attributes#resultBuilder>.
15611561
TODO: generic operators
15621562
-->
15631563

1564-
> Beta Software:
1565-
>
1566-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1567-
>
1568-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1569-
15701564
<!--
15711565
This source file is part of the Swift.org open source project
15721566

TSPL.docc/LanguageGuide/AutomaticReferenceCounting.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,12 +1512,6 @@ paragraph = nil
15121512
For more information about capture lists,
15131513
see <doc:Expressions#Capture-Lists>.
15141514

1515-
> Beta Software:
1516-
>
1517-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1518-
>
1519-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1520-
15211515
<!--
15221516
This source file is part of the Swift.org open source project
15231517

0 commit comments

Comments
 (0)