Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: David Rönnqvist <[email protected]>
  • Loading branch information
MaxDesiatov and d-ronnqvist authored Aug 2, 2023
commit 8c4e6d04ce2baefabe65629d4680aaf2d790f324
3 changes: 3 additions & 0 deletions Sources/SwiftDocC/Indexing/Navigator/NavigatorIndex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public class NavigatorIndex {
/// Missing bundle identifier.
case missingBundleIdentifier

@available(*, deprecated, renamed: "missingBundleIdentifier")
case missingBundleIndentifier

/// A RenderNode has no title and won't be indexed.
case missingTitle(description: String)

Expand Down
5 changes: 5 additions & 0 deletions Sources/SwiftDocC/Servers/FileServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public class FileServer {
/**
Returns the data for a given URL.
*/
@available(*, deprecated, message: "Use 'data(for path: String)' instead.")
public func data(for url: URL) -> Data? {
return data(for url.path)
}

public func data(for path: String) -> Data? {
let providerKey = providers.keys.sorted { (l, r) -> Bool in
l.count > r.count
Expand Down