Skip to content

Commit cf1c8b2

Browse files
committed
Env variable for NGROK usage
1 parent 6532887 commit cf1c8b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/conf.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@
8787
# Building on a local Read the Docs instance
8888
hoverxref_api_host = 'http://community.dev.readthedocs.io'
8989

90-
# TODO: remove me when EmbedAPIv3 gets deployed in production
91-
hoverxref_api_host = 'https://readthedocs.ngrok.io'
90+
if os.environ.get('NGROK_READTHEDOCS') == 'True':
91+
# Building on a local Read the Docs instance using NGROK for HTTPS
92+
hoverxref_api_host = 'https://readthedocs.ngrok.io'
9293

9394
hoverxref_tooltip_maxwidth = 650
9495
hoverxref_auto_ref = True

0 commit comments

Comments
 (0)