Skip to content

Commit f1ffeaf

Browse files
add documentation for DocCServer.convert
1 parent 4d0d277 commit f1ffeaf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Sources/SourceKitLSP/Documentation/DocCServer.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@ package struct DocCServer {
2121
server = DocumentationServer.createDefaultServer(qualityOfService: qualityOfService, peer: peerServer)
2222
}
2323

24+
/// Sends a request to SwiftDocC that will convert in-memory documentation.
25+
///
26+
/// - Parameters:
27+
/// - externalIDsToConvert: The external IDs of the symbols to convert.
28+
/// - documentPathsToConvert: The paths of the documentation nodes to convert.
29+
/// - includeRenderReferenceStore: Whether the conversion's render reference store should be included in
30+
/// the response.
31+
/// - documentationBundleLocation: The file location of the documentation bundle to convert, if any.
32+
/// - documentationBundleDisplayName: The name of the documentation bundle to convert.
33+
/// - documentationBundleIdentifier: The identifier of the documentation bundle to convert.
34+
/// - symbolGraphs: The symbol graph data included in the documentation bundle to convert.
35+
/// - overridingDocumentationComments: The mapping of external symbol identifiers to lines of a documentation
36+
/// comment that overrides the value in the symbol graph.
37+
/// - emitSymbolSourceFileURIs: Whether the conversion's rendered documentation should include source file
38+
/// location metadata.
39+
/// - markupFiles: The article and documentation extension file data included in the documentation bundle to convert.
40+
/// - tutorialFiles: The tutorial file data included in the documentation bundle to convert.
41+
/// - convertRequestIdentifier: A unique identifier for the request. Can be used to map additional data alongside
42+
/// a request for use later on.
43+
/// - Throws: A ``DocCServerError`` representing the type of error that occurred.
2444
func convert(
2545
externalIDsToConvert: [String]?,
2646
documentPathsToConvert: [String]?,

0 commit comments

Comments
 (0)