Skip to content

Commit 2129a28

Browse files
committed
Merge branch 'main' into snipets-next-gen
2 parents 111eca8 + f4b1a32 commit 2129a28

File tree

93 files changed

+1262
-1013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1262
-1013
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Build Inference API documentation
1+
name: Build Inference Providers documentation
22

33
on:
44
push:
55
paths:
6-
- "docs/api-inference/**"
6+
- "docs/inference-providers/**"
77
branches:
88
- main
99

@@ -13,8 +13,8 @@ jobs:
1313
with:
1414
commit_sha: ${{ github.sha }}
1515
package: hub-docs
16-
package_name: api-inference
17-
path_to_docs: hub-docs/docs/api-inference/
16+
package_name: inference-providers
17+
path_to_docs: hub-docs/docs/inference-providers/
1818
additional_args: --not_python_module
1919
secrets:
2020
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}

.github/workflows/api_inference_build_pr_documentation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Build Inference API PR Documentation
1+
name: Build Inference Providers PR Documentation
22

33
on:
44
pull_request:
55
paths:
6-
- "docs/api-inference/**"
6+
- "docs/inference-providers/**"
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -16,6 +16,6 @@ jobs:
1616
commit_sha: ${{ github.event.pull_request.head.sha }}
1717
pr_number: ${{ github.event.number }}
1818
package: hub-docs
19-
package_name: api-inference
20-
path_to_docs: hub-docs/docs/api-inference/
19+
package_name: inference-providers
20+
path_to_docs: hub-docs/docs/inference-providers/
2121
additional_args: --not_python_module

.github/workflows/api_inference_generate_documentation.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update API Inference Documentation
1+
name: Update Inference Providers Documentation
22

33
on:
44
workflow_dispatch:
@@ -23,23 +23,23 @@ jobs:
2323
with:
2424
run_install: |
2525
- recursive: true
26-
cwd: ./scripts/api-inference
26+
cwd: ./scripts/inference-providers
2727
args: [--frozen-lockfile]
28-
package_json_file: ./scripts/api-inference/package.json
28+
package_json_file: ./scripts/inference-providers/package.json
2929
- name: Update huggingface/tasks package
30-
working-directory: ./scripts/api-inference
30+
working-directory: ./scripts/inference-providers
3131
run: |
3232
pnpm update @huggingface/tasks@latest
3333
# Generate
34-
- name: Generate API inference documentation
34+
- name: Generate Inference Providers documentation
3535
run: pnpm run generate
36-
working-directory: ./scripts/api-inference
36+
working-directory: ./scripts/inference-providers
3737

3838
# Check changes
3939
- name: Check changes
4040
run: |
4141
git diff --name-only > changed_files.txt
42-
if grep -v -E "^(scripts/api-inference/package.json|scripts/api-inference/pnpm-lock.yaml)$" changed_files.txt | grep -q '.'; then
42+
if grep -v -E "^(scripts/inference-providers/package.json|scripts/inference-providers/pnpm-lock.yaml)$" changed_files.txt | grep -q '.'; then
4343
echo "changes_detected=true" >> $GITHUB_ENV
4444
else
4545
echo "changes_detected=false" >> $GITHUB_ENV
@@ -57,19 +57,19 @@ jobs:
5757
uses: peter-evans/create-pull-request@v7
5858
with:
5959
token: ${{ secrets.TOKEN_INFERENCE_SYNC_BOT }}
60-
commit-message: Update API inference documentation (automated)
61-
branch: update-api-inference-docs-automated-pr
60+
commit-message: Update Inference Providers documentation (automated)
61+
branch: update-inference-providers-docs-automated-pr
6262
delete-branch: true
63-
title: "[Bot] Update API inference documentation"
63+
title: "[Bot] Update Inference Providers documentation"
6464
body: |
65-
This PR automatically upgrades the `@huggingface/tasks` package and regenerates the API inference documentation by running:
65+
This PR automatically upgrades the `@huggingface/tasks` package and regenerates the Inference Providers documentation by running:
6666
```sh
67-
cd scripts/api-inference
67+
cd scripts/inference-providers
6868
pnpm update @huggingface/tasks@latest
6969
pnpm run generate
7070
```
7171
72-
This PR was automatically created by the [Update API Inference Documentation workflow](https://github.com/huggingface/hub-docs/blob/main/.github/workflows/api_inference_generate_documentation.yml).
72+
This PR was automatically created by the [Update Inference Providers Documentation workflow](https://github.com/huggingface/hub-docs/blob/main/.github/workflows/api_inference_generate_documentation.yml).
7373
7474
Please review the changes before merging.
7575
reviewers: |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Upload Inference API PR Documentation
1+
name: Upload Inference Providers PR Documentation
22

33
on:
44
workflow_run:
5-
workflows: ["Build Inference API PR Documentation"]
5+
workflows: ["Build Inference Providers PR Documentation"]
66
types:
77
- completed
88

99
jobs:
1010
build:
1111
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
1212
with:
13-
package_name: api-inference
13+
package_name: inference-providers
1414
secrets:
1515
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
1616
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}

docs/api-inference/_redirects.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/api-inference/getting-started.md

Lines changed: 0 additions & 95 deletions
This file was deleted.

docs/api-inference/index.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)