From 66b87d0f9d92ea12bcc002867f52c1c4c7edd199 Mon Sep 17 00:00:00 2001 From: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:37:00 +0100 Subject: [PATCH] ci: use ``feat/seo-improvements`` branch of ``ansys/actions`` for doc-deploy (#2930) feat: add html base url an actions branch --- .github/workflows/ci.yml | 7 +++++-- doc/source/conf.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a9e77d8d9..72086a4309 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -863,7 +863,9 @@ jobs: needs: [release] steps: - name: Deploy the stable documentation - uses: ansys/actions/doc-deploy-stable@v5 + # TODO: testing SEO improvements. This branch avoids creating a + # sitemap.xml pages in opposite to v5. + uses: ansys/actions/doc-deploy-stable@feat/seo-improvements with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} @@ -906,7 +908,8 @@ jobs: needs: [docs-build] steps: - name: Deploy the latest documentation - uses: ansys/actions/doc-deploy-dev@v5 + # TODO: testing SEO improvements. This branch reuses the "index.html" from the stable version + uses: ansys/actions/doc-deploy-dev@feat/seo-improvements with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/doc/source/conf.py b/doc/source/conf.py index b68de48c9e..010b96c92e 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -142,6 +142,7 @@ # notfound.extension notfound_template = "404.rst" notfound_urls_prefix = "/../" +html_baseurl = f"https://{cname}/version/stable" # static path html_static_path = ["_static"]