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
# Human readable title. TODO: Defaults to slug-to-title of the ID if not provided.
133
+
# Human readable title.
136
134
title: Optional[str] =field(default="")
137
-
# Used in the TOC. TODO: Defaults to slug-to-title of the ID if not provided.
135
+
# Used in the TOC.
138
136
title_abbrev: Optional[str] =field(default="")
139
137
synopsis: Optional[str] =field(default="")
140
138
# String label categories. Categories inferred by cross-service with multiple services, and can be whatever else it wants. Controls where in the TOC it appears.
"""Find a category for an example. This logic is taken from directories and zexii.
167
+
168
+
Original Zexii code at https://code.amazon.com/packages/GoAmzn-AWSDocsCodeExampleDocBuilder/blobs/1321fffadd8ff02e6acbae4a1f42b81006cdfa72/--/zexi/zonbook/category.go#L31-L50.
169
+
"""
170
+
ifself.categoryincategories:
171
+
returncategories[self.category]
172
+
iflen(self.services) ==1:
173
+
returncategories["Actions"]
174
+
returncategories["Scenarios"]
175
+
154
176
defmerge(self, other: Example, errors: MetadataErrors):
155
177
"""Combine `other` Example into self example.
156
178
@@ -184,7 +206,7 @@ def merge(self, other: Example, errors: MetadataErrors):
0 commit comments