This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/swift-doc/Subcommands Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ extension SwiftDoc {
118
118
119
119
if case . html = format {
120
120
let cssData = try fetchRemoteCSS ( )
121
- let jsData = try fetchJS ( )
121
+ let jsData = try fetchRemoteJS ( )
122
122
// print("jsData \(jsData.strin)")
123
123
let cssURL = outputDirectoryURL. appendingPathComponent ( " all.css " )
124
124
try writeFile ( cssData, to: cssURL)
@@ -134,11 +134,11 @@ extension SwiftDoc {
134
134
}
135
135
136
136
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" ) !
138
138
return try Data ( contentsOf: url)
139
139
}
140
140
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" ) !
143
143
return try Data ( contentsOf: url)
144
144
}
You can’t perform that action at this time.
0 commit comments