Skip to content

Commit

Permalink
Bump ansys-sphinx-theme from 1.0.10 to 1.1.7 in /requirements (#1787)
Browse files Browse the repository at this point in the history
* Bump ansys-sphinx-theme from 1.0.10 to 1.1.2 in /requirements

Bumps [ansys-sphinx-theme](https://github.com/ansys/ansys-sphinx-theme) from 1.0.10 to 1.1.2.
- [Release notes](https://github.com/ansys/ansys-sphinx-theme/releases)
- [Commits](ansys/ansys-sphinx-theme@v1.0.10...v1.1.2)

---
updated-dependencies:
- dependency-name: ansys-sphinx-theme
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Upgrade doc build Python version

* Move to static search and remove everything related to Meilisearch

Signed-off-by: paul.profizi <paul.profizi@ansys.com>

* dbg: point to test branch

* fix: use new patch version

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: paul.profizi <paul.profizi@ansys.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paul Profizi <100710998+PProfizi@users.noreply.github.com>
Co-authored-by: paul.profizi <paul.profizi@ansys.com>
Co-authored-by: Jorge Martinez <jorge.martinezgarrido@ansys.com>
Co-authored-by: Jorge Martínez <28702884+jorgepiloto@users.noreply.github.com>
  • Loading branch information
5 people authored Oct 23, 2024
1 parent 96f1703 commit c673ed3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 78 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_version:
required: false
type: string
default: "3.9"
default: "3.10"
ANSYS_VERSION:
required: false
type: string
Expand All @@ -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
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
20 changes: 4 additions & 16 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}

Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion requirements/requirements_docs.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c673ed3

Please sign in to comment.