Boyana 2 years ago
commit e4e79be649

1
.gitignore vendored

@ -0,0 +1 @@
.vscode

@ -1,16 +1,46 @@
<!DOCTYPE html>
<html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<script src="paged.js/paged.polyfill.js"></script>
<link href="paged.js/pagedjs.css" rel="stylesheet" type="text/css">
<link href="print.css" rel="stylesheet" type="text/css" media="print">
<meta charset="UTF-8">
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>booklet</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="style.css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<nav id="TOC" role="doc-toc">
<ul>
<li><a
href="#sometimes-the-world-as-it-is-and-the-world-as-it-could-be-are-devastatingly-close-to-each-other."
id="toc-sometimes-the-world-as-it-is-and-the-world-as-it-could-be-are-devastatingly-close-to-each-other.">Sometimes
the world as it is and the world as it could be are devastatingly close
to each other.</a></li>
<li><a href="#the-superstructure-text-adventure-game"
id="toc-the-superstructure-text-adventure-game">the superstructure text
adventure game</a></li>
</ul>
</nav>
<p>The history of Tarot Cards According to History</p>
<p>Some Gossip on gossip</p>
<p>yay</p>
<p>Some Gossip on gossip yay — title: Fortnite author: Stephen</p>
<hr />
<div id="fortnite" class="has-images">
<h1
id="sometimes-the-world-as-it-is-and-the-world-as-it-could-be-are-devastatingly-close-to-each-other.">Sometimes
the world as it is and the world as it could be are devastatingly close
@ -47,10 +77,10 @@ src="fortnite-3.jpg" alt="screenshot from Fortnite" /> <img
src="fortnite-2.jpg" alt="screenshot from Fortnite" /> <img
src="fortnite-1.jpg" alt="screenshot from Fortnite" /> <img
src="fortnite-0.jpg" alt="screenshot from Fortnite" /></p>
</div>
<p>i deleted it woops. i want to write a paragraph about my mindfulness
game here.</p>
<h1 id="the-superstructure-text-adventure-game">the superstructure text
adventure game</h1>
</body>
</html>

