Skip to content

Commit b0f055c

Browse files
committed
index huggingface/hub-docs
1 parent 7cc64e3 commit b0f055c

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/build_embeddings.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
doc_folder: docs/source/en
2727
- repo_id: huggingface/transformers
2828
doc_folder: docs/source/en
29+
- repo_id: huggingface/hub-docs
30+
doc_folder: docs/hub
31+
package_name: hub
32+
is_not_python_module: true
2933
concurrency:
3034
group: ${{ github.workflow }}-${{ github.ref }}
3135
cancel-in-progress: true
@@ -51,12 +55,12 @@ jobs:
5155
- name: Setup environment
5256
shell: bash
5357
run: |
54-
current_path=$(pwd)
55-
56-
cd ${{ env.REPO_NAME }}
57-
pip install .[dev]
58-
59-
cd $current_path
58+
if [[ "${{ matrix.is_not_python_module }}" != "true" ]]; then
59+
current_path=$(pwd)
60+
cd ${{ env.REPO_NAME }}
61+
pip install .[dev]
62+
cd $current_path
63+
fi
6064
6165
rm -rf doc-builder
6266
rm -rf .git
@@ -69,7 +73,12 @@ jobs:
6973
- name: Build embeddings
7074
shell: bash
7175
run: |
72-
doc-builder embeddings ${{ env.REPO_NAME }} ${{ env.REPO_NAME }}/${{ matrix.doc_folder }} --hf_ie_name docs-embed-bge-base-en-v1-5 --hf_ie_namespace huggingface --hf_ie_token ${{ secrets.HF_IE_TOKEN }} --meilisearch_key ${{ secrets.MEILISEARCH_KEY }}
76+
echo Building docs for ${{ matrix.package_name || env.REPO_NAME }}
77+
FLAGS=""
78+
if [[ "${{ matrix.is_not_python_module }}" == "true" ]]; then
79+
FLAGS="--not_python_module"
80+
fi
81+
doc-builder embeddings ${{ matrix.package_name || env.REPO_NAME }} ${{ env.REPO_NAME }}/${{ matrix.doc_folder }} --hf_ie_name docs-embed-bge-base-en-v1-5 --hf_ie_namespace huggingface --hf_ie_token ${{ secrets.HF_IE_TOKEN }} --meilisearch_key ${{ secrets.MEILISEARCH_KEY }} $FLAGS
7382
7483
7584
cleanup-job:

0 commit comments

Comments
 (0)