Boyana 1 year ago
commit e1402512d6

Binary file not shown.

Before

Width:  |  Height:  |  Size: 840 KiB

After

Width:  |  Height:  |  Size: 1018 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 878 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 832 KiB

@ -30,6 +30,7 @@
top: 15mm; top: 15mm;
left: 10mm; left: 10mm;
text-align: center; text-align: center;
margin: 0;
} }
.card > p.textnoimage { .card > p.textnoimage {
width: 60mm; width: 60mm;

@ -45,6 +45,11 @@
for (let i = 0; i < ups.length; i++) { for (let i = 0; i < ups.length; i++) {
new CircleType(ups[i]).radius(160); new CircleType(ups[i]).radius(160);
} }
var downs = document.querySelectorAll(".down");
for (let i = 0; i < downs.length; i++) {
new CircleType(downs[i]).dir(-1).radius(160);
}
</script> </script>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

@ -9,6 +9,7 @@
position: relative; position: relative;
border-radius: 100%; border-radius: 100%;
text-align: center; text-align: center;
break-inside: avoid;
} }
.card > img { .card > img {
width: calc(100% - 8mm - 8mm); width: calc(100% - 8mm - 8mm);
@ -22,8 +23,15 @@ p {
position: absolute; position: absolute;
margin: 2mm; margin: 2mm;
width: 100%; width: 100%;
font-family: "Trickster";
} }
p.down { p.down {
bottom:0; bottom:0;
} }
@font-face {
font-family: "Trickster";
src:
url("trickster-COLRv1.otf") format("opentype");
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -5,7 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<script src="paged.js/paged.polyfill.js"></script> <script src="paged.js/paged.polyfill.js"></script>
<link href="paged.js/pagedjs.css" rel="stylesheet" type="text/css"> <link href="paged.js/pagedjs.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="stylesheet.css"> <link rel="stylesheet" type="text/css" href="print_style.css">
</head> </head>
<body> <body>
<div id="contenteo">{{ content }}</div> <div id="contenteo">{{ content }}</div>

@ -12,7 +12,7 @@ all_html = ""
all_md = "" all_md = ""
html=[] html=[]
folders = glob("content/*") folders = glob("./*")
print(folders) print(folders)
for folder in folders: for folder in folders:
@ -27,14 +27,9 @@ for folder in folders:
file = file.replace(" ", "\ ") file = file.replace(" ", "\ ")
print(file) print(file)
# html_file = file.replace(".md", ".html") # pandoc2 = "pandoc -f markdown -t html " + file
# pandoc_cmd = "pandoc -s -c style.css -f markdown -t html " + file + " -o " + html_file # html_data = subprocess.run(pandoc2, capture_output=True, text=True).stdout
# os.system(pandoc_cmd) # print("html_data: ", html_data)
# print("standalone html files saved!")
pandoc2 = "pandoc -f markdown -t html " + file
html_data = subprocess.run(pandoc2, capture_output=True, text=True).stdout
print("html_data: ", html_data)
# #editing the html before creatings the main file # #editing the html before creatings the main file
# # filename = os.path.basename(file) # # filename = os.path.basename(file)
@ -46,24 +41,30 @@ for folder in folders:
# # and then collect all that content into a variable called "all_html" # # and then collect all that content into a variable called "all_html"
# # add this content to all_html # # add this content to all_html
# all_html = all_html + html_data # all_html = all_html + html_data
html.append(html_data) # html.append(html_data)
md_data = open(file).read() md_data = open(file).read()
all_md += "\n"+md_data all_md += "\n"+md_data
#create md and use pandoc to convert to html #create booklet.md
output = open("booklet.md", "w") output = open("00-booklet/booklet.md", "w")
output.write(all_md) output.write(all_md)
output.close() output.close()
# pandoc_md = "pandoc -s --toc -c style.css -f markdown -t html booklet.md -o booklet.html"
# os.system(pandoc_md)
print("booklet md files saved!") print("booklet md files saved!")
env = jinja2.Environment(loader=jinja2.FileSystemLoader(".")) # use pandoc to convert booklet.md to html
pandoc_command = "pandoc --toc -f markdown -t html 00-booklet/booklet.md"
#html_data = subprocess.run(pandoc_command, capture_output=True, text=True).stdout
html_data = subprocess.check_output(pandoc_command, shell=True, text=True,encoding="utf-8")
print("html has been generated!")
#print("html data!", html_data)
#html to template environment
env = jinja2.Environment(loader=jinja2.FileSystemLoader("00-booklet"))
template = env.get_template("booklet.template.html") template = env.get_template("booklet.template.html")
booklet_html = template.render(content=html) booklet_html = template.render(content=html_data)
print("this is the html: ", booklet_html) print("this is the html: ", booklet_html)
output = open("booklet.html", "w") output = open("00-booklet/booklet.html", "w")
output.write(booklet_html) output.write(booklet_html)
output.close() output.close()
print("booklet html files saved!") print("booklet html files saved!")

Loading…
Cancel
Save