Skip to content

Commit 8e68dca

Browse files
committed
Use proxied API endpoint
This is useful to avoid CORS or to use Read the Docs for Business.
1 parent 61329fc commit 8e68dca

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)