From 524e462f8bbcc4bb9beb5123a6aa140621778633 Mon Sep 17 00:00:00 2001 From: Abigail Date: Wed, 3 Jan 2024 00:16:17 -0500 Subject: [PATCH] Remove extraneous scripts --- .github/workflows/CI.yaml | 6 ------ bottom.js | 40 --------------------------------------- bottomify.sh | 21 -------------------- 3 files changed, 67 deletions(-) delete mode 100644 bottom.js delete mode 100755 bottomify.sh diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 4acbe31..087e5ce 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -12,9 +12,3 @@ jobs: - uses: actions/checkout@v3 - name: Run run: ./owoify.sh - bottomify: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Run - run: ./bottomify.sh diff --git a/bottom.js b/bottom.js deleted file mode 100644 index 1648de4..0000000 --- a/bottom.js +++ /dev/null @@ -1,40 +0,0 @@ -// see https://github.com/bottom-software-foundation/spec -const CHARACTER_VALUES = [ - [200, "🫂"], - [50, "💖"], - [10, "✨"], - [5, "🥺"], - [1, ","] -]; -const NULL_VALUE = "❤️"; -const BYTE_SEPARATOR = "👉👈"; - -const encoder = new TextEncoder(); - -function encode(input) { - var inputBytes = encoder.encode(input); - var output = ""; - - for (var i = 0; i < inputBytes.length; i++) { - var v = inputBytes[i]; - - if (v == 0) { - output += NULL_VALUE; - } - else { - while (v > 0) { - let correct_character = CHARACTER_VALUES.find((value) => v >= value[0]); - output += correct_character[1]; - v -= correct_character[0]; - } - } - - output += BYTE_SEPARATOR; - } - - return output; -} - -for (paragraph of document.getElementsByTagName("p")) { - paragraph.innerHTML = encode(paragraph.innerHTML); -} diff --git a/bottomify.sh b/bottomify.sh deleted file mode 100755 index d148eb8..0000000 --- a/bottomify.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -git clone https://github.com/gamemanual0/gm0.git --depth 1 - -echo "html_js_files = ['js/bottom.js']" >> gm0/source/conf.py -mkdir -p gm0/source/_static/js -cp bottom.js gm0/source/_static/js -cp gmOwO.png gm0/source/_static/assets/gm0-logo.png -cp gmOwO.png gm0/source/_static/assets/gm0-logo_white.png - -rm -rf gm0/.git -shopt -s dotglob -mv gm0/* . - -git config user.email "i@didntask.com" -git config user.name "gm🥺ifier" - -git add . -git commit -m "Updated gm🥺" - -git push --force origin main:bottom