Commit 84461f60 authored by Claudia's avatar Claudia
Browse files

quickfix

parent 2ed72ed2
Pipeline #373 failed with stages
in 1 minute and 42 seconds
......@@ -5,5 +5,7 @@ You wanna change something on the website?
2. Look at the result in `output/`
3. Finally upload content of `output` to website.
Tipp: run `python build-jinja2-html.py -h`
Beware: the templates are no valid html documents!
......@@ -23,7 +23,7 @@ args = parser.parse_args() ## show values ##
if args.output is None:
args.output = "output"
print ("Input-Ordner: %s" % args.templates)
print ("Root: %s" % args.root)
print ("Base template: %s" % args.root)
print ("Output-Ordner: %s" % args.output )
print ("StET: %s" % args.stet )
#print ("Termin: %s" % args.zeit )
......@@ -48,10 +48,10 @@ def print_html_doc(outer_template, content_template):
def create_website(current_content_file):
nameparts = current_content_file.split("-")
a_file = open(args.output + nameparts[len(nameparts)-1],"w")
a_file.write("<!-- This file was generated: please read README.md! -->")
a_file.write("<!-- This file was generated: please check https://gitlab.bau-ha.us/Miau/fsr-bioinfo-website -->")
a_file.write(print_html_doc(args.root, current_content_file))
print ("Created %s" % a_file.name)
if __name__ == '__main__':
for current_content_file in glob.glob(args.templates + "*.html"):
print current_content_file
create_website(current_content_file)
<!-- This file was generated: please read README.md! --><!DOCTYPE html>
<!-- This file was generated: please check https://gitlab.bau-ha.us/Miau/fsr-bioinfo-website --><!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
......
<!-- This file was generated: please read README.md! --><!DOCTYPE html>
<!-- This file was generated: please check https://gitlab.bau-ha.us/Miau/fsr-bioinfo-website --><!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
......
<!-- This file was generated: please read README.md! --><!DOCTYPE html>
<!-- This file was generated: please check https://gitlab.bau-ha.us/Miau/fsr-bioinfo-website --><!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment