I\'ve locally built static Sphinx documentations (using make html).
make html
I wish now to integrate the Sphinx files into my webapp that runs with Flask. From the
You can copy the _build/html folder from your docs to a doc folder in your flask static directory, and serve them with the following rule:
_build/html
doc
static
@app.route('/doc//', defaults={'static': True}) def doc(dir='',filename='index.html'): path = join(dir,filename) return app.send_static_file(path)