Skip to content

Commit da785ac

Browse files
docs: configure CNAME for VISOR docs (#37)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent b54a6ee commit da785ac

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

‎.github/workflows/check-pr-docs-build.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ on:
1111

1212

1313
env:
14-
# Uncomment the following line to enable custom CNAME for documentation
15-
# DOCUMENTATION_CNAME: 'visor.staging.local'
14+
DOCUMENTATION_CNAME: 'visor.docs.pyansys.com'
1615
MAIN_PYTHON_VERSION: '3.11'
1716

1817

‎.github/workflows/nightly-docs.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ on:
99
tags: [ 'v*' ]
1010

1111
env:
12-
# Uncomment the following line to enable custom CNAME for documentation
13-
# DOCUMENTATION_CNAME: 'visor.staging.local'
12+
DOCUMENTATION_CNAME: 'visor.docs.pyansys.com'
1413
MAIN_PYTHON_VERSION: '3.11'
1514
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1615

@@ -56,8 +55,7 @@ jobs:
5655
- name: Deploy development documentation
5756
uses: ansys/actions/doc-deploy-dev@v10
5857
with:
59-
# Uncomment the following line to enable custom CNAME for documentation
60-
# cname: ${{ env.DOCUMENTATION_CNAME }}
58+
cname: ${{ env.DOCUMENTATION_CNAME }}
6159
token: ${{ secrets.GITHUB_TOKEN }}
6260
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
6361
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
@@ -70,6 +68,7 @@ jobs:
7068
- name: Deploy stable documentation
7169
uses: ansys/actions/doc-deploy-stable@v10
7270
with:
71+
cname: ${{ env.DOCUMENTATION_CNAME }}
7372
token: ${{ secrets.GITHUB_TOKEN }}
7473
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
7574
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Configure CNAME for VISOR docs

‎doc/source/conf.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
from ansys.visor.viewer import __version__
1313

14-
# TODO: Set up namespace for VISOR docs and update here
15-
# visor_cname = "visor.docs.solutions.ansys.com"
16-
visor_cname = "vigilant-lamp-162kw9z.pages.github.io"
14+
visor_cname = "visor.docs.pyansys.com"
1715

1816
cname = os.getenv("DOCUMENTATION_CNAME", visor_cname)
1917
"""The canonical name of the webpage hosting the documentation."""

0 commit comments

Comments
 (0)