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 {
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
136136func 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}
You can’t perform that action at this time.
0 commit comments