diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..efb2347 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true, + "cwd": "${workspaceFolder}/${relativeFileDirname}" + } + ] +} \ No newline at end of file diff --git a/booklet/bookletc.py b/booklet/bookletc.py new file mode 100644 index 0000000..6c534a2 --- /dev/null +++ b/booklet/bookletc.py @@ -0,0 +1,36 @@ +from glob import glob +import os +files = glob("content/**", recursive=True) +print(files) +print("----------") + +for file in files: + #print(file) + if file.endswith(".md"): + print(file) + + html_file = file.replace(".md" , ".html") + pandoc_cmd = "pandoc -f markdown -t html" + file + "-o " + + os.system(pandoc_cmd) + print("html file saved!") + + +html_files = glob("content/**", recursive=True) +print("----------") + +all_html = "" + +for html_file in html_files: + if file.endswith(".html"): + print(html_file) +#open the html file and read teh content + html = open(html_file).read() + +# add this content to all_html + all_html += html + + print("------------") + print(all_html) + + output = open() \ No newline at end of file diff --git a/carddeck1/1.jpg b/carddeck1/1.jpg deleted file mode 100644 index 42e4253..0000000 Binary files a/carddeck1/1.jpg and /dev/null differ diff --git a/carddeck1/2.jpg b/carddeck1/2.jpg deleted file mode 100644 index 4ad1695..0000000 Binary files a/carddeck1/2.jpg and /dev/null differ diff --git a/carddeck1/3.jpg b/carddeck1/3.jpg deleted file mode 100644 index 24e6f92..0000000 Binary files a/carddeck1/3.jpg and /dev/null differ diff --git a/carddeck1/cards.html b/carddeck1/cards.html index bf3aa85..946a3c2 100644 --- a/carddeck1/cards.html +++ b/carddeck1/cards.html @@ -27,6 +27,12 @@

been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem lorem lorem lorem

+
+

gezi

+

+

these are the protests in 2013

+
+ diff --git a/carddeck1/cards.json b/carddeck1/cards.json index 574d499..5801bd7 100644 --- a/carddeck1/cards.json +++ b/carddeck1/cards.json @@ -13,5 +13,11 @@ "name" : "", "text" : "been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem lorem lorem lorem", "image": "" + }, + { + "name" : "gezi", + "text" : "these are the protests in 2013", + "image": "3.jpg" }] + } \ No newline at end of file diff --git a/carddeck1/deck1.py b/carddeck1/deck1.py index 2adaf06..44a92ab 100644 --- a/carddeck1/deck1.py +++ b/carddeck1/deck1.py @@ -1,7 +1,7 @@ import os , json folder = "./images/" #load the json information -with open ("cards.json", "r") as collage: +with open("cards.json", "r") as collage: cards = json.load(collage) #html