From 1d2a95e80b995a44a75aebdfd5b9aec19e1d79c6 Mon Sep 17 00:00:00 2001 From: Jingya HUANG <44135271+JingyaHuang@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:23:26 +0100 Subject: [PATCH] Fix doc build source code broken links (#282) * fix * fix for PR doc as well --------- Co-authored-by: JingyaHuang --- .github/workflows/doc-build.yml | 2 +- .github/workflows/doc-pr-build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 20b1d29ca..481ef2010 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -51,7 +51,7 @@ jobs: - name: Make documentation shell: bash run: | - doc-builder build optimum.neuron docs/source/ --build_dir neuron-doc-build/ --version ${{ env.VERSION }} --version_tag_suffix "" --html --clean + doc-builder build optimum.neuron docs/source/ --repo_name optimum-neuron --build_dir neuron-doc-build/ --version ${{ env.VERSION }} --version_tag_suffix "" --html --clean cd neuron-doc-build/ mv optimum.neuron optimum-neuron doc-builder push optimum-neuron --doc_build_repo_id "hf-doc-build/doc-build" --token "${{ secrets.HF_DOC_BUILD_PUSH }}" --commit_msg "Updated with commit $COMMIT_SHA See: https://github.com/huggingface/optimum-neuron/commit/$COMMIT_SHA" --n_retries 5 \ No newline at end of file diff --git a/.github/workflows/doc-pr-build.yml b/.github/workflows/doc-pr-build.yml index 216cc5e56..450d0f182 100644 --- a/.github/workflows/doc-pr-build.yml +++ b/.github/workflows/doc-pr-build.yml @@ -36,7 +36,7 @@ jobs: - name: Make documentation shell: bash run: | - doc-builder build optimum.neuron docs/source/ --build_dir neuron-doc-build/ --version pr_${{ env.PR_NUMBER }} --version_tag_suffix "" --html --clean + doc-builder build optimum.neuron docs/source/ --repo_name optimum-neuron --build_dir neuron-doc-build/ --version pr_${{ env.PR_NUMBER }} --version_tag_suffix "" --html --clean - name: Save commit_sha & pr_number run: |