-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Describe the bug
When using swift-docc-plugin
to generate documentation any target's documentation will overwrite previously generated documentation. For example if a package has "TargetA" and "TargetB" and the command swift package --allow-writing-to-directory "./docs" generate-documentation --disable-indexing --output-path "./docs" --transform-for-static-hosting --hosting-base-path "PackageName"
is run it will generate the documentation for "TargetA" and then "TargetB", but the documentation for "TargetB" will overwrite "TargetA".
To Reproduce
Steps to reproduce the behavior:
- Create a package with multiple targets
- Add
swift-docc-plugin
as a dependency - Run
swift package --allow-writing-to-directory "./docs" generate-documentation --disable-indexing --output-path "./docs" --transform-for-static-hosting --hosting-base-path "PackageName"
Expected behavior
A directory suitable for static hosting should be generated, which contains the documentation for "TargetA" and "TargetB".
I think the root index.html
should provide links to both of these targets, but I'm not sure if this is an expected feature or a new feature request.
Screenshots
N/A
Environment (please complete the following information):
- OS: macOS 12.3.1
- Xcode Version/Tag/Branch: 13.3.3
swift-docc-plugin
: 1.0.0
Additional context
N/A