Publish and restore prepared glossary documents

This commit is contained in:
2026-11-27 16:31:20 +00:00
parent 0ce7568103
commit 5da7db2b27
6 changed files with 60 additions and 7 deletions

View File

@@ -223,6 +223,14 @@ var preparedInputSources = map[string]PreparedInputSourceDescriptor{
},
}
// GlossaryInputSources returns the four shared glossary descriptors in consumer order.
func GlossaryInputSources() []PreparedInputSourceDescriptor {
return []PreparedInputSourceDescriptor{
preparedInputSources[SourceInputGlossaryParty], preparedInputSources[SourceInputGlossaryCampaign],
preparedInputSources[SourceInputGlossarySetting], preparedInputSources[SourceInputGlossarySpells],
}
}
// DescribePreparedInputSource returns the canonical descriptor for a prepared
// stable input source.
func DescribePreparedInputSource(source string) (PreparedInputSourceDescriptor, bool) {