Skip to content

Commit

Permalink
Add AMD doc to PR doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
regisss committed Jan 4, 2024
1 parent 366b2e2 commit b66d07b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ jobs:
repository: 'huggingface/optimum-furiosa'
path: optimum-furiosa

- uses: actions/checkout@v2
with:
repository: 'huggingface/optimum-amd'
path: optimum-amd

- name: Setup environment
run: |
pip uninstall -y doc-builder
Expand Down Expand Up @@ -118,6 +123,14 @@ jobs:
mv furiosa-doc-build ../optimum
cd ..
- name: Make AMD documentation
run: |
sudo docker system prune -a -f
cd optimum-amd
make doc BUILD_DIR=amd-doc-build VERSION=${{ env.VERSION }}
sudo mv amd-doc-build ../optimum
cd ..
- name: Make Optimum documentation
run: |
sudo docker system prune -a -f
Expand Down
5 changes: 4 additions & 1 deletion docs/combine_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ def main():
# Extend table of contents sections with the subpackage name as the parent folder
rename_subpackage_toc(subpackage, subpackage_toc)
# Just keep the name of the partner in the TOC title
subpackage_toc[0]["title"] = subpackage_toc[0]["title"].split("Optimum ")[-1]
if subpackage == "amd":
subpackage_toc[0]["title"] = subpackage_toc[0]["title"].split("Optimum-")[-1]
else:
subpackage_toc[0]["title"] = subpackage_toc[0]["title"].split("Optimum ")[-1]
if subpackage != "graphcore":
# Update optimum table of contents
base_toc.insert(1, subpackage_toc[0])
Expand Down

0 comments on commit b66d07b

Please sign in to comment.