Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 7be5e24

Browse files
committed
Use github urls
1 parent 710d88e commit 7be5e24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/swift-doc/Subcommands/Generate.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ extension SwiftDoc {
118118

119119
if case .html = format {
120120
let cssData = try fetchRemoteCSS()
121-
let jsData = try fetchJS()
121+
let jsData = try fetchRemoteJS()
122122
// print("jsData \(jsData.strin)")
123123
let cssURL = outputDirectoryURL.appendingPathComponent("all.css")
124124
try writeFile(cssData, to: cssURL)
@@ -134,11 +134,11 @@ extension SwiftDoc {
134134
}
135135

136136
func fetchRemoteCSS() throws -> Data {
137-
let url = URL(string: "file:///path-to/all.min.css")!
137+
let url = URL(string: "https://raw.githubusercontent.com/literalpie/swift-doc/9fe829b46564c9a41eac95a47918c24dca7a00a1/Resources/all.min.css")!
138138
return try Data(contentsOf: url)
139139
}
140140

141-
func fetchJS() throws -> Data {
142-
let url = URL(string: "file:///path-to/all.js")!
141+
func fetchRemoteJS() throws -> Data {
142+
let url = URL(string: "https://raw.githubusercontent.com/literalpie/swift-doc/9fe829b46564c9a41eac95a47918c24dca7a00a1/Resources/all.js")!
143143
return try Data(contentsOf: url)
144144
}

0 commit comments

Comments
 (0)