From: Athene Allen Date: Wed, 9 Jul 2025 09:11:59 +0000 (+0100) Subject: particlegen too X-Git-Url: https://fortfriendship.online/gitweb/gnargle.github.io.git/commitdiff_plain/e350bf76010d2dbae3f3a0acfe898b565b5ca08d?ds=inline;hp=1f4aee36928fe1b7364944da6e617c4e21dbae5a particlegen too --- diff --git a/SiteTools/ParticleGen/Program.cs b/SiteTools/ParticleGen/Program.cs index cca813a..1005586 100644 --- a/SiteTools/ParticleGen/Program.cs +++ b/SiteTools/ParticleGen/Program.cs @@ -12,7 +12,7 @@ var index = FindFile("index.html"); fileInfos.Add(new Tuple(new FileInfo(index), "https://athene.gay")); var folder = FindDirectory("entries"); -var filePaths = Directory.EnumerateFiles(folder); +var filePaths = Directory.EnumerateFiles(folder, "*.html"); if (filePaths.Any()) { foreach (var path in filePaths) @@ -24,7 +24,7 @@ if (filePaths.Any()) } folder = FindDirectory("projects"); -filePaths = Directory.EnumerateFiles(folder); +filePaths = Directory.EnumerateFiles(folder, "*.html"); if (filePaths.Any()) { foreach (var path in filePaths) @@ -36,7 +36,7 @@ if (filePaths.Any()) } folder = FindDirectory("diversions"); -filePaths = Directory.EnumerateFiles(folder); +filePaths = Directory.EnumerateFiles(folder, "*.html"); if (filePaths.Any()) { foreach (var path in filePaths) @@ -48,7 +48,7 @@ if (filePaths.Any()) } folder = FindDirectory("diversions/hentaigames"); -filePaths = Directory.EnumerateFiles(folder); +filePaths = Directory.EnumerateFiles(folder, "*.html"); if (filePaths.Any()) { foreach (var path in filePaths) @@ -59,7 +59,7 @@ if (filePaths.Any()) } } -List textTags = new List() {"p", "h1", "h2", "h3", "h4"}; +List textTags = new List() { "p", "h1", "h2", "h3", "h4" }; foreach (var file in fileInfos) { @@ -71,7 +71,7 @@ foreach (var file in fileInfos) Title = doc.DocumentNode.SelectSingleNode("//title").InnerText, Content = new List() }; - + TraverseHTML(doc.DocumentNode.SelectSingleNode("//body"), particleRoot, file.Item2); File.WriteAllText(file.Item1.FullName.Replace(".html", ".json"), JsonSerializer.Serialize(particleRoot)); } @@ -107,15 +107,24 @@ void TraverseHTML(HtmlNode traversalNode, ParticleRoot particleRoot, string uriP string FindFile(string fileName) { + //this is so stupid lmao var file = Path.Combine(Directory.GetCurrentDirectory(), $"../{fileName}"); if (!File.Exists(file)) { - file = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../../{fileName}"); + file = Path.Combine(Directory.GetCurrentDirectory(), $"../../{fileName}"); + } + if (!File.Exists(file)) + { + file = Path.Combine(Directory.GetCurrentDirectory(), $"../../../{fileName}"); } if (!File.Exists(file)) { file = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../{fileName}"); } + if (!File.Exists(file)) + { + file = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../../{fileName}"); + } return file; } diff --git a/feed.xml b/feed.xml index 69b2b9c..12f53d3 100644 --- a/feed.xml +++ b/feed.xml @@ -34,14 +34,6 @@ https://athene.gay/diversions/musicivemade.html https://athene.gay/diversions/musicivemade.html - - The Return of the KFC Double Down - OK this is a silly post but my friends asked me for a full - review of the new kfc zinger double down. So here it is. - Wed, 12 Feb 2025 00:00:00 GMT - https://athene.gay/entries/thereturnofthekfcdoubledown.html - https://athene.gay/entries/thereturnofthekfcdoubledown.html - The Life and Death(ish) of Hentai Games Once upon a time, I was a horny teenage boy. Now, I'm a horny adult woman. @@ -57,12 +49,19 @@ https://athene.gay/entries/srb2.html - Youbeat - A while ago, I wanted to adapt arcade game Jubeat for home play, - using a device called a launchpad. - Tue, 28 Jan 2025 00:00:00 GMT - https://athene.gay/projects/youbeat.html - https://athene.gay/projects/youbeat.html + The Return of the KFC Double Down + OK this is a silly post but my friends asked me for a full + review of the new kfc zinger double down. So here it is. + Wed, 12 Feb 2025 00:00:00 GMT + https://athene.gay/entries/thereturnofthekfcdoubledown.html + https://athene.gay/entries/thereturnofthekfcdoubledown.html + + + It's 2025 and I am playing a D&D Game... + ... and it's not Baldurs Gate 3; it is, however, equally 7/10. + Sat, 01 Feb 2025 00:00:00 GMT + https://athene.gay/entries/danddgames.html + https://athene.gay/entries/danddgames.html Athene.Gay @@ -72,12 +71,12 @@ https://athene.gay/projects/thiswebsite.html - FFXIV Plugins - I currently maintain two silly little plugins for Final Fantasy - XIV. + Youbeat + A while ago, I wanted to adapt arcade game Jubeat for home play, + using a device called a launchpad. Tue, 28 Jan 2025 00:00:00 GMT - https://athene.gay/projects/dalamudplugins.html - https://athene.gay/projects/dalamudplugins.html + https://athene.gay/projects/youbeat.html + https://athene.gay/projects/youbeat.html Miku Expo @@ -87,11 +86,12 @@ https://athene.gay/entries/miku.html - It's 2025 and I am playing a D&D Game... - ... and it's not Baldurs Gate 3; it is, however, equally 7/10. - Sat, 01 Feb 2025 00:00:00 GMT - https://athene.gay/entries/danddgames.html - https://athene.gay/entries/danddgames.html + FFXIV Plugins + I currently maintain two silly little plugins for Final Fantasy + XIV. + Tue, 28 Jan 2025 00:00:00 GMT + https://athene.gay/projects/dalamudplugins.html + https://athene.gay/projects/dalamudplugins.html Bringing Static Websites Back