Skip to content

Commit d36a2a1

Browse files
authored
Merge pull request readthedocs#80 from readthedocs/proxied-endpoint
Use proxied API endpoint
2 parents 419d6df + 8e68dca commit d36a2a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
if os.environ.get('READTHEDOCS') == 'True':
5757
# Building on Read the Docs
5858
hoverxref_api_host = 'https://readthedocs.org'
59+
60+
if os.environ.get('PROXIED_API_ENDPOINT') == 'True':
61+
# Use the proxied API endpoint
62+
hoverxref_api_host = '/_'
63+
5964
if os.environ.get('LOCAL_READTHEDOCS') == 'True':
6065
# Building on a local Read the Docs instance
6166
hoverxref_api_host = 'http://community.dev.readthedocs.io'

0 commit comments

Comments
 (0)