Skip to content

Commit 20b9493

Browse files
Update dependencies and fix image paths
1 parent 5790293 commit 20b9493

File tree

6 files changed

+111
-126
lines changed

6 files changed

+111
-126
lines changed

Content/posts/update-02-october-2020.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ submitted by [@carson-katri](https://github.com/carson-katri). It does some magi
110110
messages emitted by the Swift compiler, highlights relevant lines of code and formats all of it
111111
nicely. You can check out a preview on this screenshot:
112112

113-
![Pretty-printed compiler diagnostics in `carton`](/images/update-02-carton.png width=100%)
113+
<img src="/images/update-02-carton.png" alt="Pretty-printed compiler diagnostics in `carton`" width="100%">
114114

115115

116116
## Upstream PRs

Content/posts/update-03-october-2020.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ is also parsed, reformatted, and highlighted in a nice summary view.
7070

7171
<br />
7272

73-
![Pretty-printed test summary in `carton`](/images/update-03-carton-test-summary.png width=100%)
73+
<img src="/images/update-03-carton-test-summary.png" alt="Pretty-printed test summary in `carton`" width="100%">
7474

7575
<br />
7676
<br />
7777

78-
![Pretty-printed test errors in `carton`](/images/update-03-carton-test-errors.png width=100%)
78+
<img src="/images/update-03-carton-test-errors.png" alt="Pretty-printed test errors in `carton`" width="100%">
7979

8080
<br />
8181
<br />

Images/logo.png

2.81 KB
Loading

Package.resolved

Lines changed: 100 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// swift-tools-version:5.2
1+
// swift-tools-version:5.8
22

33
import PackageDescription
44

55
let package = Package(
66
name: "SwiftWasmBlog",
77
platforms: [
8-
.macOS(.v10_12),
8+
.macOS(.v12),
99
],
1010
products: [
1111
.executable(
@@ -14,16 +14,15 @@ let package = Package(
1414
),
1515
],
1616
dependencies: [
17-
.package(name: "Publish", url: "https://github.com/johnsundell/publish.git", from: "0.7.0"),
18-
.package(url: "https://github.com/johnsundell/SplashPublishPlugin.git", from: "0.1.0"),
19-
.package(url: "https://github.com/SwiftyGuerrero/CNAMEPublishPlugin", from: "0.1.0"),
20-
.package(url: "https://github.com/finestructure/ImageAttributesPublishPlugin", from: "0.1.0"),
17+
.package(url: "https://github.com/JohnSundell/Publish.git", from: "0.9.0"),
18+
.package(url: "https://github.com/JohnSundell/SplashPublishPlugin.git", from: "0.2.0"),
19+
.package(url: "https://github.com/SwiftyGuerrero/CNAMEPublishPlugin", revision: "dab2f15f963578aa08c0dbd90d2b0178e1ee5f90"),
2120
],
2221
targets: [
23-
.target(
22+
.executableTarget(
2423
name: "SwiftWasmBlog",
2524
dependencies: [
26-
"Publish", "SplashPublishPlugin", "CNAMEPublishPlugin", "ImageAttributesPublishPlugin",
25+
"Publish", "SplashPublishPlugin", "CNAMEPublishPlugin",
2726
]
2827
),
2928
]

Sources/SwiftWasmBlog/main.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import CNAMEPublishPlugin
22
import Foundation
3-
import ImageAttributesPublishPlugin
43
import Plot
54
import Publish
65
import SplashPublishPlugin
@@ -21,14 +20,13 @@ struct Blog: Website {
2120
var name = "SwiftWasm Blog"
2221
var description = ""
2322
var language: Language { .english }
24-
var imagePath: Path? { nil }
23+
var imagePath: Path? { "images/logo.png" }
2524
}
2625

2726
// This will generate your website using the built-in Foundation theme:
2827
try Blog().publish(using: [
2928
.installPlugin(.splash(withClassPrefix: "splash-")),
3029
.installPlugin(.generateCNAME(with: "blog.swiftwasm.org")),
31-
.installPlugin(.imageAttributes()),
3230
.copyResources(at: "Images", to: "images"),
3331
.addMarkdownFiles(),
3432
.generateHTML(withTheme: .swiftwasm),

0 commit comments

Comments
 (0)