File tree 1 file changed +16
-7
lines changed
1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 26
26
doc_folder : docs/source/en
27
27
- repo_id : huggingface/transformers
28
28
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
29
33
concurrency :
30
34
group : ${{ github.workflow }}-${{ github.ref }}
31
35
cancel-in-progress : true
@@ -51,12 +55,12 @@ jobs:
51
55
- name : Setup environment
52
56
shell : bash
53
57
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
60
64
61
65
rm -rf doc-builder
62
66
rm -rf .git
69
73
- name : Build embeddings
70
74
shell : bash
71
75
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
73
82
74
83
75
84
cleanup-job :
You can’t perform that action at this time.
0 commit comments