mirror of
https://github.com/huggingface/optimum.git
synced 2026-10-12 02:15:46 +00:00
Fix broken documentation links (#357)
* fix broken doc links * use doc-builder main in Dockerfile
This commit is contained in:
@@ -56,5 +56,6 @@ doc: build_doc_docker_image
|
||||
doc-builder build optimum /optimum/docs/source/ \
|
||||
--build_dir $(BUILD_DIR) \
|
||||
--version $(VERSION) \
|
||||
--version_tag_suffix "" \
|
||||
--html \
|
||||
--clean
|
||||
--clean
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ ARG clone_url
|
||||
|
||||
RUN apt -y update
|
||||
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
||||
RUN python3 -m pip install --no-cache-dir hf-doc-builder
|
||||
RUN python3 -m pip install --no-cache-dir git+https://github.com/huggingface/doc-builder.git
|
||||
|
||||
RUN git clone $clone_url && cd optimum && git checkout $commit_sha
|
||||
RUN python3 -m pip install --no-cache-dir ./optimum[onnxruntime,benchmark,quality]
|
||||
RUN python3 -m pip install --no-cache-dir ./optimum[onnxruntime,benchmark,quality]
|
||||
|
||||
+2
-1
@@ -372,6 +372,7 @@ doc: build_doc_docker_image
|
||||
doc-builder build optimum.habana /optimum-habana/docs/source/ \
|
||||
--build_dir $(BUILD_DIR) \
|
||||
--version $(VERSION) \
|
||||
--version_tag_suffix "" \
|
||||
--html \
|
||||
--clean
|
||||
```
|
||||
@@ -421,4 +422,4 @@ always build successfully. To ensure this, add a GitHub Action to your
|
||||
subpackage that tests the documentation builds with every pull request / push to
|
||||
`main`. Check out the `optimum-habana` repo for an example.
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user