steve0greatness,
created on Saturday, 20 January 2024, 06:03:23 (1705730603),
received on Monday, 6 May 2024, 02:55:34 (1714964134)
Author identity: Steve0Greatness <75220768+Steve0Greatness@users.noreply.github.com>
cb728247311a4038e29a1b37dd06ff76289b6d1d
build.py
@@ -6,6 +6,7 @@ from os.path import isfile as IsFile, exists as PathExists
from distutils.dir_util import copy_tree as CopyDirectory
from datetime import datetime
from json import dump as DumpJSON
from yaml import safe_load as LoadYML
GITHUB_BUILD_DIR = "docs" # Separate because this site is built with an action that won't work if they aren't
LOCAL_BUILD_DIR = "build"
@@ -62,6 +63,63 @@ def GetBlogList():
PostList = GetBlogList()
def ListParseCategory(Obj):
html = "<h1 id=\"%s\">%s</h1>" % (Obj["id"], Obj["title"])
if "paragraph" in Obj:
html += "<p>%s</p>" % Obj["paragraph"]
listType = "ul"
if "list-type" in Obj and Obj["list-type"] == "ordered":
listType = "ol"
html += "<%s>" % listType
for item in Obj["list"]:
html += "<li>" + LIST_PARSER_DICT[item["type"]](item) + "</li>"
html += "</%s>" % listType
return html
def ListParseLink(Obj):
html = "<a href=\"%s\">" % Obj["href"]
text = Obj["text"]
if "text-type" in Obj and Obj["text-type"] == "text/markdown":
text = RenderMarkdown(text).replace("<p>", "").replace("</p>", "")
html += text + "</a>"
if "comment" in Obj:
html += "(%s)" % Obj["comment"]
return html
def ListParseText(Obj):
text = Obj["text"]
# if "text-type" in Obj and Obj["text-type"] == "text/markdown":
# print(RenderMarkdown(text))
# text = RenderMarkdown(text) # this doesn't work???
if "comment" in Obj:
text += "(%s)" % Obj["comment"]
return text
LIST_PARSER_DICT = {
"category": ListParseCategory,
"link": ListParseLink,
"text": ListParseText,
}
def GetLists():
ListSlugs = ListDirectory("lists")
Lists = []
for slug in ListSlugs:
List = {
"title": "",
"content": "",
"filename": slug
}
with open("lists/" + slug) as ListYML:
ListDict = LoadYML(ListYML.read())
List["title"] = ListDict["title"]
if "paragraph" in ListDict:
List["content"] += "<p>%s</p>" % ListDict["paragraph"]
for item in ListDict["list"]:
List["content"] += LIST_PARSER_DICT[item["type"]](item)
Lists.append(List)
return Lists
def RenderPosts():
for post in ListDirectory("blog-posts"):
path = "blog-posts/" + post
@@ -121,6 +179,14 @@ def CreateJSONFeed():
with open(BUILD_DIRECTORY + "/blog/feed.json", "w") as JSONFeedFile:
DumpJSON(CreatedJSON, JSONFeedFile)
def RenderLists():
Lists = GetLists()
CreateDirectory(BUILD_DIRECTORY + "/list/")
for List in Lists:
print("%s -> %s" % ("lists/" + List["filename"], BUILD_DIRECTORY + "/list/" + List["filename"].replace(".yml", ".html")))
with open(BUILD_DIRECTORY + "/list/" + List["filename"].replace(".yml", ".html"), "w") as file:
file.write(RenderTemplate("list.html", Content=List["content"], Title=List["title"]))
if __name__ == "__main__":
print("Wiping directory")
WipeFinalDir()
@@ -131,6 +197,8 @@ if __name__ == "__main__":
CreateJSONFeed()
print("Copying static directory")
CopyDirectory("static", BUILD_DIRECTORY)
print("Creating lists")
RenderLists()
print("Building pages")
for file, path in PAGES.items():
lists/link-tree.yml
@@ -0,0 +1,318 @@
title: Link-Tree
paragraph: This is a master-list of accounts that I have on many different platforms.
list:
- type: category
title: Microblogging
id: microblogging
list:
- type: link
href: https://mastodon.social/@S0G
text: Mastodon
- type: link
href: https://bsky.app/profile/steve0greatness.bsky.social
text: Bluesky
- type: link
href: https://www.tumblr.com/steve0greatness
text: Tumblr
comment: often inactive
- type: link
href: https://twitter.com/Steve0Greatness
text: Twitter(or X)
comment: often inactive
- type: link
href: https://wasteof.money/users/steve0greatness
text: wasteof.money
comment: often inactive
- type: category
title: Content/Cloud Hosts
id: content-hosting
list:
- type: link
href: https://youtube.com/@S0G
text: YouTube
- type: link
href: https://freesound.org/people/Steve0Greatness/
text: Freesound
comment: often inactive
- type: link
href: https://scratch.mit.edu/users/steve0greatness
text: Scratch
- type: link
href: https://snap.berkeley.edu/user?username=steve0greatness
text: Snap*!*
text-type: text/markdown
comment: often inactive
- type: link
href: https://glitter-graphics.com/users/steve0greatness
text: Glitter Graphics
comment: often inactive
- type: link
href: https://filegarden.com/users/655bf52f3ada86485759d5b2/garden/
text: File Garden
comment: often inactive
- type: link
href: https://glitch.com/@Steve0Greatness
text: Glitch
comment: often inactive
- type: link
href: https://www.deviantart.com/steve0greatness
text: DeviantArt
comment: often inactive
- type: link
href: https://greasyfork.org/en/users/1185694-steve0greatness
text: Greasy Fork
comment: often inactive
- type: link
href: https://userstyles.world/user/Steve0Greatness
text: UserStyles.world
comment: often inactive
- type: link
href: https://steve0greatness.imgbb.com
text: ImgBB
comment: often inactive
- type: link
href: https://modshare.futuresight.org/users/Steve0Greatness
text: Mod Share
comment: often inactive
- type: link
href: https://pastebin.com/u/S0G
text: PasteBin
comment: often inactive
- type: link
href: https://codepen.io/Steve0Greatness
text: CodePen
comment: often inactive
- type: link
href: https://www.pixilart.com/s0g
text: Pixilart
comment: often inactive
- type: link
href: https://pixelfed.social/i/web/profile/609142668647996596
text: Pixelfed
comment: often inactive
- type: link
href: https://www.twitch.tv/steve0greatness
text: Twitch
comment: often inactive
- type: link
href: https://steve0greatness.newgrounds.com/
text: Newgrounds
comment: often inactive
- type: category
title: Forges
id: git-forges
list:
- type: link
href: https://github.com/steve0greatness
text: GitHub
- type: link
href: https://gitlab.com/steve0greatness
text: GitLab
- type: link
href: https://codeberg.org/steve0greatness
text: Codeberg
comment: often inactive
- type: link
href: https://gitea.org/steve0greatness
text: Gitea
comment: often inactive
- type: category
title: Game Services
id: gaming
list:
- type: link
href: https://steamcommunity.com/id/Steve0Greatness
text: Steam
- type: link
href: https://steve0greatness.itch.io/
text: Itch.io
comment: often inactive
- type: link
href: https://www.unrealsoftware.de/profile.php?userid=201177
text: Unreal Software
comment: often inactive
- type: link
href: https://content.minetest.net/users/Steve0Greatness/
text: Minetest ContentDB
comment: often inactive
- type: link
href: https://www.moddb.com/members/steve0greatness
text: ModDB
- type: link
href: https://www.indiedb.com/members/steve0greatness
text: IndieDB
comment: often inactive
- type: link
href: https://www.gog.com/u/Steve0Greatness
text: GOG
comment: often inactive
- type: link
href: https://www.chess.com/member/steve0greatness
text: Chess.com
comment: often inactive
- type: link
href: https://www.steamgriddb.com/profile/76561199326051000
text: SteamGridDB
comment: often inactive
- type: link
href: https://www.kongregate.com/accounts/steve0greatness
text: Kongregate
comment: often inactive
- type: link
href: https://store.epicgames.com/en-US/u/8a4680d7cb1a409c887ff2fea77ccdb4
text: Epic Games Store
comment: often inactive
- type: link
href: https://gamejolt.com/@Steve0Greatness
text: Gamejolt
comment: often inactive
- type: link
href: https://www.roblox.com/users/3241388107/profile
text: Roblox
comment: often inactive
- type: link
href: https://gamebanana.com/members/2809649
text: GameBanana
comment: often inactive
- type: category
title: Wikis
id: wikis
list:
- type: link
href: https://developer.valvesoftware.com/wiki/User:Steve0Greatness
text: Valve Developer Community
comment: often inactive
- type: link
href: https://en.wikipedia.org/wiki/User:Steve0Greatness
text: English Wikipedia
comment: often inactive
- type: link
href: https://wiki.teamfortress.com/wiki/User:Steve0Greatness
text: Team Fortress Wiki
comment: often inactive
- type: link
href: http://www.wikidot.com/user:info/steve0greatness
text: Wikidot
comment: often inactive
- type: link
href: https://satisfactory.wiki.gg/wiki/User:Steve0Greatness
text: Satisfactory Wiki
comment: often inactive
- type: link
href: https://en.scratch-wiki.info/wiki/User:Steve0Greatness
text: English Scratch Wiki
comment: often inactive
- type: link
href: https://minecraft.wiki/w/User:Steve-Zero-Greatness
text: Minecraft Wiki
comment: often inactive
- type: link
href: https://community.fandom.com/wiki/User:Steve0Greatness
text: Fandom
comment: often inactive
- type: link
href: https://www.mediawiki.org/wiki/User:Steve0Greatness
text: Mediawiki
comment: often inactive
- type: link
href: https://libregamewiki.org/User:Steve0Greatness
text: libreGameWiki
comment: often inactive
- type: link
href: https://wiki.meower.org/wiki/User:Steve-Zero-Greatness
text: Meower wiki
comment: often inactive
- type: category
title: Forums
id: forums
list:
- type: link
href: https://www.doomworld.com/profile/35107-steve0greatness
text: Doomworld
- type: link
href: https://forum.kglw.net/u/steve0greatness/activity
text: KGLW.net Forums
- type: link
href: https://www.thecodingforums.com/members/steve0greatness.87042
text: The Coding Forums
comment: often inactive
- type: category
title: Instant Messaging
id: ims
list:
- type: link
href: https://discord.com/users/952370060914225264
text: Discord
- type: link
href: https://matrix.to/#/@steve0greatness:matrix.org
text: Matrix
- type: link
href: https://app.meower.org/users/Steve0Greatness
text: Meower
comment: often inactive
- type: text
text: "<a href=\"https://xmpp.org/\">XMPP</a>, formerly Jabber, address: <code>steve0greatness@sure.im</code>"
comment: often inactive
- type: category
title: Link Aggregators
id: link-aggregators
list:
- type: link
href: https://lemmy.world/u/Steve0Greatness
text: Lemmy
- type: link
href: https://old.reddit.com/user/Steve0Greatness
text: Reddit
comment: often inactive
- type: category
title: Question Forums
id: question-sites
list:
- type: link
href: https://stackoverflow.com/users/16890338/steve0greatness
text: StackOverflow
comment: often inactive
- type: link
href: https://stackexchange.com/users/22726739/steve0greatness
text: Stack Exchange
comment: often inactive
- type: category
title: Miscellaneous
id: misc
list:
- type: link
href: https://kglw.net/~Steve0Greatness
text: KGLW.net
comment: often inactive
- type: link
href: https://replit.com/@StevesGreatness
text: Replit
comment: often inactive
- type: link
href: https://humanbenchmark.com/users/6510a80625961d0008f4d6d0
text: HumanBenchmark
comment: often inactive
- type: link
href: https://www.change.org/u/Steve0Greatness
text: Change.org
comment: often inactive
- type: link
href: https://internetometer.com/give/47937
text: Internetometer
comment: often inactive
- type: link
href: https://archive.org/details/@steve_apos_s_greatness
text: Internet Archive
comment: often inactive
- type: link
href: https://openlibrary.org/people/steve_apos_s_greatness
text: Open Library
comment: often inactive
- type: link
href: https://www.speedrun.com/users/Steve0Greatness
text: Speedrun.com
comment: often inactive
- type: link
href: https://www.tierlists.com/user/steve0greatness
text: TierLists.com
comment: often inactive
views/link-tree.html
@@ -1,111 +0,0 @@
{% extends "_layout.html" %}
{% block Head %}
{{super()}}
{% endblock %}
{% block title %}Link Tree{% endblock %}
{% block content %}
<h1>Link Tree</h1>
<p>This is a master-list of accounts that I have on many different platforms.</p>
<h2 id="microblogging">Microbloggging</h2>
<ul>
<li><a href="https://mastodon.social/@S0G">Mastodon</a></li>
<li><a href="https://bsky.app/profile/steve0greatness.bsky.social">Bluesky</a></li>
<li><a href="https://www.tumblr.com/steve0greatness">Tumblr</a>(often inactive)</li>
<li><a href="https://twitter.com/Steve0Greatness">Twitter</a>(often inactive)</li>
<li><a href="https://wasteof.money/users/steve0greatness">wasteof.money</a>(often inactive)</li>
</ul>
<h2 id="content-hosting">Content/Cloud Hosts</h2>
<ul>
<li><a href="https://youtube.com/@S0G">YouTube</a></li>
<li><a href="https://freesound.org/people/Steve0Greatness/">FreeSound</a>(often inactive)</li>
<li><a href="https://scratch.mit.edu/users/steve0greatness">Scratch</a></li>
<li><a href="https://snap.berkeley.edu/user?username=steve0greatness">Snap<i>!</i></a>(often inactive)</li>
<li><a href="https://glitter-graphics.com/users/steve0greatness">Glitter Graphics</a>(often inactive)</li>
<li><a href="https://filegarden.com/users/655bf52f3ada86485759d5b2/garden/#">FileGarden</a>(often inactive)</li>
<li><a href="https://glitch.com/@Steve0Greatness">Glitch</a>(often inactive)</li>
<li><a href="https://www.deviantart.com/steve0greatness">DeviantArt</a>(often inactive)</li>
<li><a href="https://greasyfork.org/en/users/1185694-steve0greatness">Greasy Fork</a>(often inactive)</li>
<li><a href="https://userstyles.world/user/Steve0Greatness">UserStyles.world</a>(often inactive)</li>
<li><a href="https://steve0greatness.imgbb.com/">ImgBB</a>(often inactive)</li>
<li><a href="https://modshare.futuresight.org/users/Steve0Greatness">Mod Share</a>(often inactive)</li>
<li><a href="https://pastebin.com/u/S0G">PasteBin</a>(often inactive)</li>
<li><a href="https://codepen.io/Steve0Greatness">CodePen</a>(often inactive)</li>
<li><a href="https://www.pixilart.com/">Pixilart</a>(often inactive)</li>
<li><a href="https://pixelfed.social/i/web/profile/609142668647996596">Pixelfed</a>(often inactive)</li>
<li><a href="https://www.twitch.tv/steve0greatness">Twitch</a>(often inactive)</li>
<li><a href="https://steve0greatness.newgrounds.com/">Newgrounds</a>(often inactive)</li>
</ul>
<h2 id="git-forges">Forges</h2>
<ul>
<li><a href="https://github.com/steve0greatness">GitHub</a></li>
<li><a href="https://gitlab.com/Steve0Greatness">GitLab</a></li>
<li><a href="https://codeberg.org/Steve0Greatness">Codeberg</a>(often inactive)</li>
<li><a href="https://gitea.com/Steve0Greatness">Gitea</a>(often inactive)</li>
</ul>
<h2 id="gaming">Game Services</h2>
<ul>
<li><a href="https://steamcommunity.com/id/Steve0Greatness/">Steam</a></li>
<li><a href="https://steve0greatness.itch.io/">Itch.io</a>(often inactive)</li>
<li><a href="https://www.unrealsoftware.de/profile.php?userid=201177">Unreal Software</a>(often inactive)</li>
<li><a href="https://content.minetest.net/users/Steve0Greatness/">Minetest ContentDB</a>(often inactive)</li>
<li><a href="https://www.moddb.com/members/steve0greatness">ModDB</a>(often inactive)</li>
<li><a href="https://www.indiedb.com/members/steve0greatness">IndieDB</a>(often inactive)</li>
<li><a href="https://www.gog.com/u/Steve0Greatness">GOG</a>(often inactive)</li>
<li><a href="https://www.chess.com/member/steve0greatness/">Chess.com</a>(often inactive)</li>
<li><a href="https://www.steamgriddb.com/profile/76561199326051000/">SteamGridDB</a>(often inactive)</li>
<li><a href="https://www.kongregate.com/accounts/steve0greatness/">Kongregate</a>(often inactive)</li>
<li><a href="https://store.epicgames.com/en-US/u/8a4680d7cb1a409c887ff2fea77ccdb4">Epic Games Store</a>(often inactive)</li>
<li><a href="https://gamejolt.com/@Steve0Greatness">Gamejolt</a>(often inactive)</li>
<li><a href="https://www.roblox.com/users/3241388107/profile">Roblox</a>(often inactive)</li>
<li><a href="https://gamebanana.com/members/2809649">GameBanana</a>(often inactive)</li>
</ul>
<h2 id="wikis">Wikis</h2>
<ul>
<li><a href="https://developer.valvesoftware.com/wiki/User:Steve0Greatness">Valve Developer Community</a></li>
<li><a href="https://en.wikipedia.org/wiki/User:Steve0Greatness">English Wikipedia</a>(often inactive)</li>
<li><a href="https://wiki.teamfortress.com/wiki/User:Steve0Greatness">Team Fortress wiki</a>(often inactive)</li>
<li><a href="http://www.wikidot.com/user:info/steve0greatness">Wikidot</a>(often inactive)</li>
<li><a href="https://satisfactory.wiki.gg/wiki/User:Steve0Greatness">Satisfactory wiki</a>(often inactive)</li>
<li><a href="https://en.scratch-wiki.info/wiki/User:Steve0Greatness">Scratch Wiki</a>(often inactive)</li>
<li><a href="https://minecraft.wiki/w/User:Steve-Zero-Greatness">Minecraft wiki</a>(often inactive)</li>
<li><a href="https://community.fandom.com/wiki/User:Steve0Greatness">Fandom</a></li>
<li><a href="https://www.mediawiki.org/wiki/User:Steve0Greatness">MediaWiki</a>(often inactive)</li>
<li><a href="https://libregamewiki.org/User:Steve0Greatness">libreGameWiki</a>(often inactive)</li>
<li><a href="https://wiki.meower.org/wiki/User:Steve-Zero-Greatness">Meower wiki</a>(often inactive)</li>
</ul>
<h2 id="forums">Forums</h2>
<ul>
<li><a href="https://www.doomworld.com/profile/35107-steve0greatness/">Doomworld</a>(often inactive)</li>
<li><a href="https://forum.kglw.net/u/steve0greatness/activity/">KGLW.net Forum</a>(often inactive)</li>
<li><a href="https://www.thecodingforums.com/members/steve0greatness.87042/">Coding Forums</a>(often inactive)</li>
</ul>
<h2 id="link-aggregators">Instant Messaging</h2>
<ul>
<li><a href="https://discord.com/users/952370060914225264">Discord</a></li>
<li><a href="https://matrix.to/#/@steve0greatness:matrix.org">Matrix</a></li>
<li><a href="https://app.meower.org/users/Steve0Greatness">Meower</a>(often inactive)</li>
<li><a href="https://xmpp.org/">XMPP</a>, formerly Jabber, address: <code>steve0greatness@sure.im</code>(basically never active)</li>
</ul>
<h2 id="link-aggregators">Link Aggregators</h2>
<ul>
<li><a href="https://lemmy.world/u/Steve0Greatness">Lemmy</a></li>
<li><a href="https://old.reddit.com/user/Steve0Greatness/">Reddit</a>(often inactive)</li>
</ul>
<h2 id="question-sites">Question Forums</h2>
<ul>
<li><a href="https://stackexchange.com/users/22726739/steve0greatness">Stack Exchange</a>(often inactive)</li>
<li><a href="https://stackoverflow.com/users/16890338/steve0greatness">StackOverflow</a>(often inactive)</li>
</ul>
<h2 id="misc">Miscellaneous</h2>
<ul>
<li><a href="https://kglw.net/~Steve0Greatness">KGLW.net</a>(often inactive)</li>
<li><a href="https://replit.com/@StevesGreatness">Replit</a>(often inactive)</li>
<li><a href="https://humanbenchmark.com/users/6510a80625961d0008f4d6d0/">HumanBenchmark</a>(often inactive)</li>
<li><a href="https://www.change.org/u/Steve0Greatness">Change.org</a>(often inactive)</li>
<li><a href="https://internetometer.com/give/47937/">Internetometer</a>(often inactive)</li>
<li><a href="https://archive.org/details/@steve_apos_s_greatness">Internet Archive</a>(often inactive)</li>
<li><a href="https://openlibrary.org/people/steve_apos_s_greatness">Open Library</a>(often inactive)</li>
<li><a href="https://www.speedrun.com/users/Steve0Greatness">Speedrun</a>(often inactive)</li>
<li><a href="https://www.tierlists.com/user/steve0greatness">TierLists.com</a>(often inactive)</li>
</ul>
{% endblock %}
views/list.html
@@ -0,0 +1,9 @@
{% extends "_layout.html" %}
{% block Head %}
{{super()}}
<link rel="stylesheet" href="/src/code-blocks.css" />
{% endblock %}
{% block title %}{{Title}}{% endblock %}
{% block content %}
{{ Content }}
{% endblock %}