From b27fdf207eedf4c632c83c86f91be37c0f8c7c65 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Fri, 3 Nov 2023 21:00:03 +0530 Subject: [PATCH] inline svgs for now, fix replace hopefully --- .github/replace.py | 36 ++++++++++++++++++------------------ .github/script.sh | 2 +- index.md | 8 ++++---- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/replace.py b/.github/replace.py index a76d3461c..737050426 100644 --- a/.github/replace.py +++ b/.github/replace.py @@ -52,25 +52,25 @@ def remove_backtowiki_and_toc(text): return text def replace_domain_and_page(text): - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/ai', '/ai', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/adblock-vpn-privacy', '/adblockvpnguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/android', '/android-iosguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/video', '/videopiracyguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/audio', '/audiopiracyguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/games', '/gamingpiracyguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/reading', '/readingpiracyguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/download', '/downloadpiracyguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/torrent', '/torrentpiracyguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/edu', '/edupiracyguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/tools-misc', '/toolsguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/linux', '/linuxguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/non-eng', '/non-english', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/misc', '/miscguide', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/storage', '/storage', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/dev-tools', '/devtools', text) - text = re.sub('www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/img-tools', '/img-tools', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/ai', '/ai', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/adblock-vpn-privacy', '/adblockvpnguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/android', '/android-iosguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/video', '/videopiracyguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/audio', '/audiopiracyguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/games', '/gamingpiracyguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/reading', '/readingpiracyguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/download', '/downloadpiracyguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/torrent', '/torrentpiracyguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/edu', '/edupiracyguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/tools-misc', '/toolsguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/linux', '/linuxguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/non-eng', '/non-english', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/misc', '/miscguide', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/storage', '/storage', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/dev-tools', '/devtools', text) + text = re.sub('https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/img-tools', '/img-tools', text) - text = re.sub('github.com/nbats/FMHYedit/blob/main/base64.md#', '/base64/#', text) + text = re.sub('https://github.com/nbats/FMHYedit/blob/main/base64.md#', '/base64/#', text) return text diff --git a/.github/script.sh b/.github/script.sh index 4ba9d3f9f..3e35948cb 100644 --- a/.github/script.sh +++ b/.github/script.sh @@ -1,6 +1,6 @@ python .github/add-headers.py +python .github/replace.py for file in *; do [[ -f "$file" ]] && mv "$file" "${file,,}" 2>/dev/null done -python .github/replace.py diff --git a/index.md b/index.md index b5400f3fa..8d2cac78d 100644 --- a/index.md +++ b/index.md @@ -19,19 +19,19 @@ hero: features: - title: Movies / TV / Anime - icon:
+ icon: link: /videopiracyguide details: Download, stream, torrent and binge all your favourites movies or shows! - title: Music / Podcasts / Radio - icon:
+ icon: link: /audiopiracyguide details: Stream, download and torrent songs, podcasts and more! - title: Games / Emulation - icon:
+ icon: link: /gamingpiracyguide details: Download and play all your favourite games or emulate some old but gold ones! - title: Book / Comics / Manga - icon:
+ icon: link: /readingpiracyguide details: Whether you're a bookworm, otaku or comic book fan, you'll be able to find your favourite pieces of literature here for free! ---