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
Omit the "doc://" and identifier prefix from V2 link(_:) requests (#1320)
* Omit the "doc://" and identifier prefix from V2 `link(_:)` requests
rdar://162694487
* Remove repeated "link" word in code comment
Co-authored-by: Andrea Fernandez Buitrago <15234535+anferbui@users.noreply.github.com>
---------
Co-authored-by: Andrea Fernandez Buitrago <15234535+anferbui@users.noreply.github.com>
/// DocC omits the "doc:\/\/" and identifier prefix from the link string because it would be the same for every link request.
53
+
/// For example: if your resolver registers itself for the `"your.resolver.id"` identifier---by sending it in the ``ResponseV2/identifierAndCapabilities(_:_:)`` handshake message---
54
+
/// and DocC encounters a `doc://your.resolver.id/path/to/some-page#some-fragment` link in any documentation content, DocC sends the `"/path/to/some-page#some-fragment"` link to your resolver.
55
+
///
52
56
/// Your external resolver should respond with either:
53
57
/// - a ``ResponseV2/resolved(_:)`` message, with information about the requested link.
54
58
/// - a ``ResponseV2/failure(_:)`` message, with human-readable information about the problem that the external link resolver encountered while resolving the link.
// To replace only the path and fragment portion of the link, we create a range from 0 to the relative link string length, both offset by the bundle ID length
0 commit comments