You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
620 B
Python
22 lines
620 B
Python
|
|
# Copyright (C) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from django.shortcuts import render
|
|
import os
|
|
|
|
def UserGuideView(request):
|
|
module_dir = os.path.dirname(__file__)
|
|
doc_path = os.path.join(module_dir, 'user_guide.md')
|
|
|
|
return render(request, 'documentation/user_guide.html',
|
|
context={"user_guide": open(doc_path, "r").read()})
|
|
|
|
def XmlFormatView(request):
|
|
module_dir = os.path.dirname(__file__)
|
|
doc_path = os.path.join(module_dir, 'xml_format.md')
|
|
|
|
return render(request, 'documentation/xml_format.html',
|
|
context={"xml_format": open(doc_path, "r").read()})
|