From 9309d77623af4dbb23800ebcb3186b93b976b280 Mon Sep 17 00:00:00 2001 From: Michael Benayoun Date: Thu, 19 Dec 2024 10:46:15 +0100 Subject: [PATCH] Build doc --- .github/workflows/build_pr_documentation.yml | 78 ++++++++++---------- docs/Dockerfile | 3 +- 2 files changed, 40 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build_pr_documentation.yml b/.github/workflows/build_pr_documentation.yml index 4de5ff08a56..6eb09aff304 100644 --- a/.github/workflows/build_pr_documentation.yml +++ b/.github/workflows/build_pr_documentation.yml @@ -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: | diff --git a/docs/Dockerfile b/docs/Dockerfile index be3cb05fdb5..d8bd060a46c 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -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