Skip to content

Commit

Permalink
feat: add user_agent on Sphinx build (#546)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
RobPasMue and pre-commit-ci[bot] committed Apr 18, 2024
1 parent 4597343 commit f6e9bc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,11 @@
# Read link all targets from file
with open("links.rst") as f:
rst_epilog += f.read()

# Ignore certain URLs
linkcheck_ignore = [
r"https://www.ansys.com/.*",
]

# User agent
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 comments on commit f6e9bc8

Please sign in to comment.