Skip to content

Commit 43925e8

Browse files
committed
.
1 parent ee7d35d commit 43925e8

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

docs/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
import datetime
22
import os
33
import sys
4+
import urllib.request
5+
6+
# Configure proxy if available
7+
proxy = os.getenv("HTTP_PROXY")
8+
if proxy:
9+
proxy_handler = urllib.request.ProxyHandler({
10+
'http': proxy,
11+
'https': proxy,
12+
})
13+
opener = urllib.request.build_opener(proxy_handler)
14+
urllib.request.install_opener(opener)
415

516

617
# If extensions (or modules to document with autodoc) are in another directory,

tox.ini

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ commands =
6161
doc8 docs/
6262

6363
[testenv:docs]
64-
passenv =
65-
CI
6664
setenv =
67-
CI: UV_EXTRA_ARGS = --native-tls
6865
HTTP_PROXY = socks5h://198.177.253.13:4145
69-
HTTPS_PROXY = socks5h://198.177.253.13:4145
70-
http_proxy = socks5h://198.177.253.13:4145
71-
https_proxy = socks5h://198.177.253.13:4145
7266
extras = docs
7367
commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html

0 commit comments

Comments
 (0)