Skip to content

Commit

Permalink
Set user_agent for Sphinx linkcheck and sciencedirect.com
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Jun 14, 2024
1 parent ce21f3c commit 72c2f5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
except TypeError:
branch_or_commit = str(git_head.commit)

user_agent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0" # Elsevier, sciencedirect.com: HTTP 403

rst_epilog = """
.. |binder_badge_examples| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/YannickJadoul/Parselmouth/{binder_ref}?urlpath=lab/tree/docs/examples
Expand Down

0 comments on commit 72c2f5a

Please sign in to comment.