Skip to content

Commit 257c62d

Browse files
authored
Revert "Add a new version of the communication protocol between DocC and external link resolver executables (#1292)" (#1299)
This reverts commit 9413c59.
1 parent 9413c59 commit 257c62d

26 files changed

+1022
-2361
lines changed

Sources/SwiftDocC/Checker/Checkers/AbstractContainsFormattedTextOnly.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
This source file is part of the Swift.org open source project
33

4-
Copyright (c) 2021-2025 Apple Inc. and the Swift project authors
4+
Copyright (c) 2021 Apple Inc. and the Swift project authors
55
Licensed under Apache License v2.0 with Runtime Library Exception
66

77
See https://swift.org/LICENSE.txt for license information
@@ -14,7 +14,6 @@ public import Markdown
1414
/**
1515
A document's abstract may only contain formatted text. Images and links are not allowed.
1616
*/
17-
@available(*, deprecated, message: "This check is no longer applicable. This deprecated API will be removed after 6.3 is released")
1817
public struct AbstractContainsFormattedTextOnly: Checker {
1918
public var problems: [Problem] = [Problem]()
2019
private var sourceFile: URL?

Sources/SwiftDocC/Infrastructure/DocumentationContext.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ public class DocumentationContext {
265265
/// - source: The location of the document.
266266
private func check(_ document: Document, at source: URL) {
267267
var checker = CompositeChecker([
268+
AbstractContainsFormattedTextOnly(sourceFile: source).any(),
268269
DuplicateTopicsSections(sourceFile: source).any(),
269270
InvalidAdditionalTitle(sourceFile: source).any(),
270271
MissingAbstract(sourceFile: source).any(),
@@ -2738,17 +2739,17 @@ public class DocumentationContext {
27382739
knownEntityValue(
27392740
reference: reference,
27402741
valueInLocalEntity: \.availableSourceLanguages,
2741-
valueInExternalEntity: \.availableLanguages
2742+
valueInExternalEntity: \.sourceLanguages
27422743
)
27432744
}
27442745

27452746
/// Returns whether the given reference corresponds to a symbol.
27462747
func isSymbol(reference: ResolvedTopicReference) -> Bool {
27472748
knownEntityValue(
27482749
reference: reference,
2749-
valueInLocalEntity: \.kind,
2750-
valueInExternalEntity: \.kind
2751-
).isSymbol
2750+
valueInLocalEntity: { node in node.kind.isSymbol },
2751+
valueInExternalEntity: { entity in entity.topicRenderReference.kind == .symbol }
2752+
)
27522753
}
27532754

27542755
// MARK: - Relationship queries

Sources/SwiftDocC/Infrastructure/External Data/OutOfProcessReferenceResolver+Communication.swift

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

0 commit comments

Comments
 (0)