diff --git a/homepage/.build.yml b/homepage/.build.yml new file mode 100644 index 0000000..979f94a --- /dev/null +++ b/homepage/.build.yml @@ -0,0 +1,13 @@ +image: alpine/edge +oauth: pages.sr.ht/PAGES:RW +packages: +- hut +- python3 +tasks: +- package: | + cd homepage + make generate + tar cvz --exclude .git . >../site.tar.gz + ls -l ../site.tar.gz +- upload: | + hut pages publish -d trinity.moe site.tar.gz diff --git a/homepage/.gitignore b/homepage/.gitignore new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/homepage/.gitignore @@ -0,0 +1 @@ +test diff --git a/homepage/CNAME b/homepage/CNAME new file mode 100644 index 0000000..6b04142 --- /dev/null +++ b/homepage/CNAME @@ -0,0 +1 @@ +www.trinity.moe diff --git a/homepage/Makefile b/homepage/Makefile new file mode 100644 index 0000000..e88fe7e --- /dev/null +++ b/homepage/Makefile @@ -0,0 +1,26 @@ +.POSIX: + +FILES = CNAME css homepage img Makefile README +RM = rm -f + +test: + mkdir test + cp -R $(FILES) test/ + make -C test generate + +clean_test: + rm -r test + +retest: + make clean_test + make test + +generate: clean.sh + +clean.sh: + sh homepage + +clean: clean.sh + sh clean.sh + +.PHONY: generate clean test clean_test retest diff --git a/homepage/README b/homepage/README new file mode 100644 index 0000000..108e391 --- /dev/null +++ b/homepage/README @@ -0,0 +1,3 @@ + /\ |/||\|| _\|||\ |||||/||\|\\// |\ /|/ \||\| + / \ || || /|||\\|||| || || ||\/|| | ||> +/____\ _||__||\\||||\\|||__||_ _||_()||\/||\_/||/| diff --git a/homepage/css/2023.css b/homepage/css/2023.css new file mode 100644 index 0000000..c795fa6 --- /dev/null +++ b/homepage/css/2023.css @@ -0,0 +1,8 @@ +a{ + color: #FF0000; +} + +body{ + background-color: #000000; + color: #FFDBDB; +} diff --git a/homepage/css/4chanog.css b/homepage/css/4chanog.css new file mode 100644 index 0000000..55cfcf3 --- /dev/null +++ b/homepage/css/4chanog.css @@ -0,0 +1,11 @@ +/* is this really an OG 4chan theme? + * screenshots from nov 2003 look like + * this but idk... */ + +body: + background-color: #000000; + color: #FFFFFF; + +h1, h2, h3, .sidebar { + color: #B77F75 +} diff --git a/homepage/css/Makefile b/homepage/css/Makefile new file mode 100644 index 0000000..e870928 --- /dev/null +++ b/homepage/css/Makefile @@ -0,0 +1,2 @@ +index.html: index.m4 ../head.m4 + m4 index.m4 >index.html diff --git a/homepage/css/blank.css b/homepage/css/blank.css new file mode 100644 index 0000000..e69de29 diff --git a/homepage/css/calebmode.css b/homepage/css/calebmode.css new file mode 100644 index 0000000..65946a0 --- /dev/null +++ b/homepage/css/calebmode.css @@ -0,0 +1,10 @@ +body { + background-color: #000000; + color: #FFFFFF; + font-weight: bold; +} + +a { + color: #FFFFFF; + font-weight: normal; +} \ No newline at end of file diff --git a/homepage/css/discord.css b/homepage/css/discord.css new file mode 100644 index 0000000..dd17d13 --- /dev/null +++ b/homepage/css/discord.css @@ -0,0 +1,9 @@ +/* found on https://colorswall.com/palette/181/. seems accurate */ +body { + background-color: #23272A; + color: #99AAB5; +} + +a { + color: #7289DA; +} diff --git a/homepage/css/givemerights.css b/homepage/css/givemerights.css new file mode 100644 index 0000000..92aaf5b --- /dev/null +++ b/homepage/css/givemerights.css @@ -0,0 +1,3 @@ +body { + background-image: linear-gradient(#bcdeff, #efdbfc, #bcdeff); +} \ No newline at end of file diff --git a/homepage/css/index.m4 b/homepage/css/index.m4 new file mode 100644 index 0000000..f45332c --- /dev/null +++ b/homepage/css/index.m4 @@ -0,0 +1,57 @@ +define(`_PAGE', `css/')dnl +define(`_TITLE', `trinity.moe/css/')dnl +define(`_DESCRIPTION', `trinity.moe css')dnl +define(`_STYLE', `') +define(`csspage', ` + +
')dnl + + +include(`../head.m4')dnl + +

