Skip to content

Fix loading smithy-ts version in docs#2722

Merged
milesziemer merged 1 commit intomainfrom
fix-loading-ts-version
Jul 28, 2025
Merged

Fix loading smithy-ts version in docs#2722
milesziemer merged 1 commit intomainfrom
fix-loading-ts-version

Conversation

@milesziemer
Copy link
Contributor

The docs build fetches the latest smithy-typescript-codegen version to include it in tutorial pages (e.g. https://smithy.io/2.0/guides/using-code-generation/generating-a-client.html#add-the-codegen-plugin). It uses the maven central rest api:
https://central.sonatype.org/search/rest-api-guide/, but that api has frequent outages (see https://status.maven.org/), which causes docs builds to fail.

This commit changes the docs build to fetch the latest version by pinging repo1.maven.org directly, and parsing the maven metadata.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The docs build fetches the latest smithy-typescript-codegen version to
include it in tutorial pages (e.g. https://smithy.io/2.0/guides/using-code-generation/generating-a-client.html#add-the-codegen-plugin).
It uses the maven central rest api:
https://central.sonatype.org/search/rest-api-guide/, but that api has
frequent outages  (see https://status.maven.org/), which causes docs
builds to fail.

This commit changes the docs build to fetch the latest version by
pinging repo1.maven.org directly, and parsing the maven metadata.
@milesziemer milesziemer requested a review from a team as a code owner July 28, 2025 19:32
@milesziemer milesziemer requested a review from kstich July 28, 2025 19:32
@milesziemer milesziemer merged commit 90d2363 into main Jul 28, 2025
9 checks passed
@milesziemer milesziemer deleted the fix-loading-ts-version branch July 28, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants