Skip to content

Commit 0238525

Browse files
authored
Remove API that was deprecated during the 6.1 release (#1266)
* Delay removing the deprecated 'diagnostics.json file by 1 minor release * Keep old deprecated CLI flag for backwards compatibility * Remove API that was deprecated during the 6.1 release * Reduce duplication in updated test case * Simplify providing data to symbol graph loader * Remove unused API to remove nodes from path hierarchy
1 parent 64418aa commit 0238525

File tree

71 files changed

+108
-4451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+108
-4451
lines changed

Sources/SwiftDocC/DocumentationService/Convert/ConvertService.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ public struct ConvertService: DocumentationService {
243243
.compactMap { (value, isDocumentationExtensionContent) -> (ResolvedTopicReference, RenderReferenceStore.TopicContent)? in
244244
let (topicReference, article) = value
245245

246-
guard let bundle = context.bundle, bundle.id == topicReference.bundleID else { return nil }
246+
let bundle = context.bundle
247+
guard bundle.id == topicReference.bundleID else { return nil }
247248
let renderer = DocumentationContentRenderer(documentationContext: context, bundle: bundle)
248249

249250
let documentationNodeKind: DocumentationNode.Kind = isDocumentationExtensionContent ? .unknownSymbol : .article
@@ -293,3 +294,11 @@ private extension SymbolGraph.LineList.Line {
293294
)
294295
}
295296
}
297+
298+
private extension DocumentationNode {
299+
func meetsExpandedDocumentationRequirements(_ requirements: ConvertRequest.ExpandedDocumentationRequirements) -> Bool {
300+
guard let symbol else { return false }
301+
302+
return requirements.accessControlLevels.contains(symbol.accessLevel.rawValue) && (!symbol.names.title.starts(with: "_") || requirements.canBeUnderscored)
303+
}
304+
}

Sources/SwiftDocC/DocumentationService/Convert/Symbol Link Resolution/AbsoluteSymbolLink.swift

Lines changed: 0 additions & 343 deletions
This file was deleted.

0 commit comments

Comments
 (0)