File tree Expand file tree Collapse file tree 4 files changed +13
-34
lines changed Expand file tree Collapse file tree 4 files changed +13
-34
lines changed Original file line number Diff line number Diff line change 92
92
93
93
- name : Make Optimum documentation
94
94
run : |
95
- sudo docker system prune -a -f
96
95
cd optimum
97
- mkdir -p optimum-doc-build/optimum && cd optimum-doc-build/optimum
98
- wget https://huggingface.co/datasets/hf-doc-build/doc-build/raw/main/optimum/_versions.yml
99
- cd ../..
100
- make doc BUILD_DIR=optimum-doc-build VERSION=${{ env.VERSION }} COMMIT_SHA_OPTIMUM=${{ env.VERSION }}
96
+ uv pip install . accelerate
97
+ make doc BUILD_DIR=optimum-doc-build VERSION=${{ env.VERSION }}
101
98
cd ..
102
99
103
100
- name : Combine subpackage documentation
@@ -108,8 +105,11 @@ jobs:
108
105
109
106
- name : Push to repositories
110
107
run : |
111
- source venv-doc/bin/activate
112
108
cd optimum/optimum-doc-build
113
- sudo chmod -R ugo+rwx optimum
114
- doc-builder push optimum --doc_build_repo_id "hf-doc-build/doc-build" --token "${{ secrets.HF_DOC_BUILD_PUSH }}" --commit_msg "Updated with commit ${{ github.sha }} See: https://github.com/huggingface/optimum/commit/${{ github.sha }}" --n_retries 5 --upload_version_yml
115
- shell : bash
109
+ sudo chown -R $USER:$USER .
110
+ doc-builder push optimum \
111
+ --token "${{ secrets.HF_DOC_BUILD_PUSH }}" \
112
+ --doc_build_repo_id "hf-doc-build/doc-build" \
113
+ --commit_msg "Updated with commit ${{ github.sha }} See: https://github.com/huggingface/optimum/commit/${{ github.sha }}" \
114
+ --upload_version_yml \
115
+ --n_retries 5
Original file line number Diff line number Diff line change 89
89
90
90
- name : Make Optimum documentation
91
91
run : |
92
- sudo docker system prune -a -f
93
92
cd optimum
94
- make doc BUILD_DIR=optimum-doc-build VERSION=pr_$PR_NUMBER COMMIT_SHA_OPTIMUM=$COMMIT_SHA CLONE_URL=$PR_CLONE_URL
93
+ uv pip install . accelerate
94
+ make doc BUILD_DIR=optimum-doc-build VERSION=pr_$PR_NUMBER
95
95
cd ..
96
96
97
97
- name : Combine subpackage documentation
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- SHELL := /bin/bash
16
- CURRENT_DIR = $(shell pwd)
17
- DEFAULT_CLONE_URL := https://github.com/huggingface/optimum.git
18
- # If CLONE_URL is empty, revert to DEFAULT_CLONE_URL
19
- REAL_CLONE_URL = $(if $(CLONE_URL ) ,$(CLONE_URL ) ,$(DEFAULT_CLONE_URL ) )
20
-
21
15
.PHONY : style test
22
16
23
17
# Run code quality checks
@@ -46,14 +40,10 @@ build_dist:
46
40
pypi_upload : build_dist
47
41
python -m twine upload dist/*
48
42
49
- build_doc_docker_image :
50
- docker build -t doc_maker --build-arg commit_sha=$(COMMIT_SHA_OPTIMUM ) --build-arg clone_url=$(REAL_CLONE_URL ) ./docs
51
-
52
- doc : build_doc_docker_image
43
+ doc :
53
44
@test -n " $( BUILD_DIR) " || (echo " BUILD_DIR is empty." ; exit 1)
54
45
@test -n " $( VERSION) " || (echo " VERSION is empty." ; exit 1)
55
- docker run -v $(CURRENT_DIR ) :/doc_folder --workdir=/doc_folder doc_maker \
56
- doc-builder build optimum /optimum/docs/source/ \
46
+ doc-builder build optimum docs/source/ \
57
47
--build_dir $(BUILD_DIR ) \
58
48
--version $(VERSION ) \
59
49
--version_tag_suffix " " \
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments