You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename fullName to plainTextDeclaration in LinkDestinationSummary
`plainTextDeclaration` is clearer and makes it harder to confuse it with `title`. It is also closer to how the value is derived.
Also updates the JSON schema in `LinkableEntities.json` to add the new `plainTextDeclaration` property to the `LinkDestinationSummary` and `LinkDestinationSummaryVariant` schemas.
Copy file name to clipboardExpand all lines: Sources/SwiftDocC/LinkTargets/LinkDestinationSummary.swift
+27-33Lines changed: 27 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -135,8 +135,8 @@ public struct LinkDestinationSummary: Codable, Equatable {
135
135
/// The unique, precise identifier for this symbol that you use to reference it across different systems, or `nil` if the summarized element isn't a symbol.
136
136
publicletusr:String?
137
137
138
-
/// The full name of this symbol, derived from its full declaration fragments, or `nil` if the summarized element isn't a symbol.
139
-
publicletfullName:String?
138
+
/// The plain text declaration of this symbol, derived from its full declaration fragments, or `nil` if the summarized element isn't a symbol.
139
+
publicletplainTextDeclaration:String?
140
140
141
141
/// The rendered fragments of a symbol's declaration.
@@ -199,10 +199,10 @@ public struct LinkDestinationSummary: Codable, Equatable {
199
199
/// If the summarized element has a precise symbol identifier but the variant doesn't, this property will be `Optional.some(nil)`.
200
200
publicletusr:VariantValue<String?>
201
201
202
-
/// The full name of this symbol, derived from its full declaration fragments, or `nil` if the precise symbol identifier is the same as the summarized element.
202
+
/// The plain text declaration of this symbol, derived from its full declaration fragments, or `nil` if the precise symbol identifier is the same as the summarized element.
203
203
///
204
-
/// If the summarized element has a full name but the variant doesn't, this property will be `Optional.some(nil)`.
205
-
publicletfullName:VariantValue<String?>
204
+
/// If the summarized element has a plain text declaration but the variant doesn't, this property will be `Optional.some(nil)`.
/// The abbreviated declaration of the variant, to display in links, or `nil` if the declaration is the same as the summarized element.
208
208
///
@@ -231,7 +231,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
231
231
/// - abstract: The abstract of the variant or `nil` if the abstract is the same as the summarized element.
232
232
/// - taskGroups: The taskGroups of the variant or `nil` if the taskGroups is the same as the summarized element.
233
233
/// - usr: The precise symbol identifier of the variant or `nil` if the precise symbol identifier is the same as the summarized element.
234
-
/// - fullName: The full name of this symbol, derived from its full declaration fragments, or `nil` if the precise symbol identifier is the same as the summarized element.
234
+
/// - plainTextDeclaration: The plain text declaration of this symbol, derived from its full declaration fragments, or `nil` if the precise symbol identifier is the same as the summarized element.
235
235
/// - declarationFragments: The abbreviated declaration of the variant, to display in links, or `nil` if the declaration is the same as the summarized element.
236
236
/// - navigatorTitle: The abbreviated declaration for this symbol's declaration, to display in navigation, or `nil` if the declaration is the same as the summarized element.
237
237
publicinit(
@@ -243,7 +243,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
@@ -255,12 +255,12 @@ public struct LinkDestinationSummary: Codable, Equatable {
255
255
self.abstract = abstract
256
256
self.taskGroups = taskGroups
257
257
self.usr = usr
258
-
self.fullName=fullName
258
+
self.plainTextDeclaration=plainTextDeclaration
259
259
self.declarationFragments = declarationFragments
260
260
self.navigatorTitle = navigatorTitle
261
261
}
262
262
263
-
@available(*, deprecated, renamed:"init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:fullName:declarationFragments:navigatorTitle:)", message:"Use `init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:fullName:declarationFragments:navigatorTitle:)` instead. `TopicRenderReference` doesn't support variant specific topic images. This property will be removed after 6.3 is released")
263
+
@available(*, deprecated, renamed:"init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:plainTextDeclaration:declarationFragments:navigatorTitle:)", message:"Use `init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:plainTextDeclaration:declarationFragments:navigatorTitle:)` instead. `TopicRenderReference` doesn't support variant specific topic images. This property will be removed after 6.3 is released")
264
264
publicinit(
265
265
traits:[RenderNode.Variant.Trait],
266
266
kind:VariantValue<DocumentationNode.Kind>=nil,
@@ -270,7 +270,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
@@ -284,7 +284,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
284
284
abstract: abstract,
285
285
taskGroups: taskGroups,
286
286
usr: usr,
287
-
fullName: fullName,
287
+
plainTextDeclaration: plainTextDeclaration,
288
288
declarationFragments: declarationFragments,
289
289
navigatorTitle: navigatorTitle
290
290
)
@@ -307,7 +307,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
307
307
/// - platforms: Information about the platforms for which the summarized element is available.
308
308
/// - taskGroups: The reference URLs of the summarized element's children, grouped by their task groups.
309
309
/// - usr: The unique, precise identifier for this symbol that you use to reference it across different systems, or `nil` if the summarized element isn't a symbol.
310
-
/// - fullName: The full name of this symbol, derived from its full declaration fragments, or `nil` if the summarized element isn't a symbol.
310
+
/// - plainTextDeclaration: The plain text declaration of this symbol, derived from its full declaration fragments, or `nil` if the summarized element isn't a symbol.
311
311
/// - declarationFragments: The abbreviated fragments for this symbol's declaration, to display in links, or `nil` if the summarized element isn't a symbol.
312
312
/// - navigatorTitle: The abbreviated fragments for this symbol's declaration, to display in navigation, or `nil` if the summarized element isn't a symbol.
313
313
/// - redirects: Any previous URLs for this element, or `nil` if this element has no previous URLs.
@@ -324,7 +324,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
0 commit comments