diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5444386104..c71edc2f1a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,19 +109,6 @@ jobs: event_name: ${{ github.event_name }} secrets: inherit - upload-development-docs: - runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/master' }} - needs: [docs] - steps: - - name: "Upload development documentation" - uses: ansys/actions/doc-deploy-dev@v4 - with: - cname: ${{ env.DOCUMENTATION_CNAME }} - token: ${{ secrets.GITHUB_TOKEN }} - doc-artifact-name: HTML-doc-ansys-dpf-core.zip - decompress-artifact: true - examples: if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft uses: ./.github/workflows/examples.yml diff --git a/.github/workflows/nightly-doc-build.yml b/.github/workflows/nightly-doc-build.yml new file mode 100644 index 00000000000..1d1e83f91de --- /dev/null +++ b/.github/workflows/nightly-doc-build.yml @@ -0,0 +1,37 @@ +name: Nightly Documentation Build + +on: + workflow_dispatch: + schedule: # UTC at 0400 + - cron: '0 4 * * *' + +env: + DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com' + + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + docs: + uses: ./.github/workflows/docs.yml + with: + ANSYS_VERSION: "241" + standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }} + custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }} + custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v241/dist' }} + event_name: ${{ github.event_name }} + secrets: inherit + + upload-development-docs: + runs-on: ubuntu-latest + needs: [docs] + steps: + - name: "Upload development documentation" + uses: ansys/actions/doc-deploy-dev@v4 + with: + cname: ${{ env.DOCUMENTATION_CNAME }} + token: ${{ secrets.GITHUB_TOKEN }} + doc-artifact-name: HTML-doc-ansys-dpf-core.zip + decompress-artifact: true \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index ee10796ec3a..c9d0a55fa1b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -92,7 +92,7 @@ # Intersphinx mapping intersphinx_mapping = { - "pyvista": ("https://docs.pyvista.org/", None), + "pyvista": ("https://docs.pyvista.org/version/0.36/", None), } autosummary_generate = True diff --git a/requirements/requirements_docs.txt b/requirements/requirements_docs.txt index c71d7152e8e..0ff023c6ce2 100644 --- a/requirements/requirements_docs.txt +++ b/requirements/requirements_docs.txt @@ -1,16 +1,16 @@ -ansys_sphinx_theme==0.9.5 -enum-tools[sphinx]==0.9.0.post1 +ansys-sphinx-theme==0.10.2 +enum-tools[sphinx]==0.10.0 graphviz==0.20.1 imageio==2.28.0 imageio-ffmpeg==0.4.7 -nbsphinx==0.9.1 +nbsphinx==0.9.2 pypandoc==1.11 pytest-sphinx==0.5.0 pyvista==0.36.1 -sphinx==5.3.0 +Sphinx==7.1.2 sphinx-autobuild==2021.3.14 -sphinx-copybutton==0.5.0 -sphinx-gallery==0.11.0 +sphinx-copybutton==0.5.2 +sphinx-gallery==0.13.0 sphinx-notfound-page==0.8.3 sphinx_design==0.5.0 sphinxcontrib-napoleon==0.7