~ Return to the rest of the site

+ + + +

Site CSS selector

+
+

+This page may be hostile to screen readers and other web assistive technologies because it's essentially a raw list of filenames with paths and extensions. +If you'd like a friendlier view, it's possible the webview directory list for the repository service I use could be a better way to browse this site's more hidden stylesheets. +Otherwise, pull requests are open for the repository, and my e-mail is on the site index if you don't have an account on the service being used. +

+

+This page uses JavaScript. +The URLs to the sheets are provided in their entry. +If you do not wish to use JavaScript for this page, you may set a custom theme for this website in your browser settings using the sheet file. +

+ +csspage(`blank') +csspage(`4chanog') +csspage(`calebmode') +csspage(`discord') +csspage(`givemerights') +csspage(`instantfloppy') +csspage(`instantfloppy-redandwhite') +csspage(`k') + + +
+csspage(`nevertoodark') +csspage(`pink') +csspage(`windowsclassic') +csspage(`yarahmode') + +

side-effects

+ + + + + + diff --git a/homepage/css/instantfloppy-redandwhite.css b/homepage/css/instantfloppy-redandwhite.css new file mode 100644 index 0000000..8b78497 --- /dev/null +++ b/homepage/css/instantfloppy-redandwhite.css @@ -0,0 +1,12 @@ +/** add stylesheet.css, then add this sheet **/ + +body { + /** cloning CNN, cheaply. **/ + background-color: #DDDDDD; + color: #111111; +} + +a { + color: #EE0000; + text-decoration: underline; +} \ No newline at end of file diff --git a/homepage/css/instantfloppy.css b/homepage/css/instantfloppy.css new file mode 100644 index 0000000..fe623af --- /dev/null +++ b/homepage/css/instantfloppy.css @@ -0,0 +1,17 @@ +body { + background-color: #000000; + color: #00FF00; + font-size: 100%; +} +a { + color: #FF4444; + text-decoration: none; + font-weight: bold; +} + +h1, h2, h3, h4, h5, h6, h7 { font-weight: normal; } + +h1 { font-size: 1.25em; /* 20px */ } +h2 { font-size: 1.125em; /* 18px */ } +h3 { font-size: 1em; /* 16px */ } +h7 { font-size: 0.625em; /* 10px */ } diff --git a/homepage/css/k.css b/homepage/css/k.css new file mode 100644 index 0000000..ec288be --- /dev/null +++ b/homepage/css/k.css @@ -0,0 +1,10 @@ +body { + background-color: #000000; + color: #FFDBDB; + font-weight: bold; +} + +a { + color: #FFDBDB; + font-weight: normal; +} diff --git a/homepage/css/lists.css b/homepage/css/lists.css new file mode 100644 index 0000000..71aec0d --- /dev/null +++ b/homepage/css/lists.css @@ -0,0 +1,8 @@ +/* stolen a bit from http://www.lord-enki.net/vt240.css */ +tr, td, ul, ol { + outline: 1px solid; + padding-top: 5px; + padding-bottom: 5px; + margin-top: 5px; + margin-bottom: 10px; +} \ No newline at end of file diff --git a/homepage/css/mcupdate.css b/homepage/css/mcupdate.css new file mode 100644 index 0000000..d5fb74f --- /dev/null +++ b/homepage/css/mcupdate.css @@ -0,0 +1,39 @@ +/* SITE LICENSE DOES NOT APPLY TO THIS FILE. +This file is UNLICENSED. Its copyright belongs to its original creators (NOT +Deven Blake), they are the only ones who can license this file. + + mcupdate.css + site theme stolen from mcupdate.tumblr.com -- + + Photo Minimal + A Tumblr theme by William Rainbird - http://william.rainbird.me + + Tweaked for the Minecraft Launcher by Mojang + +*/ + +body { + font-family: sans-serif; + background-color: #222222; + background-image: url('https://static.tumblr.com/qfn3sex/ezom7y7iq/bg_main.png'); + color: #e0d0d0; +} + +a { color: #aaaaff; } + +hr { + border: 0; + color: #111111; + background-color: #111111; + height: 2px; +} + +h3 { + color: #ffffff; + font-size: 16px; +} + +img { + border:0; + margin:0; +} diff --git a/homepage/css/nevertoodark.css b/homepage/css/nevertoodark.css new file mode 100644 index 0000000..e387188 --- /dev/null +++ b/homepage/css/nevertoodark.css @@ -0,0 +1,8 @@ +body { + background-color: #000000; + color: #222222; +} + +a { + color: #333333; +} diff --git a/homepage/css/pink.css b/homepage/css/pink.css new file mode 100644 index 0000000..348dfb3 --- /dev/null +++ b/homepage/css/pink.css @@ -0,0 +1,3 @@ +body { + background-color: #FFDBDB; +} diff --git a/homepage/css/windowsclassic.css b/homepage/css/windowsclassic.css new file mode 100644 index 0000000..73f3860 --- /dev/null +++ b/homepage/css/windowsclassic.css @@ -0,0 +1,10 @@ +body { + background-color: #3B6EA5; + color: #FFFFFF; + font-weight: bold; +} + +a { + color: #FFFFFF; + font-weight: normal; +} \ No newline at end of file diff --git a/homepage/css/yarahmode.css b/homepage/css/yarahmode.css new file mode 100644 index 0000000..428e1cf --- /dev/null +++ b/homepage/css/yarahmode.css @@ -0,0 +1,6 @@ +body { + background-color: #66AA88; +} +a { + color: #7E4662; +} diff --git a/homepage/homepage b/homepage/homepage new file mode 100755 index 0000000..f7aaf13 --- /dev/null +++ b/homepage/homepage @@ -0,0 +1,11150 @@ +#!/bin/sh +#llllmmmm11234567892123456789312345678941234567895123456789612345678971234567890 +set -ex +<"$0" python3 -c ' +import os, sys +class File: + attributes = []; content = ""; substitutions = dict() + figurative = True; stub = True + def addattribute(self, *args): + for a in args: # sloppy but works + if a == "stub": self.stub = True + elif a == "verbatim": self.stub = False + elif a == "figuratively": self.figurative = True + elif a == "literally": self.figurative = False + def __init__(self, **kwargs): + for key in kwargs: + if key == "attributes": self.addattribute(*kwargs[key]) + else: setattr(self, key, kwargs[key]) +files = dict() +for part in reversed(sys.stdin.read().split("\n\n\n")): + name = "." + part.split("\n")[0] + if "\t" in "." + name: + attributes = name.split("\t")[1].split(",") + name = name.split("\t")[0] + else: attributes = [] + if len(name) <= 1 or name[1] != "/" or "ignore" in attributes: + continue + content = part.split("\n\n")[0].split("\n") + substitutions = dict() + if(len(content) > 1): + for s in content[1:]: + s = s.split("\t") + if len(s) == 2: substitutions[s[0]] = s[1] + mode = "replace" + for attribute in attributes: + if attribute in ["append", "replace"]: + mode = attribute + attributes = list(set(attributes) ^ {"append", "replace"}) + content = part[len("\n".join(content))+2:] + file = File(attributes = attributes, content = content + "\n", + substitutions = substitutions) + if mode == "append": + if not(name in files): + sys.stderr.write(sys.argv[0] + ": " + name + ": " + + "appending to nothing\n") + else: + file.content = files[name].content + file.content + files[name] = file +for name in files: + if files[name].stub: + p = ""; s = ""; d = name + while True: + d = os.path.dirname(d) + if (p == "" + and os.path.join(d, "Prefix") + in files.keys()): + p = files[os.path.join(d, "Prefix")].content + if (s == "" + and os.path.join(d, "Suffix") + in files.keys()): + s = files[os.path.join(d, "Suffix")].content + if d == "." or (not(p == "") and not(s == "")): + break + files[name].content = p + files[name].content + s + if files[name].figurative: + content = files[name].content + for s in files[name].substitutions: + instances = [] + i = 0 + while True: + instance = content.find(s, i) + if instance == -1: break + instances += [instance] + i = instance + len(s) + if len(instances) == 0: continue + for i in reversed(instances): + content = (content[:i] + + files[name].substitutions[s] + + content[i+len(s):]) + files[name].content = content + # TODO error checking + if not(os.path.isdir(os.path.dirname(name))): + os.makedirs(os.path.dirname(name)) + with open(name, "w") as fd: fd.write(files[name].content) +d = ""; bucket = "#!/bin/sh\n" +for name in files: + d = name + while True: + if os.path.dirname(d) == ".": + mop = ("rm " + + "-r " * os.path.isdir(d) + + name # yeah this sucks + + "\n" + ) + if not(mop in bucket): bucket += mop + break + else: + d = os.path.dirname(d) +if len(bucket.split("\n")) > 2: + with open("./cleanup.sh", "w") as fd: + fd.write(bucket) +' +test -x homepage.local \ + && exec ./homepage.local \ + || test -e homepage.local \ + && exec sh ./homepage.local \ + || exit 0 + + +/LICENSE verbatim + +Other than noted exceptions, this is free and unencumbered data +released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this data, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this data dedicate any and all copyright interest in the data to the +public domain. We make this dedication for the benefit of the public at +large and to the detriment of our heirs and successors. We intend this +dedication to be an overt act of relinquishment in perpetuity of all +present and future rights to this data under copyright law. + +THE DATA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE DATA OR THE USE OR +OTHER DEALINGS IN THE DATA. + +For more information, please refer to + + +/homepage.html +$!TITLE "homepage" documentation +$!DESCRIPTION one file, one website + +

"homepage" documentation

+

the forest

+

+homepage is a single-file static site generator written in UNIX sh(1) shell +script, the goal being to contain a website with heirarchical page +organization within a single file that can be run to extract it out to the +filesystem, almost like a self-extracting UNIX tape archive that documents its +own layout in a UTF-8 script closer to English. +

+

trees

+

files

+

+To add a file to your homepage, append three newlines ('\n', or the +Enter/Return key on your keyboard) to the end of the homepage file, followed +by the path of the file to add. A homepage file path starts with a slash ('/') +and is followed by the path to the file relative to the prefix directory (the +directory containing homepage). A file path that starts with a hash ('#') is +discarded. For all non-slash- non-hash- prefixed file paths, the behavior of +homepage is undefined. +

+

file attributes

+

+On the same line as the file path, if, after the path, a tab ('\t') is +present, the substring following the first tab in the line and spanning to +and excluding the next tab or newline describes the attributes of the file as +it is exported to the file system. These file attributes are delimited by +commas (',') and there's no limit to the amount of attributes a file can +have, though in the event of conflicting attributes the later attribute +"wins" the conflict. +

+ + + + + + + + + + + + +
attribute default?action
"figuratively"yesIndicates the file should be subject to macro expansion.
"ignore" no Ignore the current entry.
"literally" noOpposite of "figuratively".
"stub" yesIndicates the file should be exported to the filesystem with the + appropriate Prefix and Suffix files prepended or appended.
"verbatim" no Opposite of "stub".
+ + +/praise/index.html append,literally + +
  • [] Doctor Eli Selig !!JQHA6kqyl91: >Maid Phone user / >mfw / ["Heart hands.jpg"]
  • + + +/praise/Prefix verbatim + + + + + + + + + + + + + + + +trinity's "shitlist" + + +

    ~ Return to the rest of the site

    + + + +

    trinity's "shitlist"

    +
    +

    +This is my "shitlist", or list of things you shouldn't like (- I like some of these things but probably shouldn't). +This is a list of public figures and brands, nothing personal. +If you're on this list you're probably famous enough to not have to care. +

    +

    (Partial) Table of Contents

    + +

    Disclaimers

    + +

    Prior art

    (other shitlists and shitlist-adjacent content)

    + +

    Brands

    + + +

    Police Departments

    + + +

    Public Figures

    + + +

    Removed entries

    + +

    Acknowledgements

    + +
  • Template
  • + + +