From 7f01f92685a3c2dbbfb083ce168e174d8ec69ff3 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:20:44 +0530 Subject: [PATCH] fix: update for splilt tools sections --- .github/add-headers.py | 91 ++++++++++++++++------- .vitepress/config.mts | 18 ++++- FMHY-Index.md | 163 ----------------------------------------- Tools-Index.md | 66 ----------------- 4 files changed, 80 insertions(+), 258 deletions(-) delete mode 100644 FMHY-Index.md delete mode 100644 Tools-Index.md diff --git a/.github/add-headers.py b/.github/add-headers.py index b207d0b78..f761a84cf 100644 --- a/.github/add-headers.py +++ b/.github/add-headers.py @@ -1,29 +1,66 @@ import os + headers = { - "AdblockVPNGuide.md": ["Adblocking / Privacy", "Adblocking, Privacy, VPN's, Proxies, Antivirus"], - "AI.md": ["Artificial Intelligence", "Chat Bots, Text Generators, Image Generators, ChatGPT Tools"], - "Android-iOSGuide.md": ["Android / iOS", "Apps, Jailbreaking, Android Emulators"], - "AudioPiracyGuide.md": ["Music / Podcasts / Radio", "Stream Audio, Download Audio, Torrent Audio"], - "Beginners-Guide.md": ["Beginners Guide", "A Guide for Beginners to Piracy"], - "DEVTools.md": ["Developer Tools", "Git, Hosting, App Dev, Software Dev"], - "DownloadPiracyGuide.md": ["Downloading", "Download Sites, Software Sites, Open Directories"], - "EDUPiracyGuide.md": ["Educational", "Courses, Documentaries, Learning Resources"], - "GamingPiracyGuide.md": ["Gaming / Emulation", "Download Games, ROMs, Gaming Tools"], - "LinuxGuide.md": ["Linux / MacOS", "Apps, Software Sites, Gaming"], - "MISCGuide.md": ["Miscellaneous", "Extensions, Indexes, News, Health, Food, Fun"], - "NSFWPiracy.md": ["NSFW", "NSFW Indexes, Streaming, Downloading"], - "Non-English.md": ["Non-English", "International Piracy Sites"], - "ReadingPiracyGuide.md": ["Books / Comics / Manga", "Books, Comics, Magazines, Newspapers"], - "STORAGE.md": ["Storage", "Index for everything in the wiki."], - # "TOOLSGuide.md": ["Tools", "General Tools, Internet Tools, System Tools"], - "TorrentPiracyGuide.md": ["Torrenting", "Torrent Clients, Torrent Sites, Trackers"], - "VideoPiracyGuide.md": ["Movies / TV / Anime", "Stream Videos, Download Videos, Torrent Videos"], - "base64.md": ["Base64", "Base64 storage"], - "img-tools.md": ["Image Tools", "Image Editors, Generators, Compress"], - "UnsafeSites.md": ["Unsafe Sites", "Unsafe/harmful sites to avoid."] + "AdblockVPNGuide.md": [ + "Adblocking / Privacy", + "Adblocking, Privacy, VPN's, Proxies, Antivirus", + ], + "AI.md": [ + "Artificial Intelligence", + "Chat Bots, Text Generators, Image Generators, ChatGPT Tools", + ], + "Android-iOSGuide.md": ["Android / iOS", "Apps, Jailbreaking, Android Emulators"], + "AudioPiracyGuide.md": [ + "Music / Podcasts / Radio", + "Stream Audio, Download Audio, Torrent Audio", + ], + "Beginners-Guide.md": ["Beginners Guide", "A Guide for Beginners to Piracy"], + "DownloadPiracyGuide.md": [ + "Downloading", + "Download Sites, Software Sites, Open Directories", + ], + "EDUPiracyGuide.md": ["Educational", "Courses, Documentaries, Learning Resources"], + "GamingPiracyGuide.md": [ + "Gaming / Emulation", + "Download Games, ROMs, Gaming Tools", + ], + "LinuxGuide.md": ["Linux / MacOS", "Apps, Software Sites, Gaming"], + "MISCGuide.md": ["Miscellaneous", "Extensions, Indexes, News, Health, Food, Fun"], + "NSFWPiracy.md": ["NSFW", "NSFW Indexes, Streaming, Downloading"], + "Non-English.md": ["Non-English", "International Piracy Sites"], + "ReadingPiracyGuide.md": [ + "Books / Comics / Manga", + "Books, Comics, Magazines, Newspapers", + ], + "DEVTools.md": ["Developer Tools", "Git, Hosting, App Dev, Software Dev"], + "img-tools.md": ["Image Tools", "Image Editors, Generators, Compress"], + "Audio-Tools.md": [ + "Audio Tools", + "Audio Players, Audio Editors, Audio Downloaders", + ], + "System-Tools.md": [ + "System Tools", + "System Tools, Hardware Tools, Windows ISOs, Customization", + ], + "File-Tools.md": ["File Tools", "Download Managers, File Hosting, File Archivers"], + "Video-Tools.md": [ + "Video Tools", + "Video Players, Video Editors, Live Streaming, Animation", + ], + "Text-Tools.md": ["Text Tools", "Text Editors, Pastebins, Fonts, Translators"], + "Internet-Tools.md": ["Internet Tools", "Browsers, Extensions, Search Engines"], + "STORAGE.md": ["Storage", "Index for everything in the wiki."], + "TorrentPiracyGuide.md": ["Torrenting", "Torrent Clients, Torrent Sites, Trackers"], + "VideoPiracyGuide.md": [ + "Movies / TV / Anime", + "Stream Videos, Download Videos, Torrent Videos", + ], + "base64.md": ["Base64", "Base64 storage"], + "UnsafeSites.md": ["Unsafe Sites", "Unsafe/harmful sites to avoid."], } + def getHeader(page: str): data = headers[page] header = "---\n" @@ -34,15 +71,17 @@ def getHeader(page: str): header += f"{data[1]}\n\n" return header + def main(): - files = os.listdir('.') + files = os.listdir(".") for file in files: if file in headers: - with open(file, 'r', encoding='utf-8') as f: + with open(file, "r", encoding="utf-8") as f: content = f.read() - if not content.startswith('---'): - with open(file, 'w', encoding='utf-8') as f2: + if not content.startswith("---"): + with open(file, "w", encoding="utf-8") as f2: header = getHeader(file) - f2.write(header+content) + f2.write(header + content) + main() diff --git a/.vitepress/config.mts b/.vitepress/config.mts index bb8e484ee..0a1e955bb 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -116,9 +116,6 @@ export default defineConfig({ { text: "💾 Downloading", link: "/downloadpiracyguide" }, { text: "🌀 Torrenting", link: "/torrentpiracyguide" }, { text: "🧠 Educational", link: "/edupiracyguide" }, - { text: "🔧 Tools", link: "/toolsguide" }, - { text: "📷 Image Tools", link: "/img-tools" }, - { text: "👨‍💻 Developer Tools", link: "/devtools" }, { text: "📱 Android / iOS", link: "/android-iosguide" }, { text: "🐧 Linux / MacOS", link: "/linuxguide" }, { text: "🌍 Non-English", link: "/non-english" }, @@ -127,6 +124,21 @@ export default defineConfig({ { text: "⚠️ Unsafe Sites", link: "/unsafesites" }, { text: "🔑 Base64", link: "/base64" }, { text: "📦 Storage", link: "/storage" }, + { + text: "🔧 Tools", + items: [ + { text: "💻 System Tools", link: "/system-tools" }, + { text: "🗃️ File Tools", link: "/file-tools" }, + { text: "🔗 Internet Tools", link: "/internet-tools" }, + { text: "📝 Text Tools", link: "/text-tools" }, + { text: "👾 Gaming Tools", link: "/gamingpiracyguide#gaming-tools" }, + { text: "📷 Image Tools", link: "/img-tools" }, + { text: "📼 Video Tools", link: "/video-tools" }, + { text: "🔊 Audio Tools", link: "/audio-tools" }, + { text: "🍎 Educational Tools", link: "/edupiracyguide#educational-tools" }, + { text: "👨<200d>💻 Developer Tools", link: "/devtools" }, + ], + }, ], socialLinks: socials, }, diff --git a/FMHY-Index.md b/FMHY-Index.md deleted file mode 100644 index 60fcc2d6d..000000000 --- a/FMHY-Index.md +++ /dev/null @@ -1,163 +0,0 @@ -# [🏴‍☠️ Beginners Guide](https://rentry.org/Piracy-BG) - -**Beginners Guide to Piracy** - -*** -*** - -# [📛 Adblocking / Privacy](https://github.com/fmhy/FMHY/wiki/%F0%9F%93%9B-Adblock---Privacy---Antivirus) - -**Adblocking, Privacy, VPN's, Proxies, Antivirus** - -*** -*** - -# [🤖 Artificial Intelligence](https://github.com/fmhy/FMHY/wiki/%F0%9F%A4%96-Artificial-Intelligence) - -**Chat Bots, Text Generators, Image Generators, ChatGPT Tools** - -*** -*** - -# [📺 Movies / TV / Anime](https://github.com/fmhy/FMHY/wiki/%F0%9F%93%BA-Movies---TV---Anime---Sports) - -**Stream Videos, Download Videos, Torrent Videos** - -*** -*** - -# [🎵 Music / Podcasts / Radio](https://github.com/fmhy/FMHY/wiki/%F0%9F%8E%B5-Music---Podcasts---Radio) - -**Stream Audio, Download Audio, Torrent Audio** - -*** -*** - -# [🎮 Gaming / Emulation](https://github.com/fmhy/FMHY/wiki/%F0%9F%8E%AE-Gaming---Emulation) - -**Download Games, ROMs, Gaming Tools** - -*** -*** - -# [📗 Books / Comics / Manga](https://github.com/fmhy/FMHY/wiki/%F0%9F%93%97-Books---Comics---Manga) - -**Books, Comics, Magazines, Newspapers** - -*** -*** - -# [💾 Downloading](https://github.com/fmhy/FMHY/wiki/%F0%9F%92%BE-Downloading) - -**Download Sites, Software Sites, Open Directories** - -*** -*** - -# [🌀 Torrenting](https://github.com/fmhy/FMHY/wiki/%F0%9F%8C%80-Torrenting) - -**Torrent Clients, Torrent Sites, Trackers** - -*** -*** - -# [🧠 Educational](https://github.com/fmhy/FMHY/wiki/%F0%9F%A7%A0-Educational) - -**Courses, Documentaries, Learning Resources** - -*** -*** - -# [🔧 Tools](https://github.com/fmhy/FMHYedit/blob/main/Tools-Index.md) - -**Internet Tools, System Tools, Audio Tools, Video Tools** - -*** -*** - -# [📱 Android / iOS](https://github.com/fmhy/FMHY/wiki/%F0%9F%93%B1-Android---iOS) - -**Apps, Jailbreaking, Android Emulators** - -*** -*** - -# [🐧 Linux / MacOS](https://github.com/fmhy/FMHY/wiki/%F0%9F%90%A7-Linux---MacOS) - -**Apps, Software Sites, Gaming** - -*** -*** - -# [🌏 Non-English](https://github.com/fmhy/FMHY/wiki/%F0%9F%8C%8F-Non-English) - -**International Piracy Sites** - -*** -*** - -# [📂 Miscellaneous](https://github.com/fmhy/FMHY/wiki/%F0%9F%93%82-Miscellaneous) - -**Extensions, Indexes, News, Health, Food, Fun** - -*** -*** - -# [🔞 NSFW](https://fmhy.pages.dev/nsfwpiracy/) - -**NSFW Sites, Hentai, NoFap** - -*** -*** - -# [⚠️ Unsafe Sites](https://fmhy.pages.dev/unsafesites/) - -**Things we feel should be avoided** - -*** -*** - -# [🔑 Base64](https://fmhy.pages.dev/base64/) - -**Encoded Links Page** - -*** -*** - -# [🗃️ Storage](https://github.com/fmhy/FMHY/wiki/Storage) - -**Wiki Storage Page** - -*** -*** - -# [🔒 Backups](https://github.com/fmhy/FMHY/wiki/Backups) - -**FMHY Backups** - -*** -*** - -# [💬 Discord](https://redd.it/17f8msf) - -**Chat, Get Help, Suggest Sites** - -*** -*** - -**[Search FMHY](https://redd.it/105xraz)** - Search the Entire Wiki - -**[Edit FMHY](https://rentry.co/FMHYedit)** - Make Changes to the Wiki - -**[Site Hunting Guide](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/find-new-sites)** - Help Find New Sites - -*** -*** - -**Emoji Legend:** - -🌐 - 3rd Party Indexes - -↪️ - Storage Page Links - -⭐ - Community Recommendations diff --git a/Tools-Index.md b/Tools-Index.md deleted file mode 100644 index 100932be5..000000000 --- a/Tools-Index.md +++ /dev/null @@ -1,66 +0,0 @@ -# [💻 System Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/system-tools) - -**System Tools, Hardware Tools, Windows ISOs, Customization** - -*** -*** - -# [🗃️ File Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/file-tools) - -**Download Managers, File Hosting, File Archivers** - -*** -*** - -# [🔗 Internet Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/internet-tools) - -**Browsers, Extensions, Search Engines** - -*** -*** - -# [📝 Text Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/text-tools) - -**Text Editors, Pastebins, Fonts, Translators** - -*** -*** - -# [👾 Gaming Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/games#wiki_.25BA_gaming_tools) - -**Gaming Optimization, Game Launchers, Multiplayer** - -*** -*** - -# [📷 Image Tools](https://www.reddit.com//r/FREEMEDIAHECKYEAH/wiki/img-tools) - -**Image Editors, Photography, Wallpapers** - -*** -*** - -# [📼 Video Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/video-tools) - -**Video Players, Video Editors, Live Streaming, Animation** - -*** -*** - -# [🔊 Audio Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/audio-tools) - -**Audio Players, Audio Editors, Audio Downloaders** - -*** -*** - -# [🍎 Educational Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/edu#wiki_.25BA_educational_tools) - -**Study Tools, Research Tools, World Data** - -*** -*** - -# [👨‍💻 Developer Tools](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/dev-tools) - -**Dev Lessons, Programming Resources, Code Editors**