Remove documentation pages

These are out of date now and potentially misleading.

Adds a new error page for HTTP `410 GONE`. Looks like the 404 page, but
returns the appropriate error code to be a good web citizen.
This commit is contained in:
Chris Hill-Scott
2016-10-10 11:36:12 +01:00
parent e714f7adff
commit 1fccc524a1
5 changed files with 22 additions and 392 deletions

View File

@@ -1,6 +1,6 @@
import markdown
import os
from flask import (render_template, url_for, redirect, Markup, request)
from flask import (render_template, url_for, redirect, Markup, request, abort)
from app.main import main
from app import convert_to_boolean
from flask_login import login_required
@@ -95,12 +95,4 @@ def email_template():
@main.route('/documentation')
def documentation():
curr_dir = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(curr_dir, '../../../docs/index.md'), encoding='utf-8') as source:
return render_template(
'views/documentation.html',
body=Markup(markdown.markdown(
source.read(),
extensions=[GithubFlavoredMarkdownExtension()]
))
)
abort(410)