Skip to content

Commit a714d17

Browse files
ci(inference-providers): bump doc-builder pin to InferenceSnippet prerender fix (#2531)
* ci(inference-providers): bump doc-builder pin to InferenceSnippet prerender fix The inference-providers doc build crashes when a provider/task section has no snippet in the kit's `@huggingface/inference` (e.g. `together` + `automatic-speech-recognition`, supported by the generator's 4.13.18 but not the kit's pinned 4.13.15): the InferenceSnippet component dereferences `clients.length` on undefined → SvelteKit 500 → build fails on main and every PR. Bump the pinned doc-builder ref for both build workflows to the fix (huggingface/doc-builder#791), which defaults `clients` to `[]` so the prerender no longer crashes on an unsupported combo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci: repoint doc-builder pin to merged main (huggingface/doc-builder#791) #791 merged; point both build workflows at the resulting doc-builder main commit (bcff59f) instead of the fix-branch head. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci: bump upload workflow doc-builder pin to bcff59f for consistency Keep all three inference-providers workflows on the same doc-builder main commit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4c5be43 commit a714d17

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/api_inference_build_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build:
12-
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@2430c1ec91d04667414e2fa31ecfc36c153ea391 # main
12+
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@bcff59fca682130d2e7271ca8589911b7ac0b8bf # main
1313
with:
1414
commit_sha: ${{ github.sha }}
1515
package: hub-docs

.github/workflows/api_inference_build_pr_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@2430c1ec91d04667414e2fa31ecfc36c153ea391 # main
14+
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@bcff59fca682130d2e7271ca8589911b7ac0b8bf # main
1515
with:
1616
commit_sha: ${{ github.event.pull_request.head.sha }}
1717
pr_number: ${{ github.event.number }}

.github/workflows/api_inference_upload_pr_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@2430c1ec91d04667414e2fa31ecfc36c153ea391 # main
11+
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@bcff59fca682130d2e7271ca8589911b7ac0b8bf # main
1212
with:
1313
package_name: inference-providers
1414
secrets:

0 commit comments

Comments
 (0)