Skip to content

Commit 8588473

Browse files
authored
Merge pull request #81 from SwiftGGTeam/upstream-sync
New look from official
2 parents 568f959 + 350160e commit 8588473

File tree

338 files changed

+10576
-2065
lines changed

Some content is hidden

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

338 files changed

+10576
-2065
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ xcuserdata
2222

2323
# VS Code files
2424
.vscode
25+
26+
# Npm modules
27+
node_modules

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
assets/javascripts/new-javascripts/vendor/

.prettierrc

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
{
2-
"overrides": [
3-
{
4-
"files": [
5-
"**/*.css",
6-
"**/*.scss"
7-
],
8-
"options": {
9-
"tabWidth": 2,
10-
"useTabs": false
11-
}
12-
}
13-
]
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"singleQuote": true,
5+
"semi": false,
6+
"endOfLine": "lf"
147
}

404.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
2-
layout: page-wide
3-
title: "Not Found"
2+
layout: new-layouts/base
3+
title: 页面未找到
44
permalink: /404.html
55
---
66

7-
The page you’re looking for can’t be found.
8-
7+
<section id="exception">
8+
<div class="content">
9+
<h1>页面未找到</h1>
10+
<p>抱歉,您访问的页面不存在。</p>
11+
</div>
12+
</section>

500.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
2-
layout: page-wide
3-
title: "Internal Server Error"
2+
layout: new-layouts/base
3+
title: 服务器内部错误
44
permalink: /500.html
55
---
66

7-
The server encountered an error and was unable to complete your request.
7+
<section class="section">
8+
<h1>服务器内部错误</h1>
9+
服务器遇到错误,无法完成您的请求。
10+
</section>

Gemfile.lock

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,9 @@ GEM
1212
eventmachine (>= 0.12.9)
1313
http_parser.rb (~> 0)
1414
eventmachine (1.2.7)
15-
ffi (1.17.0)
1615
ffi (1.17.0-arm64-darwin)
17-
ffi (1.17.0-x86_64-darwin)
1816
forwardable-extended (2.6.0)
19-
google-protobuf (4.29.2)
20-
bigdecimal
21-
rake (>= 13)
22-
google-protobuf (4.29.2-arm64-darwin)
23-
bigdecimal
24-
rake (>= 13)
25-
google-protobuf (4.29.2-x86_64-darwin)
17+
google-protobuf (4.28.3-arm64-darwin)
2618
bigdecimal
2719
rake (>= 13)
2820
http_parser.rb (0.8.0)
@@ -69,34 +61,15 @@ GEM
6961
rexml (3.4.0)
7062
rouge (4.5.1)
7163
safe_yaml (1.0.5)
72-
sass-embedded (1.83.0)
73-
google-protobuf (~> 4.28)
74-
rake (>= 13)
75-
sass-embedded (1.83.0-aarch64-mingw-ucrt)
76-
google-protobuf (~> 4.28)
77-
sass-embedded (1.83.0-arm64-darwin)
78-
google-protobuf (~> 4.28)
79-
sass-embedded (1.83.0-x86-cygwin)
80-
google-protobuf (~> 4.28)
81-
sass-embedded (1.83.0-x86-mingw-ucrt)
82-
google-protobuf (~> 4.28)
83-
sass-embedded (1.83.0-x86_64-cygwin)
84-
google-protobuf (~> 4.28)
85-
sass-embedded (1.83.0-x86_64-darwin)
64+
sass-embedded (1.81.0-arm64-darwin)
8665
google-protobuf (~> 4.28)
8766
terminal-table (3.0.2)
8867
unicode-display_width (>= 1.1.1, < 3)
8968
unicode-display_width (2.6.0)
9069
webrick (1.9.1)
9170

9271
PLATFORMS
93-
aarch64-mingw-ucrt
9472
arm64-darwin
95-
ruby
96-
x86-cygwin
97-
x86-mingw-ucrt
98-
x86_64-cygwin
99-
x86_64-darwin
10073

10174
DEPENDENCIES
10275
base64
@@ -107,4 +80,4 @@ DEPENDENCIES
10780
webrick (~> 1.7)
10881

10982
BUNDLED WITH
110-
2.5.23
83+
2.5.23

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,20 @@ Swift.org 使用 [Jekyll](https://jekyllrb.com),这是一个用 Ruby 编写的
3434
git clone https://github.com/swiftlang/swift-org-website.git
3535
cd swift-org-website
3636
bundle install
37-
LC_ALL=en_us.UTF-8 bundle exec jekyll serve
37+
LC_ALL=en_us.UTF-8 bundle exec jekyll serve --config _config.yml,_config_dev.yml
3838
open "http://localhost:4000"
39+
40+
If you’d like to contribute to this project, please run Prettier before submitting your pull request to ensure consistent code style across the project.
41+
42+
Requirements
43+
- [Node v18.17.1 or higher](https://nodejs.org)
44+
45+
```shell
46+
npm install
47+
```
48+
49+
```shell
50+
npm run prettify
3951
```
4052

4153
### 在 Docker 中运行

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ url: https://swift.swiftgg.team
22
title: SwiftGG
33
description: "Swift 是一种通用编程语言,它采用现代方法处理安全性、性能和软件设计模式。"
44
timezone: America/Lower_Princes
5-
exclude: ["README.md", "config.ru", "Gemfile", "Gemfile.lock", "Procfile", "vendor"]
5+
exclude: ["README.md", "config.ru", "Gemfile", "Gemfile.lock", "Procfile", "vendor", "get-started/storybook"]
66
safe: false
77
future: true
88

@@ -29,3 +29,4 @@ whitelist:
2929

3030
include:
3131
- .well-known
32+
- assets/fonts

_config_dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude: []

_data/authors.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ shahmishal:
103103
104104
github: shahmishal
105105
gravatar: 231cec2cc45a272aa5b341b413fdc2ed
106-
about: "Mishal Shah is an engineer on the Swift Infrastructure team at Apple."
106+
about: "Mishal Shah is part of the Swift Core Team, the Swift Ecosystem steering group, and the Swift Website workgroup, among other roles. He oversees a team focused on compiler developer experience tooling at Apple."
107107

108108
mikeash:
109109
name: Mike Ash
@@ -505,3 +505,27 @@ chris-mcgee:
505505
name: Chris McGee
506506
github: cmcgee1024
507507
about: "Chris McGee is on the team at Apple working on Swift Package Manager, and Swiftly."
508+
509+
parispittman:
510+
name: Paris Pittman
511+
github: parispittman
512+
513+
rmondello:
514+
name: Ricky Mondello
515+
github: rmondello
516+
about: "Ricky Mondello is a member of the engineering team at Apple working on the Passwords app, passkeys, and other authentication technologies."
517+
518+
indravardhan:
519+
name: Indravardhan Singh Shaktawat
520+
github: indravardhan
521+
about: "Indravardhan Singh Shaktawat is a member of the engineering team at Apple working on Password Monitoring and other Security Services."
522+
523+
spencervd6:
524+
name: Spencer Van Dyke
525+
github: spencervd6
526+
about: "Spencer Van Dyke is a member of the engineering team at Apple working on Password Monitoring and other Security Services."
527+
528+
umeshbatra13:
529+
name: Umesh Batra
530+
github: umeshbatra13
531+
about: "Umesh Batra is a member of the engineering team at Apple working on Password Monitoring and other Security Services."

0 commit comments

Comments
 (0)