swiftlang / swift-docc-plugin

Swift Package Manager command plugin for Swift-DocC
https://swiftpackageindex.com/swiftlang/swift-docc-plugin/documentation/swiftdoccplugin
Apache License 2.0
322 stars 53 forks source link

Copy snippet symbol graphs to the correct final destination #43

Closed bitjammer closed 1 year ago

bitjammer commented 1 year ago

The snippet symbol graph is currently being generated with the changes in e013865138b, however they are not being copied to the correct final destination.

The snippet-extract tool now takes input and output files instead of directories, however there is still one place in the plugin where we are still treating the output like a directory, so the snippet symbol graph basename path component looks like a directory, and needs additional basenames to put it in the right place with the correct file extension.

rdar://104045850

bitjammer commented 1 year ago

Thank you @ethan-kusters for the patch!

bitjammer commented 1 year ago

@swift-ci Please test

ethan-kusters commented 1 year ago

@swift-ci please test