Skip to content

Commit fdb38fc

Browse files
RobPasMuepyansys-ci-botpre-commit-ci[bot]
authored
docs: add user_agent to Sphinx build (#1142)
Co-authored-by: pyansys-ci-bot <pyansys.github.bot@ansys.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f0059ef commit fdb38fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/changelog.d/1142.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs: add ``user_agent`` to Sphinx build

doc/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ def intersphinx_pyansys_geometry(switcher_version: str):
309309
r".*/examples/.*.ipynb",
310310
]
311311

312+
# User agent
313+
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.2420.81" # noqa: E501
314+
312315
# -- Declare the Jinja context -----------------------------------------------
313316
exclude_patterns = []
314317
BUILD_API = True if os.environ.get("BUILD_API", "true") == "true" else False

0 commit comments

Comments
 (0)