Initial commit of all files to the repository

master
flem 1 year ago
commit a5a848c440

@ -0,0 +1,2 @@
# for fast notes
![captiontext](img.jpg)

@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<title>Markdown Folders</title>
<style>
/* CSS styling goes here */
</style>
</head>
<body>
<div class="container">
<div class="column">
<div class="folder">
<h2>1_situation</h2>
<ul>
<li>
<h3>fastnotes.md</h3>
<div># for fast notes
![captiontext](img.jpg)</div>
</li>
<li>
<h3>transportable.md</h3>
<div></div>
</li>
</ul>
</div>
</div>
<div class="column">
<div class="folder">
<h2>2_binding</h2>
<ul>
</ul>
</div>
</div>
<div class="column">
<div class="folder">
<h2>3_paperformat</h2>
<ul>
</ul>
</div>
</div>
<div class="column">
<div class="folder">
<h2>4_add_ons</h2>
<ul>
</ul>
</div>
</div>
</div>
</body>
</html>

@ -0,0 +1,20 @@
import os
import markdown
# Get the directory path of the script
script_dir = os.path.dirname(os.path.abspath(__file__))
materials = ['1_situation', '2_binding', '3_paperformat', '4_add_ons']
for folder in materials:
md_folder = os.path.join(script_dir, folder)
md_files = os.listdir(md_folder)
print(md_files)
for md_file in md_files:
file_path = os.path.join(md_folder, md_file)
with open(file_path, 'r') as file:
md = file.read()
html_md = markdown.markdown(md)
print(html_md)
#to create html file i need to create a template
Loading…
Cancel
Save