Skip to content

Commit c673ed3

Browse files
dependabot[bot]PProfizijorgepiloto
authored
Bump ansys-sphinx-theme from 1.0.10 to 1.1.7 in /requirements (#1787)
* 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] <[email protected]> * Upgrade doc build Python version * Move to static search and remove everything related to Meilisearch Signed-off-by: paul.profizi <[email protected]> * dbg: point to test branch * fix: use new patch version --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: paul.profizi <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paul Profizi <[email protected]> Co-authored-by: paul.profizi <[email protected]> Co-authored-by: Jorge Martinez <[email protected]> Co-authored-by: Jorge Martínez <[email protected]>
1 parent 96f1703 commit c673ed3

File tree

5 files changed

+7
-78
lines changed

5 files changed

+7
-78
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ concurrency:
2828
env:
2929
DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com'
3030
MAIN_PYTHON_VERSION: '3.9'
31-
MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
32-
MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
3331

3432
jobs:
3533
debug:
@@ -170,23 +168,6 @@ jobs:
170168
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
171169
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
172170

173-
doc-index-dev:
174-
name: "Deploy dev index docs"
175-
runs-on: ubuntu-latest
176-
needs: upload-development-docs
177-
steps:
178-
- name: "Deploy the latest documentation index"
179-
uses: ansys/actions/doc-deploy-index@v8
180-
with:
181-
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
182-
index-name: pydpf-core-vdev
183-
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
184-
api-key: ${{ env.MEILISEARCH_API_KEY }}
185-
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
186-
decompress-artifact: true
187-
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
188-
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
189-
190171
examples:
191172
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
192173
uses: ./.github/workflows/examples.yml

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
python_version:
88
required: false
99
type: string
10-
default: "3.9"
10+
default: "3.10"
1111
ANSYS_VERSION:
1212
required: false
1313
type: string
@@ -29,7 +29,7 @@ on:
2929
description: "Python interpreter"
3030
required: true
3131
type: string
32-
default: "3.9"
32+
default: "3.10"
3333
ANSYS_VERSION:
3434
description: "ANSYS version"
3535
required: true

.github/workflows/releaser.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ on:
1717

1818
env:
1919
DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com'
20-
MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
21-
MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
2220

2321
jobs:
2422

@@ -95,44 +93,6 @@ jobs:
9593
token: ${{ secrets.GITHUB_TOKEN }}
9694
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
9795
decompress-artifact: true
98-
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
99-
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
100-
101-
doc-index-stable:
102-
name: "Deploy stable docs index"
103-
runs-on: ubuntu-latest
104-
needs: upload_docs_release
105-
steps:
106-
- name: "Install Git and clone project"
107-
uses: actions/checkout@v4
108-
with:
109-
ref: ${{ github.event.inputs.checkout_ref || '' }}
110-
111-
- name: "Install the package requirements"
112-
run: |
113-
python3 -m venv .venv
114-
.venv/bin/python -m pip install -e .
115-
116-
- name: "Get the version to PyMeilisearch"
117-
run: |
118-
VERSION=$(.venv/bin/python -c "from ansys.dpf.core import __version__; print('.'.join(__version__.split('.')[:2]))")
119-
VERSION_MEILI=$(.venv/bin/python -c "from ansys.dpf.core import __version__; print('-'.join(__version__.split('.')[:2]))")
120-
echo "Calculated VERSION: $VERSION"
121-
echo "Calculated VERSION_MEILI: $VERSION_MEILI"
122-
echo "VERSION=$VERSION" >> $GITHUB_ENV
123-
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
124-
125-
- name: "Deploy the latest documentation index"
126-
uses: ansys/actions/doc-deploy-index@v8
127-
with:
128-
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
129-
index-name: pydpf-core-v${{ env.VERSION_MEILI }}
130-
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
131-
api-key: ${{ env.MEILISEARCH_API_KEY }}
132-
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
133-
decompress-artifact: true
134-
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
135-
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
13696

13797
update_ansys_lab_examples:
13898
uses: ./.github/workflows/ansys_lab.yml

doc/source/conf.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,10 @@ def reset_servers(gallery_conf, fname, when):
210210
"json_url": f"https://{cname}/versions.json",
211211
"version_match": get_version_match(__version__),
212212
},
213-
"use_meilisearch": {
214-
"api_key": os.getenv("MEILISEARCH_PUBLIC_API_KEY", ""),
215-
"index_uids": {
216-
f"pydpf-core-v{get_version_match(__version__).replace('.', '-')}": "PyDPF-Core",
217-
},
213+
"static_search": {
214+
"threshold": 0.5,
215+
"min_chars_for_search": 2,
216+
"ignoreLocation": True,
218217
},
219218
}
220219

@@ -322,14 +321,3 @@ def reset_servers(gallery_conf, fname, when):
322321

323322
# A list of files that should not be packed into the epub file.
324323
epub_exclude_files = ["search.html"]
325-
326-
327-
def verify_meilisearch_is_active(app):
328-
MEILISEARCH_PUBLIC_API_KEY = os.getenv("MEILISEARCH_PUBLIC_API_KEY", None)
329-
if not MEILISEARCH_PUBLIC_API_KEY:
330-
sys.stderr.write("Could not find MEILISEARCH_PUBLIC_API_KEY")
331-
# sys.exit(1)
332-
333-
334-
def setup(app):
335-
app.connect("builder-inited", verify_meilisearch_is_active)

requirements/requirements_docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansys_sphinx_theme==1.0.10
1+
ansys-sphinx-theme==1.1.7
22
enum-tools[sphinx]==0.12.0
33
graphviz==0.20.1
44
imageio==2.36.0

0 commit comments

Comments
 (0)