@ -0,0 +1,33 @@
The history of Tarot Cards According to History
Some Gossip on gossip
yay
---
title: Fortnite
author: Stephen
---
:::::{#fortnite .has-images}
# Sometimes the world as it is and the world as it could be are devastatingly close to each other.
Is there any point in imagining something that is so similar to the nightmare we already live in? The future is a dream but it's just that dream where you remember putting your keys somewhere but where, and you're wandering around looking for them for what feels like hours. Was it real or not isnt important you were still there. Why are we staying here, what's even here for us? If you don't get them, they'll get you first. Then you wake up and you still can't find the fucking keys. But sometimes it's sunny and you're standing there and there's something cinematic about the whole thing, is it worth it just to be there for that maybe. There's really no difference between a dream about falling and a dream about flying. You search the entire planet, all seven planets, drinking every last drop, and still no fucking keys. You're just watching the whole thing anyway so enjoy it I guess. If you get the rifle you can use the scope on it to see things in the distance, but then again maybe you don't need to see that far. The start is always the best part. Maybe I left them in the bathroom for some reason? Can I help them, even one of them? They are all so busy killing each other I don't think they can hear. The forests are beautiful here. One time I sat down with some of the bots and really got to know them. Until the players arrive they just sit there together, chatting. They're really nice actually. And then a player ran up beside us, saw that we weren't trying to hurt them, and left. Maybe they were helped, or changed somehow.
The only reason I'm still here is because you're still here. 😋
![screenshot from Fortnite](fortnite-10.jpg)
![screenshot from Fortnite](fortnite-9.jpg)
![screenshot from Fortnite](fortnite-8.jpg)
![screenshot from Fortnite](fortnite-7.jpg)
![screenshot from Fortnite](fortnite-6.jpg)
![screenshot from Fortnite](fortnite-3.jpg)
![screenshot from Fortnite](fortnite-2.jpg)
![screenshot from Fortnite](fortnite-1.jpg)
![screenshot from Fortnite](fortnite-0.jpg)
:::::
i deleted it woops. i want to write a paragraph about my mindfulness game here.
# the superstructure text adventure game

@ -1,6 +1,7 @@
from glob import glob
import os
import subprocess
import jinja2
# https://devdocs.io/python~3.9/library/glob#glob.glob
# files = glob("content/**", recursive=True)
@ -8,6 +9,7 @@ import subprocess
print("---------")
all_html = ""
all_md = ""
folders = glob("content/*")
print(folders)
@ -24,49 +26,44 @@ for folder in folders:
file = file.replace(" ", "\ ")
print(file)
html_file = file.replace(".md", ".html")
pandoc_cmd = "pandoc -s -c style.css -f markdown -t html " + file + " -o " + html_file
os.system(pandoc_cmd)
print("standalone html files saved!")
# html_file = file.replace(".md", ".html")
# pandoc_cmd = "pandoc -s -c style.css -f markdown -t html " + file + " -o " + html_file
# os.system(pandoc_cmd)
# print("standalone html files saved!")
pandoc2 = "pandoc -f markdown -t html " + file
html_data = subprocess.run(pandoc2, capture_output=True, text=True).stdout
# pandoc2 = "pandoc -f markdown -t html " + file
# html_data = subprocess.run(pandoc2, capture_output=True, text=True).stdout
#editing the html before creatings the main file
# filename = os.path.basename(file)
# print("filename", filename)
html_data = html_data.replace('<img src="','<img src="' + folder + '/')
# #editing the html before creatings the main file
# # filename = os.path.basename(file)
# # print("filename", filename)
# # html_data = html_data.replace('<img src="','<img src="' + folder + '/')
print("This is the html data: ", html_data)
# print("This is the html data: ", html_data)
# and then collect all that content into a variable called "all_html"
# add this content to all_html
all_html = all_html + html_data
# # and then collect all that content into a variable called "all_html"
# # add this content to all_html
# all_html = all_html + html_data
md_data = open(file).read()
all_md += "\n"+md_data
#create md and use pandoc to convert to html
output = open("booklet.md", "w")
output.write(all_md)
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 html files saved!")
html=[]
env = jinja2.Environment(loader=jinja2.FileSystemLoader("."))
template = env.get_template("booklet.template.html")
booklet_html = template.render(content=html)
print("----------")
print(all_html)
#take all the css files and write to main css
template = f"""<!DOCTYPE html>
<html>
<head>
<script src="paged.js/paged.polyfill.js"></script>
<link href="paged.js/pagedjs.css" rel="stylesheet" type="text/css">
<link href="print.css" rel="stylesheet" type="text/css" media="print">
<meta charset="UTF-8">
</head>
<body>
{ all_html }
</body>
</html>
"""
output = open("booklet.html", "w")
output.write(template)
# Now open this page in the browser, remember: paged.js needs to be accessed through a webserver.

@ -0,0 +1,13 @@
<DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="paged.js/paged.polyfill.js"></script>
<link href="paged.js/pagedjs.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body>
<div id="content">{{ content }}</div>
</body>
</html>

@ -30,6 +30,7 @@
<h1 class="title">Fortnite</h1>
<p class="author">Stephen</p>
</header>
<div id="fortnite" class="has-images">
<h1
id="sometimes-the-world-as-it-is-and-the-world-as-it-could-be-are-devastatingly-close-to-each-other.">Sometimes
the world as it is and the world as it could be are devastatingly close
@ -66,5 +67,6 @@ src="fortnite-3.jpg" alt="screenshot from Fortnite" /> <img
src="fortnite-2.jpg" alt="screenshot from Fortnite" /> <img
src="fortnite-1.jpg" alt="screenshot from Fortnite" /> <img
src="fortnite-0.jpg" alt="screenshot from Fortnite" /></p>
</div>
</body>
</html>

@ -4,6 +4,7 @@ author: Stephen
---
:::::{#fortnite .has-images}
# Sometimes the world as it is and the world as it could be are devastatingly close to each other.
Is there any point in imagining something that is so similar to the nightmare we already live in? The future is a dream but it's just that dream where you remember putting your keys somewhere but where, and you're wandering around looking for them for what feels like hours. Was it real or not isnt important you were still there. Why are we staying here, what's even here for us? If you don't get them, they'll get you first. Then you wake up and you still can't find the fucking keys. But sometimes it's sunny and you're standing there and there's something cinematic about the whole thing, is it worth it just to be there for that maybe. There's really no difference between a dream about falling and a dream about flying. You search the entire planet, all seven planets, drinking every last drop, and still no fucking keys. You're just watching the whole thing anyway so enjoy it I guess. If you get the rifle you can use the scope on it to see things in the distance, but then again maybe you don't need to see that far. The start is always the best part. Maybe I left them in the bathroom for some reason? Can I help them, even one of them? They are all so busy killing each other I don't think they can hear. The forests are beautiful here. One time I sat down with some of the bots and really got to know them. Until the players arrive they just sit there together, chatting. They're really nice actually. And then a player ran up beside us, saw that we weren't trying to hurt them, and left. Maybe they were helped, or changed somehow.
@ -19,3 +20,4 @@ The only reason I'm still here is because you're still here. 😋
![screenshot from Fortnite](fortnite-2.jpg)
![screenshot from Fortnite](fortnite-1.jpg)
![screenshot from Fortnite](fortnite-0.jpg)
:::::

@ -1 +1 @@
p{color: purple}
#fortnite p{color: purple}
Loading…
Cancel
Save