@@ -111,6 +111,9 @@ public struct ConvertRequest: Codable {
111
111
/// the client to pass a more up-to-date value than is available in the symbol graph.
112
112
public var overridingDocumentationComments : [ String : [ Line ] ] ? = nil
113
113
114
+ /// Whether the conversion's rendered documentation should include source file location metadata.
115
+ public var emitSymbolSourceFileURIs : Bool
116
+
114
117
/// The article and documentation extension file data included in the documentation bundle to convert.
115
118
///
116
119
/// ## See Also
@@ -166,6 +169,7 @@ public struct ConvertRequest: Codable {
166
169
self . tutorialFiles = [ ]
167
170
self . miscResourceURLs = miscResourceURLs
168
171
self . featureFlags = FeatureFlags ( )
172
+ self . emitSymbolSourceFileURIs = true
169
173
170
174
self . bundleInfo = DocumentationBundle . Info (
171
175
displayName: displayName,
@@ -185,6 +189,7 @@ public struct ConvertRequest: Codable {
185
189
/// - symbolGraphs: The symbols graph data included in the documentation bundle to convert.
186
190
/// - overridingDocumentationComments: The mapping of external symbol identifiers to lines of a
187
191
/// documentation comment that overrides the value in the symbol graph.
192
+ /// - emitSymbolSourceFileURIs: Whether the conversion's rendered documentation should include source file location metadata.
188
193
/// - knownDisambiguatedSymbolPathComponents: The mapping of external symbol identifiers to
189
194
/// known disambiguated symbol path components.
190
195
/// - markupFiles: The article and documentation extension file data included in the documentation bundle to convert.
@@ -200,6 +205,7 @@ public struct ConvertRequest: Codable {
200
205
symbolGraphs: [ Data ] ,
201
206
overridingDocumentationComments: [ String : [ Line ] ] ? = nil ,
202
207
knownDisambiguatedSymbolPathComponents: [ String : [ String ] ] ? = nil ,
208
+ emitSymbolSourceFileURIs: Bool = true ,
203
209
markupFiles: [ Data ] ,
204
210
tutorialFiles: [ Data ] = [ ] ,
205
211
miscResourceURLs: [ URL ]
@@ -211,6 +217,13 @@ public struct ConvertRequest: Codable {
211
217
self . symbolGraphs = symbolGraphs
212
218
self . overridingDocumentationComments = overridingDocumentationComments
213
219
self . knownDisambiguatedSymbolPathComponents = knownDisambiguatedSymbolPathComponents
220
+
221
+ // The default value for this is `true` to enable the inclusion of symbol declaration file paths
222
+ // in the produced render json by default.
223
+ // This default to true, because the render nodes created by `ConvertService` are intended for
224
+ // local uses of documentation where this information could be relevant and we don't have the
225
+ // privacy concerns that come with including this information in public releases of docs.
226
+ self . emitSymbolSourceFileURIs = emitSymbolSourceFileURIs
214
227
self . markupFiles = markupFiles
215
228
self . tutorialFiles = tutorialFiles
216
229
self . miscResourceURLs = miscResourceURLs
0 commit comments