Open anferbui opened 4 days ago
Support platform name * in @Available directive
*
@Available
We've added support for introduced and deprecated for the @Available directive in https://github.com/apple/swift-docc/pull/440 and https://github.com/apple/swift-docc/issues/441.
introduced
deprecated
We should also add support for * as a value for the platform name, as currently it's not supported: https://github.com/apple/swift-docc/blob/f019ab8e2e0370d8f95921d4b8f1f7309c4eedbc/Sources/SwiftDocC/Semantics/Metadata/Availability.swift#L66-L69
This would potentially be used like:
@Available(*, introduced: "1.0")
We should add support for * as a platform name to better reflect that a large number of packages work on Linux and Windows and anywhere else where Swift is supported.
More context here: https://github.com/apple/swift-docc/pull/851#issuecomment-2163550785
The @Available directive is missing some functionality until we implement this feature.
No response
Feature Name
Support platform name
*
in@Available
directiveDescription
We've added support for
introduced
anddeprecated
for the@Available
directive in https://github.com/apple/swift-docc/pull/440 and https://github.com/apple/swift-docc/issues/441.We should also add support for
*
as a value for the platform name, as currently it's not supported: https://github.com/apple/swift-docc/blob/f019ab8e2e0370d8f95921d4b8f1f7309c4eedbc/Sources/SwiftDocC/Semantics/Metadata/Availability.swift#L66-L69This would potentially be used like:
Motivation
We should add support for
*
as a platform name to better reflect that a large number of packages work on Linux and Windows and anywhere else where Swift is supported.More context here: https://github.com/apple/swift-docc/pull/851#issuecomment-2163550785
Importance
The
@Available
directive is missing some functionality until we implement this feature.Alternatives Considered
No response