diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ca1de8..5a9fb64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,6 @@ jobs: . venv/bin/activate python -m pip install -r requirements.txt python3 site-generator/generate.py - python3 site-generator/kevbot.xyz.py - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Update site diff --git a/site-generator/generated/kevbot.xyz.contents.lr b/site-generator/generated/kevbot.xyz.contents.lr deleted file mode 100644 index ecda6d3..0000000 --- a/site-generator/generated/kevbot.xyz.contents.lr +++ /dev/null @@ -1,55 +0,0 @@ - -title: Kevin's Homepage ---- -body: -# [back to my visual portfolio here](https://kevinleutzinger.com) -|date_created|title/link|source code| -|---|---|---| -|2024-04-26|[serve-gist.kevbot.xyz](https://serve-gist.kevbot.xyz/?url=https://gist.githubusercontent.com/kleutzinger/2eff598f26f90aff2cc3e7d4ba5f5a42/raw/dd68e5ea8a2ffc37a3ee5962b13e6e3647f721ca/demo.json)|[source](https://github.com/kleutzinger/serve-gist)| -|2023-12-17|[Public Notes](https://tril.kevbot.xyz/share/)|| -|2023-11-22|[radio.kevbot.xyz](https://radio.kevbot.xyz/)|| -|2023-11-10|[tv.kevbot.xyz](https://tv.kevbot.xyz/)|[source](https://github.com/kleutzinger/tv.kevbot.xyz)| -|2023-11-06|[Modernized Video Games Sheet](https://docs.google.com/spreadsheets/d/1lej6intvIrjFEqVxlerSIlFGjblJnv7nRYbs-fJ3FQU/edit?usp=sharing)|| -|2023-11-05|[pad.kevbot.xyz](https://pad.kevbot.xyz)|[source](https://github.com/kleutzinger/pad.kevbot.xyz)| -|2023-09-30|[Fitness Tracker](https://fit.kevbot.xyz)|[source](https://github.com/kleutzinger/fit.kevbot.xyz)| -|2023-06-20|[Norcal Melee Data Tracker](https://docs.google.com/spreadsheets/d/1-rj-k-gLWUize_fYmlGVH0zFkBLa14U6nMMonNEkraE/edit#gid=854185296)|[source](https://github.com/kleutzinger/norcal-ssbm-power-ranker-pgstats.com)| -|2023-06-03|[Steam Tags Popularity Game](https://steam-tags.kevbot.xyz/)|[source](https://github.com/kleutzinger/steam-tags)| -|2023-02-04|[Userscripts Repo](https://github.com/kleutzinger/userscripts#readme)|[source](https://github.com/kleutzinger/userscripts)| -|2022-07-20|[Kevbot LBX Layout](https://github.com/kleutzinger-forks/CL-FW-kevbot)|[source](https://github.com/kleutzinger-forks/CL-FW-kevbot)| -|2022-05-10|[Torrent Downloader](https://github.com/kleutzinger/get-movie)|[source](https://github.com/kleutzinger/get-movie)| -|2022-05-01|[DIY Rectangle Controller](https://docs.google.com/document/d/1ghh1K2DEtPpqfF3jOtAsY1XcohuA7enjkYF7_MLG39k/edit#heading=h.qkq85fhrrorr)|| -|2021-12-01|[Advent of Code 2021 Solutions](https://github.com/kleutzinger/advent-of-code-2021#readme)|[source](https://github.com/kleutzinger/advent-of-code-2021)| -|2021-09-15|[Slippi Melee Nametag Generator ](https://codepen.io/thedookmaster/project/full/DPQmqa)|[source](https://codepen.io/thedookmaster/project/editor/DPQmqa#)| -|2021-04-22|[Url Shortening Service](https://u.kevbot.xyz/)|[source](https://github.com/kleutzinger/url-shorten-dokku)| -|2021-03-01|[Discord Bet Bot](https://github.com/kleutzinger/bet-bot)|[source](https://github.com/kleutzinger/bet-bot)| -|2021-03-01|[Portfolio Generator](https://kevinleutzinger.com/)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/site-generator)| -|2021-01-12|[Kevin's Arch Linux dotfiles](https://github.com/kleutzinger/dotfiles)|[source](https://github.com/kleutzinger/dotfiles)| -|2020-12-14|[invidious redirect](https://invidious.kevbot.xyz/)|[source](https://github.com/kleutzinger/invidious-redirect)| -|2020-12-01|[Advent of Code 2020 Solutions](https://github.com/kleutzinger/advent-of-code-2020#readme)|[source](https://github.com/kleutzinger/advent-of-code-2020)| -|2020-10-22|[kevbot.xyz](https://kevbot.xyz/)|[source](https://github.com/kleutzinger/lektor-blog)| -|2020-10-01|[movies.kevbot.xyz](https://movies.kevbot.xyz/)|[source](https://github.com/kleutzinger/movies.kevbot.xyz)| -|2020-09-02|[Smash Bros. Melee Gameplay Sharing](https://replay.kevbot.xyz/)|[source](https://github.com/kleutzinger/spectate-melee-kb)| -|2020-07-01|[Melee Music Player](https://github.com/kleutzinger/slippi-melee-music-player)|[source](https://github.com/kleutzinger/slippi-melee-music-player)| -|2020-05-01|[Rom Browser (Pro)](https://github.com/kleutzinger/find-and-play-classic-videogames)|[source](https://github.com/kleutzinger/find-and-play-classic-videogames)| -|2020-04-01|[The Lounge Video Chat](https://lounge.kevbot.xyz/)|[source](https://github.com/kleutzinger/the-lounge)| -|2020-03-01|[Projects Sheet](https://docs.google.com/spreadsheets/d/1MVghM465zjbMGB89CwvH-GwfwyLXqHqfY1emM7Mp-uA/edit?usp=sharing)|| -|2019-05-20|[reddit actually bot](#)|| -|2019-01-27|[Twitch.tv Pause Live](https://chrome.google.com/webstore/detail/twitch-pause-resume-live/bfgebolngkajgakbhhfdhgdldmjmiebe)|| -|2018-04-06|[Norcal Melee Power Ranking](https://www.ssbwiki.com/NorCal_Power_Rankings#Super_Smash_Bros_Melee)|| -|2018-02-15|[Youtube "Now Playing"](https://chrome.google.com/webstore/detail/youtube-now-playing-descr/cclaiidhllljekopicenflhhkdkckkbl)|| -|2017-07-31|[Combo Video](https://youtu.be/1WCsfcQgjk8)|| -|2017-05-15|[Better Challonge Tournament Results](https://chrome.google.com/webstore/detail/better-challonge-results/nlmopkefkemlpdpfkgllbeifljhkfeno)|[source](https://github.com/kleutzinger/better-challonge)| -|2017-05-05|[Clipyt](https://clipyt.kevbot.xyz/#VQBbHzypBro+71+79+VQBbHzypBro+140+146+pZwvLFhYUL0+129+133+hGY44DIQb-A+81+92+MdcuaeYV9oM+164+177+IydCCUfPDLE+11+34+Interesting_Videos)|[source](https://github.com/kleutzinger/clipyt.me/)| -|2017-04-10|[Classic Project Page](https://kevinleutzinger.com/projects)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/projects)| -|2017-03-01|[Bachelor's Degree](https://cs.ucdavis.edu/)|| -|2016-08-06|[Fullsize Instagram Right Click](https://github.com/kleutzinger/instagram-fullsize)|[source](https://github.com/kleutzinger/instagram-fullsize)| -|2014-10-24|[Rus the desert bus](https://www.kevinleutzinger.com/bus/)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/bus)| -|2014-10-15|[Jetski](https://kevinleutzinger.com/jetski/)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/jetski)| -|2014-07-24|[Hearthstone Sound Guesser](https://www.kevinleutzinger.com/hearth/)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/hearth)| -|2014-04-14|[Survive SRC Game](https://www.kevinleutzinger.com/surviveSRC/)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/surviveSRC)| -|2014-04-13|[Balance Game](https://kevinleutzinger.com/balance)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/balance)| -|2013-10-01|[serpent2.py](https://repl.it/@thedookmaster/serpent2py)|| -|2013-06-06|[Hensley Harder](https://kevinleutzinger.com/og/)|[source](https://github.com/kleutzinger/kleutzinger.github.io/tree/master/og)| - ---- -alt_note: alt note diff --git a/site-generator/kevbot.xyz.py b/site-generator/kevbot.xyz.py deleted file mode 100644 index 0c78ab6..0000000 --- a/site-generator/kevbot.xyz.py +++ /dev/null @@ -1,77 +0,0 @@ -"""generator logic for https://kevbot.xyz - -this page is mostly markdown - -#__PUBLISH_TO_XYZ__# /home/kevin/.virtualenvs/kleutzinger-github-io/bin/python #__file__# && blog.fish deploy -""" - - -import os -import ingest - -os.chdir(os.path.dirname(os.path.abspath(__file__))) -# make dump generated file here -CONTENTS_LR = os.path.join("generated", "kevbot.xyz.contents.lr") -TEMPLATE = """ -title: Kevin's Homepage ---- -body: -# [back to my visual portfolio here](https://kevinleutzinger.com) -MARKDOWN ---- -alt_note: alt note -""" - -""" -| Syntax | Description | -| --- | ----------- | -| Header | Title | -| Paragraph | Text | -""" - - -def main(): - global TEMPLATE - projects = ingest.get_rows() - projects.sort(reverse=True, key=lambda x: x.get("date_created", "0")) - used_fields = ["date_created", "title/link", "source code"] - piped = "|".join(used_fields) - headers = f"|{piped}|" - spacer = f"|{'---|'*len(used_fields)}" - output_string = f"{headers}\n{spacer}\n" - - def modify_project(project): - title = project.get("title", "title") - title_link = None - if "demo_url" in project: - title_link = project["demo_url"] - if "repo_url" in project: - project["source code"] = f"[source]({project['repo_url']})" - title_link = title_link or project["repo_url"] - if "readme_url" in project: - title_link = title_link or project["readme_url"] - if "star_rating" in project: - full_star = "★" - star_rating = project["star_rating"] - project["stars"] = full_star * int(float(star_rating)) - title_link = title_link or "#" - project["title/link"] = f"[{title}]({title_link})" - - return project - - for project in map(modify_project, projects): - if "kb" in project.get("omit_from", []): - continue - piped = "|".join([str(project.get(f, "")) for f in used_fields]) - vals = f"|{piped}|\n" - output_string += vals - - markdown_output = TEMPLATE.replace("MARKDOWN", output_string) - with open(CONTENTS_LR, "w") as f: - f.write(markdown_output) - with open(os.path.join("generated", "kevbot.xyz.contents.lr"), "w") as f: - f.write(markdown_output) - - -if __name__ == "__main__": - main()