mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Merge pull request #473 from alphagov/doc_page_fix
Add encoding to the documentation file.
This commit is contained in:
@@ -44,7 +44,7 @@ def terms():
|
|||||||
@main.route('/documentation')
|
@main.route('/documentation')
|
||||||
def documentation():
|
def documentation():
|
||||||
curr_dir = os.path.dirname(os.path.realpath(__file__))
|
curr_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
with open(os.path.join(curr_dir, '../../../docs/index.md')) as source:
|
with open(os.path.join(curr_dir, '../../../docs/index.md'), encoding='utf-8') as source:
|
||||||
return render_template(
|
return render_template(
|
||||||
'views/documentation.html',
|
'views/documentation.html',
|
||||||
body=Markup(markdown.markdown(
|
body=Markup(markdown.markdown(
|
||||||
|
|||||||
Reference in New Issue
Block a user