Instance Method
documentURL(for:)
Returns the document URL for the given article or tutorial reference.
func documentURL(for reference: ResolvedTopicReference) -> URL?
Parameters
referenceThe identifier for the topic whose file URL to locate.
Return Value
If the reference is a reference to a known Markdown document, this function returns the article’s URL, otherwise nil.