Skip to content

Commit 5e90683

Browse files
federicobucchijesseabordennkrambo
committed
Start redesign
Co-authored-by: Jesse Borden <jesseaborden@gmail.com> Co-authored-by: Nick Krambousanos <n.krambousanos@icloud.com>
1 parent 48b4b3a commit 5e90683

File tree

264 files changed

+7544
-1424
lines changed

Some content is hidden

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

264 files changed

+7544
-1424
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["redesign"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Build job
26+
build:
27+
runs-on: ubuntu-latest
28+
container: ruby:3.3
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
- name: Build site
33+
run: bundle install && bundle exec jekyll build
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
36+
37+
# Deployment job
38+
deploy:
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
runs-on: ubuntu-latest
43+
needs: build
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

.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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2-
layout: page-wide
3-
title: "Not Found"
2+
layout: new-layouts/base
3+
title: Internal Server Error
44
permalink: /404.html
55
---
66

7-
The page you’re looking for can’t be found.
8-
7+
<section class="section">
8+
<h1>Not Found</h1>
9+
The page you're looking for can’t be found.
10+
</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: Internal Server Error
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>Internal Server Error</h1>
9+
The server encountered an error and was unable to complete your request.
10+
</section>

Gemfile.lock

Lines changed: 1 addition & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,11 @@ GEM
1212
eventmachine (>= 0.12.9)
1313
http_parser.rb (~> 0)
1414
eventmachine (1.2.7)
15-
ffi (1.17.0)
16-
ffi (1.17.0-aarch64-linux-gnu)
17-
ffi (1.17.0-aarch64-linux-musl)
18-
ffi (1.17.0-arm-linux-gnu)
19-
ffi (1.17.0-arm-linux-musl)
2015
ffi (1.17.0-arm64-darwin)
21-
ffi (1.17.0-x86-linux-gnu)
22-
ffi (1.17.0-x86-linux-musl)
23-
ffi (1.17.0-x86_64-darwin)
24-
ffi (1.17.0-x86_64-linux-gnu)
25-
ffi (1.17.0-x86_64-linux-musl)
2616
forwardable-extended (2.6.0)
27-
google-protobuf (4.28.3)
28-
bigdecimal
29-
rake (>= 13)
30-
google-protobuf (4.28.3-aarch64-linux)
31-
bigdecimal
32-
rake (>= 13)
3317
google-protobuf (4.28.3-arm64-darwin)
3418
bigdecimal
3519
rake (>= 13)
36-
google-protobuf (4.28.3-x86-linux)
37-
bigdecimal
38-
rake (>= 13)
39-
google-protobuf (4.28.3-x86_64-darwin)
40-
bigdecimal
41-
rake (>= 13)
42-
google-protobuf (4.28.3-x86_64-linux)
43-
bigdecimal
44-
rake (>= 13)
4520
http_parser.rb (0.8.0)
4621
i18n (1.14.6)
4722
concurrent-ruby (~> 1.0)
@@ -86,84 +61,15 @@ GEM
8661
rexml (3.3.9)
8762
rouge (4.5.1)
8863
safe_yaml (1.0.5)
89-
sass-embedded (1.81.0)
90-
google-protobuf (~> 4.28)
91-
rake (>= 13)
92-
sass-embedded (1.81.0-aarch64-linux-android)
93-
google-protobuf (~> 4.28)
94-
sass-embedded (1.81.0-aarch64-linux-gnu)
95-
google-protobuf (~> 4.28)
96-
sass-embedded (1.81.0-aarch64-linux-musl)
97-
google-protobuf (~> 4.28)
98-
sass-embedded (1.81.0-aarch64-mingw-ucrt)
99-
google-protobuf (~> 4.28)
100-
sass-embedded (1.81.0-arm-linux-androideabi)
101-
google-protobuf (~> 4.28)
102-
sass-embedded (1.81.0-arm-linux-gnueabihf)
103-
google-protobuf (~> 4.28)
104-
sass-embedded (1.81.0-arm-linux-musleabihf)
105-
google-protobuf (~> 4.28)
10664
sass-embedded (1.81.0-arm64-darwin)
10765
google-protobuf (~> 4.28)
108-
sass-embedded (1.81.0-riscv64-linux-android)
109-
google-protobuf (~> 4.28)
110-
sass-embedded (1.81.0-riscv64-linux-gnu)
111-
google-protobuf (~> 4.28)
112-
sass-embedded (1.81.0-riscv64-linux-musl)
113-
google-protobuf (~> 4.28)
114-
sass-embedded (1.81.0-x86-cygwin)
115-
google-protobuf (~> 4.28)
116-
sass-embedded (1.81.0-x86-linux-android)
117-
google-protobuf (~> 4.28)
118-
sass-embedded (1.81.0-x86-linux-gnu)
119-
google-protobuf (~> 4.28)
120-
sass-embedded (1.81.0-x86-linux-musl)
121-
google-protobuf (~> 4.28)
122-
sass-embedded (1.81.0-x86-mingw-ucrt)
123-
google-protobuf (~> 4.28)
124-
sass-embedded (1.81.0-x86_64-cygwin)
125-
google-protobuf (~> 4.28)
126-
sass-embedded (1.81.0-x86_64-darwin)
127-
google-protobuf (~> 4.28)
128-
sass-embedded (1.81.0-x86_64-linux-android)
129-
google-protobuf (~> 4.28)
130-
sass-embedded (1.81.0-x86_64-linux-gnu)
131-
google-protobuf (~> 4.28)
132-
sass-embedded (1.81.0-x86_64-linux-musl)
133-
google-protobuf (~> 4.28)
13466
terminal-table (3.0.2)
13567
unicode-display_width (>= 1.1.1, < 3)
13668
unicode-display_width (2.6.0)
13769
webrick (1.9.0)
13870

13971
PLATFORMS
140-
aarch64-linux
141-
aarch64-linux-android
142-
aarch64-linux-gnu
143-
aarch64-linux-musl
144-
aarch64-mingw-ucrt
145-
arm-linux-androideabi
146-
arm-linux-gnu
147-
arm-linux-gnueabihf
148-
arm-linux-musl
149-
arm-linux-musleabihf
15072
arm64-darwin
151-
riscv64-linux-android
152-
riscv64-linux-gnu
153-
riscv64-linux-musl
154-
ruby
155-
x86-cygwin
156-
x86-linux
157-
x86-linux-android
158-
x86-linux-gnu
159-
x86-linux-musl
160-
x86-mingw-ucrt
161-
x86_64-cygwin
162-
x86_64-darwin
163-
x86_64-linux
164-
x86_64-linux-android
165-
x86_64-linux-gnu
166-
x86_64-linux-musl
16773

16874
DEPENDENCIES
16975
base64
@@ -174,4 +80,4 @@ DEPENDENCIES
17480
webrick (~> 1.7)
17581

17682
BUNDLED WITH
177-
2.5.23
83+
2.5.23

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@ LC_ALL=en_us.UTF-8 bundle exec jekyll serve
3535
open "http://localhost:4000"
3636
```
3737

38+
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.
39+
40+
Requirements
41+
- [Node v18.17.1 or higher](https://nodejs.org)
42+
43+
```shell
44+
npm install
45+
```
46+
47+
```shell
48+
npm run prettify
49+
```
50+
3851
### Running in Docker
3952

4053
First build the site with Docker Compose:

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ whitelist:
2929

3030
include:
3131
- .well-known
32+
- assets/fonts
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- title: Overview
2+
link: /community/
3+
- title: Swift Evolution
4+
link: /swift-evolution/
5+
- title: Diversity
6+
link: /diversity/
7+
- title: Mentorship
8+
link: /mentorship/
9+
- title: Contributing
10+
link: /contributing/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- title: Code of Conduct
2+
link: /code-of-conduct/
3+
- title: License
4+
link: /legal/license.html
5+
- title: Security
6+
link: /support/security.html
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- title: Privacy Policy
2+
link: //www.apple.com/privacy/privacy-policy/
3+
- title: Cookies
4+
link: //www.apple.com/legal/privacy/en-ww/cookies/
5+
- title: API
6+
link: /openapi
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# - title: Follow swiftlang on Github
2+
# link: https://github.com/swiftlang
3+
# class: github
4+
- title: Follow @SwiftLang on X
5+
link: https://x.com/swiftlang
6+
class: x
7+
- title: Follow @swift.org on Bluesky
8+
link: https://bsky.app/profile/swift.org
9+
class: bluesky
10+
- title: Follow @swiftLang on Mastodon
11+
link: https://mastodon.social/@swiftlang
12+
class: mastodon
13+
- title: Subscribe to Site Updates
14+
link: /atom.xml
15+
class: feed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- title: Xcode
2+
link: https://developer.apple.com/xcode/
3+
- title: Visual Studio Code
4+
link: https://code.visualstudio.com
5+
- title: Emacs
6+
link: https://www.gnu.org/software/emacs/
7+
- title: Neovim
8+
link: https://neovim.io
9+
- title: Other Editors
10+
link: https://github.com/swiftlang/sourcekit-lsp/blob/main/Documentation/Editor%20Integration.md
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
headline: Develop and deploy to the cloud
2+
code: $ docker pull swift
3+
after-code-text: Swift publishes official container images for multiple architectures, making it easy to develop on Linux and to deploy to production. Ready-to-use guides are available for deploying to environments like Kubernetes, AWS, GCP, Digital Ocean, and many others.
4+
links:
5+
- href: '/install/linux/docker/'
6+
copy: 'View installation via Docker'
7+
- href: '/documentation/server/guides/deployment.html'
8+
copy: 'View deployment guides'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
headline: Build your own container images
2+
body: Swift Container Plugin allows you to build and publish your own container images using Swift Package Manager.
3+
link:
4+
href: 'https://github.com/apple/swift-container-plugin'
5+
copy: Swift Container Plugin
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
headline: Create cloud services with Swift
2+
body: Run performant services on Linux and deploy to the cloud
3+
link:
4+
url: /getting-started/vapor-web-server
5+
text: Get Started
6+
boxes:
7+
- title: Memory efficient
8+
text: As a compiled language, Swift has predictable runtime performance and a low memory footprint.
9+
- title: Quick start-up time
10+
text: With minimal warm-up operations, Swift is an ideal fit for cloud services, which are often rescheduled onto virtual machines and containers.
11+
- title: Production ready
12+
text: Swift server is used in production for large-scale cloud services, handling billions of requests a day.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
image:
2+
src: /assets/images/get-started/swift-performance-graph@2x.png
3+
alt:
4+
copy:
5+
headline: Low memory footprint with massive performance
6+
paragraphs:
7+
- 'Cultured Code migrated the services that support Things to Swift and saw a massive reduction in both cost and response time.'
8+
- 'By leveraging Swift’s built-in features and server-oriented packages, they were able to thoroughly test and rapidly improve their customer experience.'
9+
link:
10+
text: Read more
11+
href: /blog/how-swifts-server-support-powers-things-cloud/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
headline: Learn more
2+
columns:
3+
- headline: Documentation
4+
links:
5+
- text: 'Build a web service with Vapor'
6+
url: '/getting-started/vapor-web-server/'
7+
- text: 'Swift server development guides'
8+
url: '/documentation/server/guides/'
9+
- text: 'Swift on AWS documentation'
10+
url: 'https://aws.amazon.com/developer/language/swift/'
11+
- headline: Talks
12+
links:
13+
- text: 'Explore the Swift on Server ecosystem'
14+
url: 'https://www.youtube.com/watch?v=OWNjtWUb9bs'
15+
- text: 'Live coding a streaming ChatGPT proxy with Swift OpenAPI—from scratch!'
16+
url: 'https://www.youtube.com/watch?v=yK__6GF_tvM'
17+
- text: 'Swift, Server-Side, Serverless'
18+
url: 'https://www.youtube.com/watch?v=M1POAEPATFo'
19+
- headline: Community
20+
links:
21+
- text: 'Server category on Swift forums'
22+
url: 'https://forums.swift.org/c/server/43'
23+
- text: 'Swift server meetup'
24+
url: 'https://forums.swift.org/tag/meetup'
25+
- text: 'Swift server workgroup'
26+
url: '/sswg/'

0 commit comments

Comments
 (0)