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
python -m black --check aws_doc_sdk_examples_tools
66
66
```
67
67
68
68
## Validation Extensions
@@ -87,18 +87,19 @@ There are two stages, testing and deployment.
87
87
5.**Open a Draft PR to main branch**: Do not publish for review. Wait for checks/tests to pass on the PR.
88
88
89
89
### 2. Deployment
90
+
90
91
1.**Run `stamp.sh --release` from the `main` branch to automatically perform the following actions**:
91
-
- Update the `setup.py` version.
92
-
- Create a tag in the -tools repository at the same SHA you identified earlier.
93
-
- stamp.sh will create the next [stamp](https://blog.aspect.build/versioning-releases-from-a-monorepo) (which is valid [semver](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers)) number as appropriate for the changes in this release. e.g. `2024.40.2`.
94
-
- Push the new tag to `main`
92
+
- Update the `setup.py` version.
93
+
- Create a tag in the -tools repository at the same SHA you identified earlier.
94
+
- stamp.sh will create the next [stamp](https://blog.aspect.build/versioning-releases-from-a-monorepo) (which is valid [semver](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers)) number as appropriate for the changes in this release. e.g. `2024.40.2`.
95
+
- Push the new tag to `main`
95
96
1.**Update your testing PR branch**
96
-
- Remove SHA and add tag to [validate-doc-metadata.yml](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/.github/workflows/validate-doc-metadata.yml)
97
-
- Remove the SHA from [.doc_gen/validation.yaml](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/.doc_gen/validation.yaml)
98
-
- This is easily accomplished in the Github UI.
97
+
- Remove SHA and add tag to [validate-doc-metadata.yml](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/.github/workflows/validate-doc-metadata.yml)
98
+
- Remove the SHA from [.doc_gen/validation.yaml](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/.doc_gen/validation.yaml)
99
+
- This is easily accomplished in the Github UI.
99
100
1.**Create a release**: Use the automated ["Create release from tag" button](https://github.com/awsdocs/aws-doc-sdk-examples-tools/releases/new) to create a new release with the new tag.
# 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