From 21f66eb9fda747c6b491a90a569efc31b719d946 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 22 Mar 2024 13:38:59 +0100 Subject: [PATCH] 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"]