From 5165f6d99cac9a930cbfa5da7c95b76b13a86f0e Mon Sep 17 00:00:00 2001
From: Ethan Davidson <31261035+EthanThatOneKid@users.noreply.github.com>
Date: Fri, 23 Feb 2024 11:29:55 -0800
Subject: [PATCH] convert workshops from yaml to md
---
lib/projects/ssr.tsx | 6 ++---
lib/workshops/ssr.tsx | 20 ++++++++++------
lib/workshops/walk.ts | 13 +++-------
lib/workshops/workshops.ts | 29 +++++++++++++++-------
main.tsx | 14 +++++------
workshops/spring2024.md | 20 ++++++++++++++++
workshops/spring2024.yaml | 14 -----------
workshops/summer2023.md | 48 +++++++++++++++++++++++++++++++++++++
workshops/summer2023.yaml | 49 --------------------------------------
9 files changed, 112 insertions(+), 101 deletions(-)
create mode 100644 workshops/spring2024.md
delete mode 100644 workshops/spring2024.yaml
create mode 100644 workshops/summer2023.md
delete mode 100644 workshops/summer2023.yaml
diff --git a/lib/projects/ssr.tsx b/lib/projects/ssr.tsx
index d34b832..02bd80c 100644
--- a/lib/projects/ssr.tsx
+++ b/lib/projects/ssr.tsx
@@ -1,4 +1,4 @@
-import { CSS, Helmet, render } from "#/deps.ts";
+import { Helmet, render } from "#/deps.ts";
import { withLayout } from "#/lib/shared/layout/mod.ts";
import { PageHeading } from "#/lib/shared/page_heading/mod.ts";
import type { Project } from "./projects.ts";
@@ -117,7 +117,6 @@ function ProjectPageComponent(props: { baseURL: string; project: Project }) {
name="description"
content={props.project.attrs?.description}
/>
-
-
-
+
diff --git a/lib/workshops/ssr.tsx b/lib/workshops/ssr.tsx
index ba86307..4a884d9 100644
--- a/lib/workshops/ssr.tsx
+++ b/lib/workshops/ssr.tsx
@@ -1,4 +1,4 @@
-import { Helmet } from "#/deps.ts";
+import { Helmet, render } from "#/deps.ts";
import { withLayout } from "#/lib/shared/layout/mod.ts";
import { PageHeading } from "#/lib/shared/page_heading/mod.ts";
import type { Workshop, WorkshopGroup } from "./workshops.ts";
@@ -24,7 +24,7 @@ function WorkshopGroupsTableComponent(
.map((group) => (
- {group.groupID}
+ {group.id}
|
{group.workshops.length} |
@@ -94,22 +94,27 @@ function WorkshopGroupTableComponent(
}
function WorkshopGroupPageComponent(
- props: { group: WorkshopGroup },
+ props: { baseURL: string; group: WorkshopGroup },
) {
+ const html = render(props.group.md, { baseUrl: props.baseURL });
return (
- {props.group.groupID} - Open Source Software workshops
+ {props.group.id} - Open Source Software workshops
- {props.group.groupID}
+
+