You can simply handle it using your web server, just like you handle the /static directory in Flask. For example, if you used Apache as your web server for production, you can add
Alias /documentation /location/of/sphinx/html <Directory /location/of/sphinx/html> Order deny,allow Allow from all </Directory>
for your Apache site configuration, so you can simply directly link it to http://yoursite.com/documentation to access Sphinx files, completely avoiding Flask.
source share