From bcdd1940434da7992254079ad527a91df5e16d16 Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 14:39:31 -0300 Subject: [PATCH 01/11] testing stuff --- .github/workflows/deploy.yml | 5 ++++- gen-webring-routes.js | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 gen-webring-routes.js diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 86e430b..2c606df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages on: push: branches: - - main + - webring-test # Review gh actions docs if you want to further define triggers, paths, etc # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on @@ -20,6 +20,9 @@ jobs: node-version: 18 cache: npm + - name: test thing + run: node gen-webring-routes.js + - name: Install dependencies run: npm ci - name: Build website diff --git a/gen-webring-routes.js b/gen-webring-routes.js new file mode 100644 index 0000000..70f7964 --- /dev/null +++ b/gen-webring-routes.js @@ -0,0 +1,7 @@ +import fs from "fs"; + +function makeRoute() { + fs.appendFileSync('./static/test.html', 'Hello world!'); +} + +makeRoute(); \ No newline at end of file From c65190c5fe475b901dfde991315fffb15169b264 Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 14:40:36 -0300 Subject: [PATCH 02/11] node sucks --- gen-webring-routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-webring-routes.js b/gen-webring-routes.js index 70f7964..adad3e4 100644 --- a/gen-webring-routes.js +++ b/gen-webring-routes.js @@ -1,4 +1,4 @@ -import fs from "fs"; +const fs = require("fs"); function makeRoute() { fs.appendFileSync('./static/test.html', 'Hello world!'); From c33f8d4ee4d30574d6dab0736a1f1e065d62ca77 Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 15:02:56 -0300 Subject: [PATCH 03/11] froglist --- gen-webring-routes.js | 16 +++++++++++++--- static/webring/froglist.json | 26 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 static/webring/froglist.json diff --git a/gen-webring-routes.js b/gen-webring-routes.js index adad3e4..5ddddbb 100644 --- a/gen-webring-routes.js +++ b/gen-webring-routes.js @@ -1,7 +1,17 @@ const fs = require("fs"); -function makeRoute() { - fs.appendFileSync('./static/test.html', 'Hello world!'); +// Import ze froges +const frogs = require("static/webring/froglist.json"); + +function makeRoutes(frog, nextFrog, prevFrog) { + fs.appendFileSync(`./static/webring/frogs/${frog.name}.html`, frog.url); + fs.appendFileSync(`./static/webring/frogs/${frog.name}/next.html`, nextFrog.url); + fs.appendFileSync(`./static/webring/frogs/${frog.name}/prev.html`, prevFrog.url); } -makeRoute(); \ No newline at end of file +frogs.forEach((frog, i) => { + const nextFrog = frogs.at((i + 1) % frogs.length); + const prevFrog = frogs.at(i - 1); // array.at(-1) returns the last element + + makeRoutes(frog, nextFrog, prevFrog); +}); \ No newline at end of file diff --git a/static/webring/froglist.json b/static/webring/froglist.json new file mode 100644 index 0000000..ca1f541 --- /dev/null +++ b/static/webring/froglist.json @@ -0,0 +1,26 @@ +[ + { + "name": "gp-blog", + "url": "https://graphics-programming.org/" + }, + { + "name": "bluescreen", + "url": "https://fumagalli.ar/" + }, + { + "name": "test1", + "url": "https://test1.frog/" + }, + { + "name": "test2", + "url": "https://test2.frog/" + }, + { + "name": "test3", + "url": "https://test3.frog/" + }, + { + "name": "test4", + "url": "https://test4.frog/" + } +] \ No newline at end of file From b2f97cbcc5c877fde46b9b432840f7210495f2bf Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 15:03:44 -0300 Subject: [PATCH 04/11] idk how to ci --- gen-webring-routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-webring-routes.js b/gen-webring-routes.js index 5ddddbb..77d345c 100644 --- a/gen-webring-routes.js +++ b/gen-webring-routes.js @@ -1,7 +1,7 @@ const fs = require("fs"); // Import ze froges -const frogs = require("static/webring/froglist.json"); +const frogs = require("./static/webring/froglist.json"); function makeRoutes(frog, nextFrog, prevFrog) { fs.appendFileSync(`./static/webring/frogs/${frog.name}.html`, frog.url); From bb011bc0905a6d70e183ede318f6a8577ce5ed89 Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 15:08:50 -0300 Subject: [PATCH 05/11] idk how to file --- gen-webring-routes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gen-webring-routes.js b/gen-webring-routes.js index 77d345c..514f544 100644 --- a/gen-webring-routes.js +++ b/gen-webring-routes.js @@ -4,6 +4,7 @@ const fs = require("fs"); const frogs = require("./static/webring/froglist.json"); function makeRoutes(frog, nextFrog, prevFrog) { + fs.mkdir(`./static/webring/frogs/${frog.name}`, { recursive: true }); fs.appendFileSync(`./static/webring/frogs/${frog.name}.html`, frog.url); fs.appendFileSync(`./static/webring/frogs/${frog.name}/next.html`, nextFrog.url); fs.appendFileSync(`./static/webring/frogs/${frog.name}/prev.html`, prevFrog.url); From b49ba93f0dd3d35ca4c6f67fafcd06f89e53b6ae Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 15:09:30 -0300 Subject: [PATCH 06/11] i frogot the sync --- gen-webring-routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-webring-routes.js b/gen-webring-routes.js index 514f544..44fe7d5 100644 --- a/gen-webring-routes.js +++ b/gen-webring-routes.js @@ -4,7 +4,7 @@ const fs = require("fs"); const frogs = require("./static/webring/froglist.json"); function makeRoutes(frog, nextFrog, prevFrog) { - fs.mkdir(`./static/webring/frogs/${frog.name}`, { recursive: true }); + fs.mkdirSync(`./static/webring/frogs/${frog.name}`, { recursive: true }); fs.appendFileSync(`./static/webring/frogs/${frog.name}.html`, frog.url); fs.appendFileSync(`./static/webring/frogs/${frog.name}/next.html`, nextFrog.url); fs.appendFileSync(`./static/webring/frogs/${frog.name}/prev.html`, prevFrog.url); From b4ea9e80cb3e116a869a6ff952fcd7434123e07b Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 15:21:49 -0300 Subject: [PATCH 07/11] make html redirects --- gen-webring-routes.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/gen-webring-routes.js b/gen-webring-routes.js index 44fe7d5..7d36363 100644 --- a/gen-webring-routes.js +++ b/gen-webring-routes.js @@ -3,11 +3,31 @@ const fs = require("fs"); // Import ze froges const frogs = require("./static/webring/froglist.json"); +function makeHtmlRedirect(frog) { + return ` + + + + + + + Page Redirection + + + + If you are not redirected automatically, follow this link. + + `; +} + function makeRoutes(frog, nextFrog, prevFrog) { fs.mkdirSync(`./static/webring/frogs/${frog.name}`, { recursive: true }); - fs.appendFileSync(`./static/webring/frogs/${frog.name}.html`, frog.url); - fs.appendFileSync(`./static/webring/frogs/${frog.name}/next.html`, nextFrog.url); - fs.appendFileSync(`./static/webring/frogs/${frog.name}/prev.html`, prevFrog.url); + fs.appendFileSync(`./static/webring/frogs/${frog.name}.html`, makeHtmlRedirect(frog)); + fs.appendFileSync(`./static/webring/frogs/${frog.name}/next.html`, makeHtmlRedirect(nextFrog)); + fs.appendFileSync(`./static/webring/frogs/${frog.name}/prev.html`, makeHtmlRedirect(prevFrog)); } frogs.forEach((frog, i) => { From 3062cdb5aff238aa0a8392b571768c5f5f176367 Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 16:11:03 -0300 Subject: [PATCH 08/11] rm test frogs --- static/webring/froglist.json | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/static/webring/froglist.json b/static/webring/froglist.json index ca1f541..da742fb 100644 --- a/static/webring/froglist.json +++ b/static/webring/froglist.json @@ -6,21 +6,5 @@ { "name": "bluescreen", "url": "https://fumagalli.ar/" - }, - { - "name": "test1", - "url": "https://test1.frog/" - }, - { - "name": "test2", - "url": "https://test2.frog/" - }, - { - "name": "test3", - "url": "https://test3.frog/" - }, - { - "name": "test4", - "url": "https://test4.frog/" } ] \ No newline at end of file From c138cc39d4007cfc5d6b21cef1024ba221a0b85d Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 16:12:23 -0300 Subject: [PATCH 09/11] switch deploy branch back to main --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2c606df..51a3137 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages on: push: branches: - - webring-test + - main # Review gh actions docs if you want to further define triggers, paths, etc # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on From dbf88349cf7b8e9fc3eeff04173065e1f55a6bb3 Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Sun, 9 Mar 2025 16:26:44 -0300 Subject: [PATCH 10/11] added webring buttons --- src/pages/index.tsx | 16 ++++++++++++++++ static/img/froge.webp | Bin 0 -> 3992 bytes 2 files changed, 16 insertions(+) create mode 100644 static/img/froge.webp diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 2c3f6c1..1d2fc91 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -43,6 +43,22 @@ export default function Home(): JSX.Element {
+ +
); diff --git a/static/img/froge.webp b/static/img/froge.webp new file mode 100644 index 0000000000000000000000000000000000000000..6e2deb09f8546f5851cdcf11c2ab75a05e15d20e GIT binary patch literal 3992 zcmV;J4`=XFNk&GH4*&pHMM6+kP&il$0000G0001g003qH06|PpNRtHs00HnsZM$jP zwrzcX{&T~yZQHhOkIe$MbbFP*;qaQ;UAx~%Q^s{GBg44=cG9Y+*7-; zefAaK*fRi8hC{LPU9`+$bxY%!Tnc3LJ$Dn=Va>^ekZeMV{I4#-BiY6~cy7nA!B% zr!ObcBgKVGY<}Zc5qlG`?t<(E$o}5ANKaI5ps|4Nd0T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zSIF8~tO z>DVevEa}S@-z2Eb#u4I2bg_jm9n$|DIjh)3HW5jINhR=wSiQ?b)Cmh&puhmRh$V1c zw$fI7q$YUFL#km1uXsCy?v3ETdNo3PTBX6lnpE>9^{iH-gt(rECvniEe_kOf z9D+QAz^4NpXP8aAxRRZ7kP3ES&X>5P0h{S~NsHke)X_!!v48%$@7|j4^PJzU{CI=6 y`dspN?AiF8$B#ch!}7LJKYx}m$@bg8S&aUPvKmtxVqyLTpZmZd000000002)_T~lv literal 0 HcmV?d00001 From 3fb4d83478cc527b56fb706ea08629de3eb72e55 Mon Sep 17 00:00:00 2001 From: Teo Fumagalli Date: Wed, 9 Apr 2025 13:48:38 -0300 Subject: [PATCH 11/11] webring index page --- docusaurus.config.ts | 152 ++++++++++++++++++----------------- src/pages/webring.tsx | 41 ++++++++++ static/webring/froglist.json | 11 ++- 3 files changed, 129 insertions(+), 75 deletions(-) create mode 100644 src/pages/webring.tsx diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ef64ed8..82c8b01 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,149 +1,159 @@ -import {themes as prismThemes} from 'prism-react-renderer'; -import type {Config} from '@docusaurus/types'; -import type * as Preset from '@docusaurus/preset-classic'; -import remarkMath from 'remark-math'; -import rehypeKatex from 'rehype-katex'; +import { themes as prismThemes } from "prism-react-renderer"; +import type { Config } from "@docusaurus/types"; +import type * as Preset from "@docusaurus/preset-classic"; +import remarkMath from "remark-math"; +import rehypeKatex from "rehype-katex"; const config: Config = { - title: 'Graphics Programming Discord', - tagline: 'Articles, guides, tips and tricks from and for frogs and forgis of the graphics programming discord. This is what we do:', - favicon: 'img/favicon.ico', + title: "Graphics Programming Discord", + tagline: + "Articles, guides, tips and tricks from and for frogs and forgis of the graphics programming discord. This is what we do:", + favicon: "img/favicon.ico", // Set the production url of your site here - url: 'https://graphicsprogramming.github.io/', + url: "https://graphicsprogramming.github.io/", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/', + baseUrl: "/", // GitHub pages deployment config. - organizationName: 'GraphicsProgramming', - projectName: 'blog', - deploymentBranch: 'gh-pages', + organizationName: "GraphicsProgramming", + projectName: "blog", + deploymentBranch: "gh-pages", trailingSlash: false, - onBrokenLinks: 'warn', - onBrokenMarkdownLinks: 'warn', + onBrokenLinks: "warn", + onBrokenMarkdownLinks: "warn", - plugins: [[ require.resolve('docusaurus-lunr-search'), { - languages: ['en'] // language codes - }]], + plugins: [ + [ + require.resolve("docusaurus-lunr-search"), + { + languages: ["en"], // language codes + }, + ], + ], // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans". i18n: { - defaultLocale: 'en', - locales: ['en'], + defaultLocale: "en", + locales: ["en"], }, stylesheets: [ { - href: 'https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css', - type: 'text/css', + href: "https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css", + type: "text/css", integrity: - 'sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+', - crossorigin: 'anonymous', - } + "sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+", + crossorigin: "anonymous", + }, ], presets: [ [ - 'classic', + "classic", { docs: { - routeBasePath: 'docs', - sidebarPath: './sidebars.ts', + routeBasePath: "docs", + sidebarPath: "./sidebars.ts", }, blog: { showLastUpdateTime: true, showLastUpdateAuthor: true, showReadingTime: true, feedOptions: { - type: ['rss', 'atom'], + type: ["rss", "atom"], xslt: true, }, // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/GraphicsProgramming/blog', + editUrl: "https://github.com/GraphicsProgramming/blog", // Useful options to enforce blogging best practices - onInlineTags: 'warn', - onInlineAuthors: 'warn', - onUntruncatedBlogPosts: 'warn', + onInlineTags: "warn", + onInlineAuthors: "warn", + onUntruncatedBlogPosts: "warn", //routeBasePath: '/', - blogSidebarCount: 'ALL', + blogSidebarCount: "ALL", remarkPlugins: [remarkMath], rehypePlugins: [rehypeKatex], }, theme: { - customCss: './src/css/custom.css', + customCss: "./src/css/custom.css", }, sitemap: { - changefreq: 'always' - } + changefreq: "always", + }, } satisfies Preset.Options, ], ], themeConfig: { colorMode: { - defaultMode: 'dark', + defaultMode: "dark", respectPrefersColorScheme: true, }, - image: 'img/social-embed.png', + image: "img/social-embed.png", navbar: { - title: 'Graphics Programming', + title: "Graphics Programming", logo: { - alt: 'Graphics Programming', - src: 'img/gp-discord-logo.webp', + alt: "Graphics Programming", + src: "img/gp-discord-logo.webp", }, items: [ { - to: '/blog', - label: 'Blog', - position: 'left' + to: "/blog", + label: "Blog", + position: "left", + }, + { + type: "docSidebar", + sidebarId: "discordServer", + position: "left", + label: "Discord Server", }, { - type: 'docSidebar', - sidebarId: 'discordServer', - position: 'left', - label: 'Discord Server', + type: "docSidebar", + sidebarId: "communityProjects", + position: "left", + label: "Community Projects", }, { - type: 'docSidebar', - sidebarId: 'communityProjects', - position: 'left', - label: 'Community Projects' - } + to: "/webring", + label: "Webring", + position: "left", + }, ], }, footer: { - style: 'dark', + style: "dark", links: [ { - title: 'Community', + title: "Community", items: [ { - label: 'Discord', - href: 'https://discord.com/invite/graphicsprogramming', + label: "Discord", + href: "https://discord.com/invite/graphicsprogramming", }, { - label: 'YouTube', - href: 'https://www.youtube.com/@graphicsprogramming9074', + label: "YouTube", + href: "https://www.youtube.com/@graphicsprogramming9074", }, { - label: 'Twitter', - href: 'https://x.com/i/communities/1500963350825472000' - } + label: "Twitter", + href: "https://x.com/i/communities/1500963350825472000", + }, ], }, { - title: 'More', + title: "More", items: [ { - label: 'Blog', - to: 'https://graphics-programming.org/', + label: "Blog", + to: "https://graphics-programming.org/", }, { - label: 'GitHub', - href: 'https://github.com/GraphicsProgramming', + label: "GitHub", + href: "https://github.com/GraphicsProgramming", }, ], }, @@ -153,9 +163,7 @@ const config: Config = { prism: { theme: prismThemes.duotoneLight, darkTheme: prismThemes.duotoneDark, - additionalLanguages: [ - 'glsl' - ] + additionalLanguages: ["glsl"], }, } satisfies Preset.ThemeConfig, }; diff --git a/src/pages/webring.tsx b/src/pages/webring.tsx new file mode 100644 index 0000000..2df0518 --- /dev/null +++ b/src/pages/webring.tsx @@ -0,0 +1,41 @@ +import React from "react"; +import Layout from "@theme/Layout"; + +import froglist from "/static/webring/froglist.json"; + +export default function Hello() { + return ( + +
+

Graphics Programming Webring

+ +
+
+ ); +} diff --git a/static/webring/froglist.json b/static/webring/froglist.json index da742fb..789a689 100644 --- a/static/webring/froglist.json +++ b/static/webring/froglist.json @@ -1,10 +1,15 @@ [ { "name": "gp-blog", - "url": "https://graphics-programming.org/" + "url": "https://graphics-programming.org/", + "displayName": "Graphics Programming Blog", + "description": "The official site for the Graphics Programming discord" }, { "name": "bluescreen", - "url": "https://fumagalli.ar/" + "url": "https://fumagalli.ar/", + "displayName": "Teo Fumagalli (bluescreen)", + "description": "Hi! I made a website with stuff in it" } -] \ No newline at end of file +] +