Fix broken documentation links (#357)

* fix broken doc links

* use doc-builder main in Dockerfile
This commit is contained in:
fxmarty
2022-09-22 10:35:15 +02:00
committed by GitHub
parent 647fc27cab
commit 8db740c704
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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.
---
---