Open justinguo opened 1 year ago
Any updates?
It is possible to provide a --destination
to swift build
only compiling for a specific platform. I am wondering whether it would be possible to add this to swift package generate-documentation
as well, simply passing the destination to swift build
?
Currently we cannot specify the build platform for
swift-docc-plugin
. This means that thegenerate-documentation
command only generates documentation formacOS
. We hope that in the future there can be a-platform
flag to allow document generation for a specific platform.Checklist
main
branch of this package.Expected behavior
There can be a
-platform
flag to allow document generation for a specific platform. For example, we can generate documents foriOS
platform ortvOS
platform.Actual behavior
The
generate-documentation
command only generates documentation formacOS
.Steps to Reproduce
Run
swift package generate-documentation
, it is no possible to specify the platform information.Swift-DocC Plugin Version Information
Swift-DocC plugin version: https://github.com/apple/swift-docc-plugin/commit/5f2e247f5efef4ff8ee603443a9a29225ce9f0e2 Swift Compiler version: swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.2 clang-1400.0.29.51) Target: arm64-apple-macosx13.0