article-to-html script working with new file hierarchy (combined feature + weekly)

small-nav
Mimi Momo 4 years ago
parent 21c556465a
commit 768a5da121

@ -0,0 +1,122 @@
<!DOCTYPE html>
<html>
<!-- Header -->
<head>
<title>chimchooree's dev space - blessfrey</title>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<link rel="stylesheet" type="text/css" href="../../../res/styles/feature.css"/>
</head>
<!-- Body -->
<body>
<div class="grid">
<div class="whitespace">
blessfrey.me<br>
</div>
<div class="blessfrey-logo"></div>
<div class="nav-row"></div>
<!--Navigation Bar-->
<div class="nav-grid">
<div class="nav-bar"></div>
<div class="nav-index">
<a href="index.html">
<div class="button">home</div>
</a>
</div>
<div class="nav-game">
<a href="game.html">
<div class="button">game</div>
</a>
</div>
<div class="nav-diary">
<a href="diary.php">
<div class="button">diary</div>
</a>
</div>
<div class="nav-presskit">
<a href="presskit.html">
<div class="button">presskit</div>
</a>
</div>
</div>
<div class="body-row"> </div>
<div class="diary-entry">
<h1>weekly roundup</h1>
august 4-8, 2020
css, html, php, server, website<br>
<br>
<h2>tuesday, august 4</h2>
<ul>
<li>CentOS VPS obtained through OVH. Yay! We've always wanted a server.</li>
</ul>
<h2>wednesday, august 5</h2>
<ul>
<br>
<li>design the website</li>
<li>prototype of website running on the server</li>
<li>J set up automation with Jenkins + Ansible</li>
</ul>
<br>
<h2>thursday, august 6</h2>
<ul>
<li>create some placeholder graphics, articles + css</li>
<li>add a <a href="https://publish.twitter.com/#">Twitter timeline embed</a></li>
</ul>
<br>
<h2>friday, august 7</h2>
<ul>
<li>decide to use PHP for manage blessfrey's blog</li>
<li>set up a local Apache server for practice. <a href="200807.html">It was a little confusing!</a></li>
<li>wrote a vaguely functioning Hello, World! script in PHP
</ul>
<br>
<h2>saturday, august 8</h2>
<ul>
<li>forgot to bid on the Skull of Death in the <a href="http://www.verpets.com/auctions/">Auction House</a>...aw man...</li>
<li>added images to live site <a href="200808.html">despite conflicts with Linux's security</a></li>
</ul>
<br>
</div>
<!--right column-->
<div class="about-box">
<h1>about blessfrey</h1>
It's a game.<br>
</div>
<div class="twitter-box">
<h1>follow on twitter</h1>
<a href="https://twitter.com/lilchimchooree">@lilchimchooree</a><br>
</div>
<div class="latest">
<h1>latest</h1>
Some articles.<br>
</div>
<div class="disclosure">
<h1>disclosure</h1>
No sponsored posts or affiliate links appear in this blog. If they do, they will be <a href="https://www.ftc.gov/tips-advice/business-center/guidance/ftcs-endorsement-guides-what-people-are-asking">properly</a> <a href="https://www.ftc.gov/sites/default/files/attachments/press-releases/ftc-publishes-final-guides-governing-endorsements-testimonials/091005revisedendorsementguides.pdf">disclosed</a>.<br>
<br>
blessfrey.me does not collect personal information + has no cookies.<br>
</div>
<!--Footer-->
<div class="footer-row">
<footer>
<div class="footer">
&#169 chimchooree<br>
</div>
</footer>
</div>
</div>
</body>
</html>

