Skip to content

Commit a45ac12

Browse files
authored
Merge branch 'master' into fix/remove-indexing-actions
2 parents 2086e8d + c673ed3 commit a45ac12

File tree

5 files changed

+9
-23
lines changed

5 files changed

+9
-23
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 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:
@@ -167,6 +165,8 @@ jobs:
167165
token: ${{ secrets.GITHUB_TOKEN }}
168166
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
169167
decompress-artifact: true
168+
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
169+
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
170170

171171
examples:
172172
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft

.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 & 2 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

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)