Skip to content

Commit

Permalink
Build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbenayoun committed Dec 19, 2024
1 parent 2c748df commit 9309d77
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 41 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,45 +70,45 @@ jobs:
pip install black
cd ..
# - name: Make Habana documentation
# run: |
# sudo docker system prune -a -f
# cd optimum-habana
# make doc BUILD_DIR=habana-doc-build VERSION=pr_$PR_NUMBER
# sudo mv habana-doc-build ../optimum
# cd ..
# - name: Make Intel documentation
# run: |
# sudo docker system prune -a -f
# cd optimum-intel
# make doc BUILD_DIR=intel-doc-build VERSION=pr_$PR_NUMBER
# sudo mv intel-doc-build ../optimum
# cd ..
# # TODO: enable Furiosa doc build in PRs once archive.furiosa.ai is public
# - name: Make Furiosa documentation
# run: |
# echo "For PRs we don't build Furiosa doc"
# - name: Make AMD documentation
# run: |
# sudo docker system prune -a -f
# cd optimum-amd
# make doc BUILD_DIR=amd-doc-build VERSION=pr_$PR_NUMBER
# sudo mv amd-doc-build ../optimum
# cd ..
# - name: Make TPU documentation
# run: |
# sudo docker system prune -a -f
# source venv-doc/bin/activate
# cd optimum-tpu
# pip install -U pip
# pip install . -f https://storage.googleapis.com/libtpu-releases/index.html
# doc-builder build optimum.tpu docs/source/ --build_dir tpu-doc-build --version pr_$PR_NUMBER --version_tag_suffix "" --html --clean
# mv tpu-doc-build ../optimum
# cd ..
- name: Make Habana documentation
run: |
sudo docker system prune -a -f
cd optimum-habana
make doc BUILD_DIR=habana-doc-build VERSION=pr_$PR_NUMBER
sudo mv habana-doc-build ../optimum
cd ..
- name: Make Intel documentation
run: |
sudo docker system prune -a -f
cd optimum-intel
make doc BUILD_DIR=intel-doc-build VERSION=pr_$PR_NUMBER
sudo mv intel-doc-build ../optimum
cd ..
# TODO: enable Furiosa doc build in PRs once archive.furiosa.ai is public
- name: Make Furiosa documentation
run: |
echo "For PRs we don't build Furiosa doc"
- name: Make AMD documentation
run: |
sudo docker system prune -a -f
cd optimum-amd
make doc BUILD_DIR=amd-doc-build VERSION=pr_$PR_NUMBER
sudo mv amd-doc-build ../optimum
cd ..
- name: Make TPU documentation
run: |
sudo docker system prune -a -f
source venv-doc/bin/activate
cd optimum-tpu
pip install -U pip
pip install . -f https://storage.googleapis.com/libtpu-releases/index.html
doc-builder build optimum.tpu docs/source/ --build_dir tpu-doc-build --version pr_$PR_NUMBER --version_tag_suffix "" --html --clean
mv tpu-doc-build ../optimum
cd ..
- name: Make Optimum documentation
run: |
Expand Down
3 changes: 1 addition & 2 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM nikolaik/python-nodejs:python3.9-nodejs18
# FROM nikolaik/python-nodejs:python3.11-nodejs23
FROM nikolaik/python-nodejs:python3.11-nodejs23

ARG commit_sha
ARG clone_url
Expand Down

0 comments on commit 9309d77

Please sign in to comment.