@ -0,0 +1,103 @@
<!DOCTYPE html>
<html>
<!-- Header -->
<head>
<title>chimchooree's dev space - blessfrey</title>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<link rel="stylesheet" type="text/css" href="../../../res/styles/feature.css"/>
</head>
<!-- Body -->
<body>
<div class="grid">
<div class="whitespace">
blessfrey.me<br>
</div>
<div class="blessfrey-logo"></div>
<div class="nav-row"></div>
<!--Navigation Bar-->
<div class="nav-grid">
<div class="nav-bar"></div>
<div class="nav-index">
<a href="index.html">
<div class="button">home</div>
</a>
</div>
<div class="nav-game">
<a href="game.html">
<div class="button">game</div>
</a>
</div>
<div class="nav-diary">
<a href="diary.php">
<div class="button">diary</div>
</a>
</div>
<div class="nav-presskit">
<a href="presskit.html">
<div class="button">presskit</div>
</a>
</div>
</div>
<div class="body-row"> </div>
<div class="diary-entry">
<h1>what is blessfrey? </h1>
august 10, 2020<br>
<br>
<b>Blessfrey</b> is a 2D action RPG developed for PC by me, chimchooree. <br>
<br>
The game is designed to pit your skill + creativity against a series of combat + puzzle challenges while exploring the depths of the downtown dungeon. <br>
<br>
Class progression is freeform, and virtually no decision is permanent. At character creation, you will choose a permanent First Class, but you can unlock several new classes for multiclassing through gameplay. Through swapping out Second Classes, you can find a combination to express your playstyle. <br>
<br>
Each class has its own style of skills associated with it. Skills are individual powers gained through gameplay which give specific effects according to their rules. Your skillbar only has 8 skill slots and can only be edited in safe areas. The challenge comes from building winning strategies + synergies against the next area. <br>
<br>
Skills are gained through exploration of the game world. As you encounter enemies, meet people, and reach new areas, you will translate those experiences into new skills. <br>
<br>
Blessfrey has been lots of fun to work on. I hope you enjoy it once a demo and eventually a game drops. <br>
<br>
chimchooree<br>
</div>
<!--right column-->
<div class="about-box">
<h1>about blessfrey</h1>
It's a game.<br>
</div>
<div class="twitter-box">
<h1>follow on twitter</h1>
<a href="https://twitter.com/lilchimchooree">@lilchimchooree</a><br>
</div>
<div class="latest">
<h1>latest</h1>
Some articles.<br>
</div>
<div class="disclosure">
<h1>disclosure</h1>
No sponsored posts or affiliate links appear in this blog. If they do, they will be <a href="https://www.ftc.gov/tips-advice/business-center/guidance/ftcs-endorsement-guides-what-people-are-asking">properly</a> <a href="https://www.ftc.gov/sites/default/files/attachments/press-releases/ftc-publishes-final-guides-governing-endorsements-testimonials/091005revisedendorsementguides.pdf">disclosed</a>.<br>
<br>
blessfrey.me does not collect personal information + has no cookies.<br>
</div>
<!--Footer-->
<div class="footer-row">
<footer>
<div class="footer">
&#169 chimchooree<br>
</div>
</footer>
</div>
</div>
</body>
</html>

@ -0,0 +1,132 @@
<!DOCTYPE html>
<html>
<!-- Header -->
<head>
<title>chimchooree's dev space - blessfrey</title>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<link rel="stylesheet" type="text/css" href="../../../res/styles/feature.css"/>
</head>
<!-- Body -->
<body>
<div class="grid">
<div class="whitespace">
blessfrey.me<br>
</div>
<div class="blessfrey-logo"></div>
<div class="nav-row"></div>
<!--Navigation Bar-->
<div class="nav-grid">
<div class="nav-bar"></div>
<div class="nav-index">
<a href="index.html">
<div class="button">home</div>
</a>
</div>
<div class="nav-game">
<a href="game.html">
<div class="button">game</div>
</a>
</div>
<div class="nav-diary">
<a href="diary.php">
<div class="button">diary</div>
</a>
</div>
<div class="nav-presskit">
<a href="presskit.html">
<div class="button">presskit</div>
</a>
</div>
</div>
<div class="body-row"> </div>
<div class="diary-entry">
<h1>all weekly updates</h1>
august 13, 2020<br>
<br>
I've kept a more or less consistent private development diary for blessfrey since 2018. Here are the bulleted highlights, broken into weekly portions. I mostly keep it for myself to track progress. <br>
<br>
Meaningful discussions on design + process are expanded in separate feature articles. <br>
<br>
As a note, Blessfrey's working name is Dungeon Girls, but there's other projects floating around in there. Also, names of people are usually changed for privacy. <br>
<br>
Weekly diary pages are below.
<br>
<?php
//Convert Weekly Summary to Snippet
function snip_post($file) {
$post = fopen($file, "r") or die("Unable to load articles.");
fgets($post);
echo "<h1>".fgets($post)."</h1>";
echo fgets($post)."<br>";
echo " ... <a href={$file}>Keep Reading</a>";
echo "<br><br>";
}
// Iterate over Diary Pages + Snip
function convert_files($files) {
rsort($files);
foreach ($files as $file) {
snip_post($file);
}
}
// Collect files
function gather_files() {
$files = array();
foreach (glob("../weekly/*.*") as $file) {
$files[] = $file;
}
return $files;
}
// Flow - collect files + convert to snippets
// it should be reverse order..newest first
convert_files(gather_files());
?>
<br><br>
</div>
<!--right column-->
<div class="about-box">
<h1>about blessfrey</h1>
It's a game.<br>
</div>
<div class="twitter-box">
<h1>follow on twitter</h1>
<a href="https://twitter.com/lilchimchooree">@lilchimchooree</a><br>
</div>
<div class="latest">
<h1>latest</h1>
Some articles.<br>
</div>
<div class="disclosure">
<h1>disclosure</h1>
No sponsored posts or affiliate links appear in this blog. If they do, they will be <a href="https://www.ftc.gov/tips-advice/business-center/guidance/ftcs-endorsement-guides-what-people-are-asking">properly</a> <a href="https://www.ftc.gov/sites/default/files/attachments/press-releases/ftc-publishes-final-guides-governing-endorsements-testimonials/091005revisedendorsementguides.pdf">disclosed</a>.<br>
<br>
blessfrey.me does not collect personal information + has no cookies.<br>
</div>
<!--Footer-->
<div class="footer-row">
<footer>
<div class="footer">
&#169 chimchooree<br>
</div>
</footer>
</div>
</div>
</body>
</html>

