diff --git a/flask_website/__init__.py b/flask_website/__init__.py index 4fdb5aef..c602742c 100644 --- a/flask_website/__init__.py +++ b/flask_website/__init__.py @@ -24,7 +24,13 @@ def remove_db_session(response): db_session.remove() return response -app.add_url_rule('/docs/', endpoint='documentation.index', build_only=True) +app.add_url_rule('/docs/', endpoint='docs.index', build_only=True) +app.add_url_rule('/docs//', endpoint='docs.show', + build_only=True) +app.add_url_rule('/docs/flask-docs.pdf', endpoint='docs.pdf', + build_only=True) +app.add_url_rule('/docs/flask-docs.zip', endpoint='docs.zip', + build_only=True) from flask_website.views.general import general from flask_website.views.mailinglist import mailinglist diff --git a/flask_website/templates/general/index.html b/flask_website/templates/general/index.html index 8c2eae3e..a517a052 100644 --- a/flask_website/templates/general/index.html +++ b/flask_website/templates/general/index.html @@ -2,7 +2,7 @@ {% block head %} {{ super() }} @@ -14,7 +14,8 @@ {% block body %}
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions. - And before you ask: It's BSD licensed! + And before you ask: It's BSD licensed!

Flask is Fun

from flask import Flask
@@ -33,20 +34,24 @@ def hello():
   

Interested?

What’s in the Box?

diff --git a/flask_website/templates/layout.html b/flask_website/templates/layout.html index 9342725b..b869e35b 100644 --- a/flask_website/templates/layout.html +++ b/flask_website/templates/layout.html @@ -12,7 +12,7 @@ {% endblock %}