Commit 373c9d2
authored
* Add missing fields in Equatable implementation
The `Equatable` implementation of `LinkDestinationSummary` was missing some of the new fields which were added recently.
This commit adds them.
* Encode absolute presentation URL if present
Support for absolute URLs in link summaries was added in 7db36ad.
It added support for absolute URLs when decoding a link summary, but not when encoding it:
https://github.com/swiftlang/swift-docc/blob/cfcd96f0e992af2287661f6a26e8398096f6bc1e/Sources/SwiftDocC/LinkTargets/LinkDestinationSummary.swift#L772-L773
https://github.com/swiftlang/swift-docc/blob/cfcd96f0e992af2287661f6a26e8398096f6bc1e/Sources/SwiftDocC/LinkTargets/LinkDestinationSummary.swift#L728
Both are needed when using an external link resolver, as the external link resolver needs to encode the entity to send to DocC.
Fixes rdar://164628218.
1 parent cfcd96f commit 373c9d2
File tree
2 files changed
+10
-3
lines changed- Sources/SwiftDocC/LinkTargets
- Tests/SwiftDocCTests/Infrastructure
2 files changed
+10
-3
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
725 | 726 | | |
726 | 727 | | |
727 | 728 | | |
728 | | - | |
| 729 | + | |
729 | 730 | | |
730 | 731 | | |
731 | 732 | | |
| |||
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
| 939 | + | |
938 | 940 | | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
942 | 944 | | |
| 945 | + | |
943 | 946 | | |
| 947 | + | |
944 | 948 | | |
945 | 949 | | |
946 | 950 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1420 | 1420 | | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | | - | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
1424 | 1427 | | |
1425 | 1428 | | |
1426 | 1429 | | |
| |||
0 commit comments