@ -0,0 +1,124 @@
<!DOCTYPE html>
<html>
<!-- Header -->
<head>
<title>chimchooree's dev space - blessfrey</title>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<link rel="stylesheet" type="text/css" href="../../../res/styles/feature.css"/>
</head>
<!-- Body -->
<body>
<div class="grid">
<div class="whitespace">
blessfrey.me<br>
</div>
<div class="blessfrey-logo"></div>
<div class="nav-row"></div>
<!--Navigation Bar-->
<div class="nav-grid">
<div class="nav-bar"></div>
<div class="nav-index">
<a href="index.html">
<div class="button">home</div>
</a>
</div>
<div class="nav-game">
<a href="game.html">
<div class="button">game</div>
</a>
</div>
<div class="nav-diary">
<a href="diary.php">
<div class="button">diary</div>
</a>
</div>
<div class="nav-presskit">
<a href="presskit.html">
<div class="button">presskit</div>
</a>
</div>
</div>
<div class="body-row"> </div>
<div class="diary-entry">
<h1>weekly roundup</h1>
august 9-15, 2020
apache, automation, css, html, jenkins, nginx, php, server, website<br>
<br>
<h2>monday, august 9</h2>
<ul>
<li>second week of <a href="https://flightrising.com/main.php?p=dominance">dom</a>! yeah!</li>
<li>studied PHP with <a href="https://www.w3schools.com/php/php_intro.asp">W3Schools</a>
</ul>
<h2>wednesday, august 5</h2>
<ul>
<br>
<li>design the website</li>
<li>prototype of website running on the server</li>
<li><span class="J">set up automation with Jenkins + Ansible</span></li>
</ul>
<br>
<h2>thursday, august 6</h2>
<ul>
<li>create some placeholder graphics, articles + css</li>
<li>add a <a href="https://publish.twitter.com/#">Twitter timeline embed</a></li>
</ul>
<br>
<h2>friday, august 7</h2>
<ul>
<li>decide to use PHP for manage blessfrey's blog</li>
<li>set up a local Apache server with PHP for practice. <a href="200807.html">It was a little confusing!</a></li>
<li>wrote a vaguely functioning Hello, World! script in PHP
</ul>
<br>
<h2>saturday, august 8</h2>
<ul>
<li>forgot to bid on the Skull of Death in the auction house...aw man...</li>
<li>added images to live site <a href="200808.html">despite conflicts with Linux's security</a></li>
</ul>
<br>
</div>
<!--right column-->
<div class="about-box">
<h1>about blessfrey</h1>
It's a game.<br>
</div>
<div class="twitter-box">
<h1>follow on twitter</h1>
<a href="https://twitter.com/lilchimchooree">@lilchimchooree</a><br>
</div>
<div class="latest">
<h1>latest</h1>
Some articles.<br>
</div>
<div class="disclosure">
<h1>disclosure</h1>
No sponsored posts or affiliate links appear in this blog. If they do, they will be <a href="https://www.ftc.gov/tips-advice/business-center/guidance/ftcs-endorsement-guides-what-people-are-asking">properly</a> <a href="https://www.ftc.gov/sites/default/files/attachments/press-releases/ftc-publishes-final-guides-governing-endorsements-testimonials/091005revisedendorsementguides.pdf">disclosed</a>.<br>
<br>
blessfrey.me does not collect personal information + has no cookies.<br>
</div>
<!--Footer-->
<div class="footer-row">
<footer>
<div class="footer">
&#169 chimchooree<br>
</div>
</footer>
</div>
</div>
</body>
</html>

