AFAICT, the only way to build the documentation requires installing the swift-docc-plugin in your Package.swift file. Otherwise commands like swift package generate-documentation fail (they simply do not exist).
I don't want to install the plugin in all the package files, that seems like adding dependencies that the final consumers may not need.
So we need to be able to generate the docs from the top-level directory. That means all the packages must be targets at the top-level directory too.
We first need to add all the packages to the top-level Package.swift file.
AFAICT, the only way to build the documentation requires installing the swift-docc-plugin in your
Package.swiftfile. Otherwise commands likeswift package generate-documentationfail (they simply do not exist).I don't want to install the plugin in all the package files, that seems like adding dependencies that the final consumers may not need.
So we need to be able to generate the docs from the top-level directory. That means all the packages must be targets at the top-level directory too.
We first need to add all the packages to the top-level
Package.swiftfile.