Skip to content

Commit d2322d5

Browse files
authored
[CTM-142] Fix generate version docs to allow new images (#515)
1 parent bf5a7d5 commit d2322d5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

scripts/generate_package_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ParamProcessor():
102102

103103
def __init__(self, params):
104104
if not len(params) == 2:
105-
raise ValueError("Usage: python generate_package_docs.py [STRING: image_dir], given: " + params)
105+
raise ValueError(f"Usage: python generate_package_docs.py [STRING: image_dir], given: {params}")
106106

107107
self.image_dir = argv[1]
108108

scripts/generate_version_docs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ def generate_docs():
3535
for image_config in image_configs:
3636
# Here we check first if the remote documentation exists, then if the local version is the same as the remote.
3737
# If the remote documentation exists and the version matches the local, we re-use the old documentation
38-
39-
remote_doc = list(filter(lambda image_doc: image_doc["id"] == image_config["name"], remote_docs))[0]
4038
if image_config["name"] in remote_versions and image_config["version"] == remote_versions[image_config["name"]]:
39+
remote_doc = list(filter(lambda image_doc: image_doc["id"] == image_config["name"], remote_docs))[0]
4140
print("using remote doc: {}".format(remote_doc))
4241
doc = remote_doc
4342
else:

updateVersions.sc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def main(updatedImage: String, updatedImageReleaseNote: String, bumpMajorVersion
9999
case "terra-jupyter-aou" => List(
100100
"terra-jupyter-aou"
101101
)
102+
case "terra-base" => List(
103+
"terra-base"
104+
)
102105
case updatedImage =>
103106
throw new Exception(s"${updatedImage} is not supported yet. Please update the script to support the image")
104107
}

0 commit comments

Comments
 (0)