You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emit language specific topic sections in the markdown representation of automatic curation (#856)
* Simplify creation of disambiguated paths
* Generate language specific curation markdown
rdar://124527905
* Stop using the topic graph to determine automatic curation
* Conform SourceLanguage to Comparable
// If this node doesn't have curation in more than one language, return that curation _without_ a language filter.
193
+
return topicsByLanguage.first?.value.map{.init(title: $0.title! /* Automatically-generated task groups always have a title. */, references: $0.references)}
194
+
}
195
+
196
+
// Checks if a node for the given reference is only available in the given source language.
// If at least one of the task groups contains a a language-refined symbol that's not in the other task groups, then emit all task groups individually
236
+
result.append(contentsOf: taskGroups)
237
+
return
238
+
}
239
+
}
240
+
241
+
// Otherwise, if the task groups all contain the same symbols or only contain single-language symbols, emit a combined task group without a language filter.
242
+
// When DocC renders this task group it will filter out the single-language symbols, producing correct and consistent results in all language variants without
243
+
// needing to repeat the task groups with individual language filters.
0 commit comments