We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6748fae commit ba69f36Copy full SHA for ba69f36
main.py
@@ -68,13 +68,21 @@
68
def serve_vue_app(filename):
69
"""
70
Serve (a build of) the new Vue application
71
- "dist" is the output of `npm run build` from the 'vue-app 'repository
+ "dist" is the output of `npm run build` from the 'vue-app' repository
72
73
return send_from_directory('dist', filename)
74
75
+@app.route('/docs/<path:filename')
76
+def serve_docs_app
77
+ """
78
+ Serve (a build of) the documentation
79
+ 'cb_docs' is the output of `npx vuepress build pages/`
80
+ from the 'docs' repository
81
82
+ return send_from_directory('cb_docs', filename)
83
+
84
@app.route('/')
85
def redirect_vue_app():
-
86
return redirect('/vue/index.html', code=302)
87
88
## Legacy API and web application
0 commit comments