Description
Feature Request: Allow combined documentation of multiple targets
Description:
Transferred from swiftlang/swift-docc-plugin#12 (comment).
Allow generating the documentation for multiple targets into one bundle, to make it easier to host the documentation for multi-target packages in a central place.
Motivation:
Currently, docc only supports generating the documentation for one target at at time. Generating documentations for multiple targets results in separate documentation bundles. This makes it hard to host the documentation for a package that contains multiple targets.
For example our color-components package has multiple targets, which makes hosting its documentation in a central place a bit complicated.
Importance:
It's not uncommon to have packages with multiple targets. Apple's own SwiftNIO has many targets and (almost) all of them have documentation. However, with docc it's currently hard to generate and host this documentation in a central place (like GitHub Pages).
With a bit of trickery, it's possible to merge the documentation pages together, but it's far from optimal.
Alternatives Considered:
Manually develop an 'index' page which links to sub-pages containing the documentation of each target separately. This would require quite a bit of work to have a great "look and feel" so that the index page looks similar to the documentation pages.