From 71d326fd31cfd80c858f6d9996944bbd86809213 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Wed, 5 Apr 2023 01:31:20 +0800 Subject: [PATCH] Implementing pyansys/actions v0.4 (#1961) * Updating pyansys actions calls. * Changing conf.py * Updating links * fixing dev link * Applying Revathy suggestions. --- .github/workflows/ci.yml | 6 +++--- doc/source/conf.py | 3 +-- doc/source/links.rst | 14 +++++++------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73f52efd68..44da13de13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "PyAnsys documentation style checks" - uses: pyansys/actions/doc-style@v3.0.8 + uses: pyansys/actions/doc-style@v4 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -71,7 +71,7 @@ jobs: os: macos-latest steps: - name: "Build wheelhouse and perform smoke test" - uses: pyansys/actions/build-wheelhouse@v3.0.8 + uses: pyansys/actions/build-wheelhouse@v4 with: library-name: ${{ env.PACKAGE_NAME }} library-namespace: ${{ env.PACKAGE_NAMESPACE }} @@ -616,7 +616,7 @@ jobs: needs: [release] steps: - name: Deploy the stable documentation - uses: pyansys/actions/doc-deploy-stable@v3.0.8 + uses: pyansys/actions/doc-deploy-stable@v4 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/doc/source/conf.py b/doc/source/conf.py index 20b8b7c3bc..d2718210b3 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -214,10 +214,9 @@ }, ], "switcher": { - "json_url": f"https://{cname}/release/versions.json", + "json_url": f"https://{cname}/versions.json", "version_match": get_version_match(__version__), }, - "navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"], } html_context = { diff --git a/doc/source/links.rst b/doc/source/links.rst index d43956eae0..879b8dbc6b 100644 --- a/doc/source/links.rst +++ b/doc/source/links.rst @@ -83,26 +83,26 @@ .. _pymapdl_main: pymapdl_docs_ .. _pymapdl_pypi: https://pypi.org/project/ansys-mapdl-core/ .. _pymapdl_releases: https://github.com/pyansys/pymapdl/releases -.. _pymapdl_run_ubuntu: https://mapdl.docs.pyansys.com/dev/user_guide/troubleshoot.html#ubuntu +.. _pymapdl_run_ubuntu: https://mapdl.docs.pyansys.com/version/dev/user_guide/troubleshoot.html#ubuntu .. _pymapdl_issues: https://github.com/pyansys/pymapdl/issues .. _pymapdl_repo: https://github.com/pyansys/pymapdl -.. _pymapdl_docs: https://mapdl.docs.pyansys.com/dev/ -.. _pymapdl_dev_docs: https://mapdl.docs.pyansys.com/dev/ +.. _pymapdl_docs: https://mapdl.docs.pyansys.com/version/stable/ +.. _pymapdl_dev_docs: https://mapdl.docs.pyansys.com/version/dev/ .. _pymapdl_discussions: https://github.com/pyansys/PyMAPDL/discussions .. _pymapdl_cheatsheet: ./_assets/Cheat_Sheet_PyMAPDL.pdf .. _pymapdl_tests: https://github.com/pyansys/pymapdl/tree/main/tests .. _pymapdl_test_math: https://github.com/pyansys/pymapdl/blob/main/tests/test_math.py -.. _pymapdl_user_guide_math: https://mapdl.docs.pyansys.com/dev/user_guide/math.html +.. _pymapdl_user_guide_math: https://mapdl.docs.pyansys.com/version/dev/user_guide/math.html .. _licensing_guide_pdf: ./_assets/lic_guide.pdf .. _mapdl_fixture: https://github.com/pyansys/pymapdl/blob/fb5fb8b6201253f1bd56bdabee60a29abee8c7d8/tests/conftest.py#L254 .. _pymapdl_examples: https://github.com/pyansys/pymapdl/tree/main/examples .. _pymapdl_2d_plate_with_a_hole: https://github.com/pyansys/pymapdl/blob/main/examples/00-mapdl-examples/2d_plate_with_a_hole.py -.. _pymapdl_doc_2d_plate_with_a_hole: https://mapdl.docs.pyansys.com/dev/examples/gallery_examples/00-mapdl-examples/2d_plate_with_a_hole.html -.. _pymapdl_doc_krylov_example: https://dev.mapdl.docs.pyansys.com/dev/examples/extended_examples/Krylov/krylov_example.html +.. _pymapdl_doc_2d_plate_with_a_hole: https://mapdl.docs.pyansys.com/version/stable/examples/gallery_examples/00-mapdl-examples/2d_plate_with_a_hole.html +.. _pymapdl_doc_krylov_example: https://dev.mapdl.docs.pyansys.com/version/stable/examples/extended_examples/Krylov/krylov_example.html .. _pymapdl_doc_krylov_example_rst: https://raw.githubusercontent.com/pyansys/pymapdl/main/doc/source/examples/extended_examples/Krylov/krylov_example.rst .. _pymapdl_doc_source: https://github.com/pyansys/pymapdl/tree/main/doc/source .. _pymapdl_techdemo_28_rst: https://raw.githubusercontent.com/pyansys/pymapdl-examples/main/doc/source/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst -.. _pymapdl_techdemo_28: https://examples.mapdl.docs.pyansys.com/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.html +.. _pymapdl_techdemo_28: https://examples.mapdl.docs.pyansys.com/version/stable/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.html .. _pymapdl_docker_dir: https://github.com/pyansys/pymapdl/blob/main/docker .. _pymapdl_docker_compose_base: https://github.com/pyansys/pymapdl/blob/main/docker/docker-compose.yml .. _pymapdl_docker_compose_local: https://github.com/pyansys/pymapdl/blob/main/docker/docker-compose.local.yml