diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e5b92ba5f6..4a58a09d237 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,6 @@ concurrency: env: DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com' MAIN_PYTHON_VERSION: '3.9' - MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} - MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }} jobs: debug: @@ -170,23 +168,6 @@ jobs: bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} - doc-index-dev: - name: "Deploy dev index docs" - runs-on: ubuntu-latest - needs: upload-development-docs - steps: - - name: "Deploy the latest documentation index" - uses: ansys/actions/doc-deploy-index@v8 - with: - cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev - index-name: pydpf-core-vdev - host-url: ${{ vars.MEILISEARCH_HOST_URL }} - api-key: ${{ env.MEILISEARCH_API_KEY }} - doc-artifact-name: HTML-doc-ansys-dpf-core.zip - decompress-artifact: true - bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} - bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} - 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/docs.yml b/.github/workflows/docs.yml index ef92e06628e..2ba37ecbe11 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,7 +7,7 @@ on: python_version: required: false type: string - default: "3.9" + default: "3.10" ANSYS_VERSION: required: false type: string @@ -29,7 +29,7 @@ on: description: "Python interpreter" required: true type: string - default: "3.9" + default: "3.10" ANSYS_VERSION: description: "ANSYS version" required: true diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index ab6dca00162..76d5629e1d7 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -17,8 +17,6 @@ on: env: DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com' - MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} - MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }} jobs: @@ -95,44 +93,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} doc-artifact-name: HTML-doc-ansys-dpf-core.zip decompress-artifact: true - bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} - bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} - - doc-index-stable: - name: "Deploy stable docs index" - runs-on: ubuntu-latest - needs: upload_docs_release - steps: - - name: "Install Git and clone project" - uses: actions/checkout@v4 - with: - ref: ${{ github.event.inputs.checkout_ref || '' }} - - - name: "Install the package requirements" - run: | - python3 -m venv .venv - .venv/bin/python -m pip install -e . - - - name: "Get the version to PyMeilisearch" - run: | - VERSION=$(.venv/bin/python -c "from ansys.dpf.core import __version__; print('.'.join(__version__.split('.')[:2]))") - VERSION_MEILI=$(.venv/bin/python -c "from ansys.dpf.core import __version__; print('-'.join(__version__.split('.')[:2]))") - echo "Calculated VERSION: $VERSION" - echo "Calculated VERSION_MEILI: $VERSION_MEILI" - echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV - - - name: "Deploy the latest documentation index" - uses: ansys/actions/doc-deploy-index@v8 - with: - cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }} - index-name: pydpf-core-v${{ env.VERSION_MEILI }} - host-url: ${{ vars.MEILISEARCH_HOST_URL }} - api-key: ${{ env.MEILISEARCH_API_KEY }} - doc-artifact-name: HTML-doc-ansys-dpf-core.zip - decompress-artifact: true - bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} - bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} update_ansys_lab_examples: uses: ./.github/workflows/ansys_lab.yml diff --git a/doc/source/conf.py b/doc/source/conf.py index 571e9f8bffa..96a11fe225e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -210,11 +210,10 @@ def reset_servers(gallery_conf, fname, when): "json_url": f"https://{cname}/versions.json", "version_match": get_version_match(__version__), }, - "use_meilisearch": { - "api_key": os.getenv("MEILISEARCH_PUBLIC_API_KEY", ""), - "index_uids": { - f"pydpf-core-v{get_version_match(__version__).replace('.', '-')}": "PyDPF-Core", - }, + "static_search": { + "threshold": 0.5, + "min_chars_for_search": 2, + "ignoreLocation": True, }, } @@ -322,14 +321,3 @@ def reset_servers(gallery_conf, fname, when): # A list of files that should not be packed into the epub file. epub_exclude_files = ["search.html"] - - -def verify_meilisearch_is_active(app): - MEILISEARCH_PUBLIC_API_KEY = os.getenv("MEILISEARCH_PUBLIC_API_KEY", None) - if not MEILISEARCH_PUBLIC_API_KEY: - sys.stderr.write("Could not find MEILISEARCH_PUBLIC_API_KEY") - # sys.exit(1) - - -def setup(app): - app.connect("builder-inited", verify_meilisearch_is_active) diff --git a/requirements/requirements_docs.txt b/requirements/requirements_docs.txt index 594ce0a0d68..a11abcb5d97 100644 --- a/requirements/requirements_docs.txt +++ b/requirements/requirements_docs.txt @@ -1,4 +1,4 @@ -ansys_sphinx_theme==1.0.10 +ansys-sphinx-theme==1.1.7 enum-tools[sphinx]==0.12.0 graphviz==0.20.1 imageio==2.36.0