Skip to content

Commit f6e9bc8

Browse files
feat: add user_agent on Sphinx build (#546)
* feat: add user_agent on Sphinx build * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: pre-commit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4597343 commit f6e9bc8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/source/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,11 @@
9797
# Read link all targets from file
9898
with open("links.rst") as f:
9999
rst_epilog += f.read()
100+
101+
# Ignore certain URLs
102+
linkcheck_ignore = [
103+
r"https://www.ansys.com/.*",
104+
]
105+
106+
# User agent
107+
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

0 commit comments

Comments
 (0)