Skip to content

Commit

Permalink
Merge pull request #2 from swift-on-server/fix/technical-issues
Browse files Browse the repository at this point in the history
Fix technical issues
  • Loading branch information
Joannis authored Jan 18, 2024
2 parents 67dcff1 + e51cfb1 commit 7527e96
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 8 deletions.
6 changes: 5 additions & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down Expand Up @@ -47,6 +47,8 @@
>
<img
id="logo-image"
width="150"
height="150"
src="https://swiftonserver.com/images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand Down Expand Up @@ -85,6 +87,8 @@ <h1>404</h1>
>
<img
id="logo-image"
width="80"
height="80"
src="https://swiftonserver.com/images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand Down
4 changes: 4 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ h6 {
font-size: 1rem;
line-height: 1.5rem;
}
img {
width: 100%;
height: auto;
}
p {
color: var(--secondary-text-color);
margin-top: 1.5rem;
Expand Down
8 changes: 6 additions & 2 deletions docs/developing-with-swift-in-visual-studio-code/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down Expand Up @@ -47,6 +47,8 @@
>
<img
id="logo-image"
width="150"
height="150"
src="https://swiftonserver.com/images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand Down Expand Up @@ -89,7 +91,7 @@ <h1 class="title">Developing with Swift in Visual Studio Code</h1>
<img class="post-image" src="https://swiftonserver.com/images/assets/developing-with-swift-in-visual-studio-code/images/open-in-container.png" alt="Reopen in Container">
</picture>
</figure>
</section><section class="content-wrapper"><p><strong>Note:</strong> The image shows the button "Update"</p><p>Visual Studio Code will now start downloading or building the Dev Container. This may take a while, as it needs to download the Swift toolchain and other dependencies.</p><p>Once it's done, you'll see a new window with the project open. You can now start developing!</p><h3>Running the Code</h3><p>In the left sidebar, you'll see a "Run and Debug" tab. Click on it to open the Run view. You'll see a "Run" button with a green arrow. Click on it to run the project.</p><p><strong>Tip:</strong> Press <code>Cmd + Shift + D</code> on macOS or <code>Ctrl + Shift + D</code> on Windows/Linux to open the Run view.</p><p>On the bottom-right of the window, you'll see a terminal window pop up. This is the terminal inside the Dev Container, and shows the output of the program. You can also find the debugger right next to that terminal window, which has LLDB integration.</p><p>Once the program is done running, you'll see the output in the terminal window:</p></section><section class="wrapper">
</section><section class="content-wrapper"><p><strong>Note:</strong> The image shows the "Update" button instead of the "Reopen in Container" button. This is because I already have the project open in a Dev Container.</p><p>Visual Studio Code will now start downloading or building the Dev Container. This may take a while, as it needs to download the Swift toolchain and other dependencies.</p><p>Once it's done, you'll see a new window with the project open. You can now start developing!</p><h3>Running the Code</h3><p>In the left sidebar, you'll see a "Run and Debug" tab. Click on it to open the Run view. You'll see a "Run" button with a green arrow. Click on it to run the project.</p><p><strong>Tip:</strong> Press <code>Cmd + Shift + D</code> on macOS or <code>Ctrl + Shift + D</code> on Windows/Linux to open the Run view.</p><p>On the bottom-right of the window, you'll see a terminal window pop up. This is the terminal inside the Dev Container, and shows the output of the program. You can also find the debugger right next to that terminal window, which has LLDB integration.</p><p>Once the program is done running, you'll see the output in the terminal window:</p></section><section class="wrapper">
<figure>
<picture>
<source srcset="https://swiftonserver.com/images/assets/developing-with-swift-in-visual-studio-code/images/program-output~dark.png" media="(prefers-color-scheme: dark)">
Expand All @@ -114,6 +116,8 @@ <h1 class="title">Developing with Swift in Visual Studio Code</h1>
>
<img
id="logo-image"
width="80"
height="80"
src="https://swiftonserver.com/images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/defaults/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand All @@ -11,12 +11,12 @@
<meta property="og:title" content="Swift on server - Swift on server">
<meta property="og:description" content="Articles about server-side Swift development. Created by Joannis Orlandos and Tibor Bödecs.">
<meta property="og:url" content="https://swiftonserver.com/">
<meta property="og:image" content="https://swiftonserver.com/">
<meta property="og:image" content="https://swiftonserver.com/images/defaults/default.png">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Swift on server - Swift on server">
<meta name="twitter:description" content="Articles about server-side Swift development. Created by Joannis Orlandos and Tibor Bödecs.">
<meta name="twitter:image" content="https://swiftonserver.com/">
<meta name="twitter:image" content="https://swiftonserver.com/images/defaults/default.png">

<link rel="stylesheet" href="https://swiftonserver.com/css/style.css">
<link rel="stylesheet" href="https://swiftonserver.com/css/syntax.css">
Expand Down Expand Up @@ -47,6 +47,8 @@
>
<img
id="logo-image"
width="150"
height="150"
src="https://swiftonserver.com/images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand Down Expand Up @@ -95,6 +97,8 @@ <h2 class="Developing with Swift in Visual Studio Code">Developing with Swift in
>
<img
id="logo-image"
width="80"
height="80"
src="https://swiftonserver.com/images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand Down
2 changes: 1 addition & 1 deletion docs/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<description>Articles about server-side Swift development. Created by Joannis Orlandos and Tibor Bödecs.</description>
<link>https://swiftonserver.com/</link>
<language>en-US</language>
<lastBuildDate>Thu, 18 Jan 2024 14:31:23 +0000</lastBuildDate>
<lastBuildDate>Thu, 18 Jan 2024 20:22:54 +0000</lastBuildDate>
<pubDate>Mon, 15 Jan 2024 23:00:00 +0000</pubDate>
<ttl>250</ttl>
<atom:link href="https://swiftonserver.com/rss.xml" rel="self" type="application/rss+xml"/>
Expand Down
1 change: 1 addition & 0 deletions src/contents/home.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: Swift on server
description: Articles about server-side Swift development. Created by Joannis Orlandos and Tibor Bödecs.
image: images/defaults/default.png
---
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ h6 {
font-size: 1rem;
line-height: 1.5rem;
}
img {
width: 100%;
height: auto;
}
p {
color: var(--secondary-text-color);
margin-top: 1.5rem;
Expand Down
Binary file added src/public/images/defaults/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down Expand Up @@ -47,6 +47,8 @@
>
<img
id="logo-image"
width="150"
height="150"
src="{baseUrl}images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand All @@ -72,6 +74,8 @@
>
<img
id="logo-image"
width="80"
height="80"
src="{baseUrl}images/logos/logo.png"
alt="Logo of Swift on server"
title="Swift on server"
Expand Down

0 comments on commit 7527e96

Please sign in to comment.