@ -0,0 +1,93 @@
<!DOCTYPE html>
<html>
<!-- Header -->
<head>
<title>chimchooree's dev space - blessfrey</title>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<link rel="stylesheet" type="text/css" href="../../../res/styles/feature.css"/>
</head>
<!-- Body -->
<body>
<div class="grid">
<div class="whitespace">
blessfrey.me<br>
</div>
<div class="blessfrey-logo"></div>
<div class="nav-row"></div>
<!--Navigation Bar-->
<div class="nav-grid">
<div class="nav-bar"></div>
<div class="nav-index">
<a href="index.html">
<div class="button">home</div>
</a>
</div>
<div class="nav-game">
<a href="game.html">
<div class="button">game</div>
</a>
</div>
<div class="nav-diary">
<a href="diary.php">
<div class="button">diary</div>
</a>
</div>
<div class="nav-presskit">
<a href="presskit.html">
<div class="button">presskit</div>
</a>
</div>
</div>
<div class="body-row"> </div>
<div class="diary-entry">
<h1>my favorite GDC talks </h1>
september 18, 2020<br>
<br>
I really should be keeping a list of these with descriptions, so why not keep them in an article?<br>
<br>
Work on it later.<br>
</div>
<!--right column-->
<div class="about-box">
<h1>about blessfrey</h1>
It's a game.<br>
</div>
<div class="twitter-box">
<h1>follow on twitter</h1>
<a href="https://twitter.com/lilchimchooree">@lilchimchooree</a><br>
</div>
<div class="latest">
<h1>latest</h1>
Some articles.<br>
</div>
<div class="disclosure">
<h1>disclosure</h1>
No sponsored posts or affiliate links appear in this blog. If they do, they will be <a href="https://www.ftc.gov/tips-advice/business-center/guidance/ftcs-endorsement-guides-what-people-are-asking">properly</a> <a href="https://www.ftc.gov/sites/default/files/attachments/press-releases/ftc-publishes-final-guides-governing-endorsements-testimonials/091005revisedendorsementguides.pdf">disclosed</a>.<br>
<br>
blessfrey.me does not collect personal information + has no cookies.<br>
</div>
<!--Footer-->
<div class="footer-row">
<footer>
<div class="footer">
&#169 chimchooree<br>
</div>
</footer>
</div>
</div>
</body>
</html>

@ -9,12 +9,11 @@ def file_to_string(f):
return text return text
def fill_text(f): def fill_text(f):
return file_to_string('../res/head.txt') + file_to_string(f) + file_to_string('../res/tail.txt') return file_to_string('res/head.txt') + file_to_string(f) + file_to_string('res/tail.txt')
def create_files(files, directory): def create_files(files, directory):
for f in files: for f in files:
print(f) print(f)
# t = open(f, "r")
n = open(directory + '/' + os.path.basename(f), "w") n = open(directory + '/' + os.path.basename(f), "w")
n.write(fill_text(f)) n.write(fill_text(f))
n.close() n.close()
@ -23,13 +22,13 @@ def collect_raw(d):
return glob.glob(d) return glob.glob(d)
def clear_articles(): def clear_articles():
files = glob.glob('../../entries/*') files = glob.glob('../*.html')
for f in files: for f in files:
os.remove(f) os.remove(f)
def main(): def main():
clear_articles() clear_articles()
create_files(collect_raw('../entries/*'), '../../entries') create_files(collect_raw('entries/*.html'), '..')
## Start Program ## ## Start Program ##
Loading…
Cancel
Save