Skip to content

Commit

Permalink
#8534: Enable the push to the tenstorrent.github.io repo
Browse files Browse the repository at this point in the history
 Update TTNN Get started to edit the location of installation.html and the tutorials
  • Loading branch information
dimitri-tenstorrent committed Sep 10, 2024
1 parent cc77d38 commit 1df355b
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/docs-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
git config --global user.email "${GITHUB_USER}@tenstorrent.com"
git config --global user.name "${GITHUB_USER}"
echo "About to clone"
git clone https://${GITHUB_USER}:${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/docs-test.git
git remote set-url origin https://${GITHUB_USER}::${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/docs-test.git
git clone https://${GITHUB_USER}:${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/tenstorrent.github.io.git
git remote set-url origin https://${GITHUB_USER}::${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/tenstorrent.github.io.git
- name: Package TT-Metalium Docs
run: |
echo "Preparing tt-metalium docs assets"
Expand All @@ -81,26 +81,35 @@ jobs:
cp -Lr docs/source/tt-metalium/* tt-metalium
rm tt-metalium/conf.py # Do not change conf.py
echo "Copying the docs into the repo"
cp -r tt-metalium/* docs-test/tt-metalium
cp -r tt-metalium/* tenstorrent.github.io/tt-metalium
- name: Package TT-NN Docs
run: |
mkdir ttnn-docs
cp -Lr docs/doxygen_build ttnn-docs
cp -Lr docs/source/ttnn/* ttnn-docs
rm ttnn-docs/conf.py # Do not change conf.py
echo "Copy tutorials and examples for TTNN from a different repo area."
cp -Lr ttnn/examples ttnn-docs/ttnn
echo "Make sure the links are updated in ttnn/usage.rst to the correct spot for the tutorials and examples."
sed -i "s/..\/..\/..\/..\/ttnn\/examples/examples/g" ttnn-docs/ttnn/usage.rst
echo "Change tutorial and installation links in TTNN Get Started."
sed -i "s/.\/..\/ttnn\/ttnn//g" ttnn-docs/ttnn/get_started.rst
sed -i "s/.\/ttnn\/installing/\/installing/g" ttnn-docs/ttnn/get_started.rst
echo "Copying the docs into the repo"
cp -r ttnn-docs/* docs-test/ttnn
cp -r ttnn-docs/* tenstorrent.github.io/ttnn
- name: Push new versions to the Docs repo for publishing
run: |
cd docs-test
cd tenstorrent.github.io
echo "Register new documentation versions"
python update_tags.py tt-metalium $DOCS_VERSION
python update_tags.py ttnn $DOCS_VERSION
git checkout -b test_v51_deploy
git add .
git commit -m "Update ttnn and tt-metalium docs from pipeline ${{ github.run_id }} with tag $DOCS_VERSION"
echo "Tag commits to identify different versions."
git tag -a ttnn_$DOCS_VERSION -m "ttnn and tt-metalium documentation version $DOCS_VERSION"
git tag -a tt-metalium_$DOCS_VERSION -m "ttnn and tt-metalium documentation version $DOCS_VERSION"
echo "Pushing the new docs"
# git push && git push --tags
git push -u origin test_v51_deploy && git push --tags

0 comments on commit 1df355b

Please sign in to comment.