-
Notifications
You must be signed in to change notification settings - Fork 143
Allow documentation to reference Swift stdlib symbols #419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To try and set expectations: I view linking to Swift standard library symbols as the same problem as the "Linking to symbols in SDKs and other pre-built dependencies." future diction that's mentioned in the "Combined documentation of multiple targets" forum post. What that means for this issue is that we view it as an important enhancement but we'll want to deliver the core support for combined documentation of multiple targets before making any serious progress on this. |
Yeah that's fine, the multiple-targets is the most important thing; I was talking with @franklinsch yesterday about features and this came up so I promised to file issues :) |
Hi @ktoso . A current workaround in my experience is to manually use hardcoded link in you documentation. - <doc://com.apple.documentation/documentation/Swift/AsyncSequence> // Apple
- <doc://com.apple.documentation/documentation/Swift/Never> // Apple
+ [AsyncSequence](https://developer.apple.com/documentation/Swift/AsyncSequence) // Other package
+ [Never](https://developer.apple.com/documentation/Swift/Never) // Other package I assume when Apple is releasing their SDK, they may use some trick such as ![]() But currently for our 3rd party developer, we can manually use such link(
![]() |
Sure, hardcoding is a workaround; this is a feature request to support this properly. |
I'm expecting we public the
The apple-doc-resolver will receive request from external bundle |
Feature Name
Reference Swift stdlib symbols
Description
This is related to
Allow combined documentation of multiple targets
#255 but specific about libraries shipped with Swift.This includes libraries such as
Swift
,_Concurrency
andDistributed
and there is increasingly more of those -- like regex builders etc.Those modules are "well known" and it should be possible, unless some dependency "shadows" it, to refer to e.g.
Concurrency/Task
and that link should direct to a well known place where those docs for stdlib are -- likely on apple.com etc.Motivation
As we develop more concurrency, and distributed actor libraries, a lot of them are refering to
Task
and other types declared in Swift, but our library docs cannot point developers to their documentation efficiently.Importance
Important for a cohesive developer experience using Apple (and non-apple) developed libraries.
Alternatives Considered
No response
The text was updated successfully, but these errors were encountered: