Skip to content

Commit

Permalink
rename swift-6-beta to swift-6
Browse files Browse the repository at this point in the history
  • Loading branch information
OneeMe committed Nov 27, 2024
1 parent 805fed6 commit 988ab1f
Show file tree
Hide file tree
Showing 189 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
- name: Get swift version
run: swift --version
- name: Build
run: xcrun docc convert swift-6-beta.docc --output-path ./docs --transform-for-static-hosting --experimental-enable-custom-templates
run: xcrun docc convert swift-6.docc --output-path ./docs --transform-for-static-hosting --experimental-enable-custom-templates
- name: Copy Redirects
run: cp swift-6-beta.docc/_redirects ./docs/_redirects
run: cp swift-6.docc/_redirects ./docs/_redirects
- name: Publish
uses: cloudflare/pages-action@v1
with:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This repository includes the latest version of TSPL, as well as Simplified Chine

## Building

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

After running DocC, open the link that `docc` outputs
Expand Down Expand Up @@ -41,7 +41,7 @@ to display a local preview in your browser.
> includes that directory.
>
> If you installed DocC by downloading Xcode,
> run `xcrun docc preview swift-6-beta.docc` instead.
> run `xcrun docc preview swift-6.docc` instead.
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.

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

## 构建

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

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

Expand All @@ -83,7 +83,7 @@ We extend our heartfelt thanks to all our contributors. You can find the [list o
> 确保您的 shell 的 `PATH` 环境变量包含该目录。
>
> 如果您通过下载 Xcode 安装了 DocC,
> 请运行 `xcrun docc preview swift-6-beta.docc`
> 请运行 `xcrun docc preview swift-6.docc`
3. 按照下面的术语表和 [SwiftGG 排版指南][swiftgg-style-guide] 将原始 Markdown 文件的内容替换为您的中文翻译。通过 Pull Request 提交您的翻译。经 SwiftGG 成员验证后,将合并到当前的翻译分支。

Expand Down
6 changes: 3 additions & 3 deletions add_issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ async function main() {
console.log(`Found ${existingIssues.size} existing issues.`);

const directories = [
"swift-6-beta.docc/GuidedTour",
"swift-6-beta.docc/LanguageGuide",
"swift-6-beta.docc/ReferenceManual"
"swift-6.docc/GuidedTour",
"swift-6.docc/LanguageGuide",
"swift-6.docc/ReferenceManual"
];

for (const dir of directories) {
Expand Down
4 changes: 2 additions & 2 deletions add_metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const path = require('path');
const jsonData = require('./swift_docs_structure.json');

// 根目录路径
const rootDir = './swift-6-beta.docc';
const rootDir = './swift-6.docc';

// GitHub 仓库的基础 URL
const githubBaseUrl = 'https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6-beta.docc';
const githubBaseUrl = 'https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6.docc';

// 递归遍历目录
function traverseDirectory(dir) {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
要翻译的文件:https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6-beta.docc/GuidedTour/GuidedTour.md
要翻译的文件:https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6.docc/GuidedTour/GuidedTour.md
Swift 文档源文件地址:https://docs.swift.org/swift-book/documentation/the-swift-programming-language/guidedtour
翻译估计用时:⭐️⭐️⭐️⭐️⭐️
-->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
要翻译的文件:https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6-beta.docc/ReferenceManual/GenericParametersAndArguments.md
要翻译的文件:https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6.docc/ReferenceManual/GenericParametersAndArguments.md
Swift 文档源文件地址:https://docs.swift.org/swift-book/documentation/the-swift-programming-language/genericparametersandarguments
翻译估计用时:⭐️⭐️⭐️
-->
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
要翻译的文件:https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6-beta.docc/ReferenceManual/Statements.md
要翻译的文件:https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6.docc/ReferenceManual/Statements.md
Swift 文档源文件地址:https://docs.swift.org/swift-book/documentation/the-swift-programming-language/statements
翻译估计用时:⭐️⭐️⭐️⭐️⭐️
-->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 988ab1f

Please sign in to comment.