Issue
I've locally built static Sphinx documentations (using make html
).
I wish now to integrate the Sphinx files into my webapp that runs with Flask. From the Flask running application, I simply mean to include an hyperlink towards the Sphinx documentation, that will serve as help for the application.
Websupport seems the way to follow, but it's not clear to me how I should bridge the Flask framework to the Sphinx files.
Thanks for any help,
Regards
Solution
You could just handle it with your web server, the same way you handle the /static
directory in Flask. For example if you used Apache as your production web server, you might add
Alias /documentation /location/of/sphinx/html
<Directory /location/of/sphinx/html>
Order deny,allow
Allow from all
</Directory>
to your Apache site configuration, so then you could just link directly to http://yoursite.com/documentation
to access the Sphinx files, avoiding Flask altogether.
Answered By - Doobeh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.