Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Update the tutorial #34

Mergedfukomerged 22 commits intomain fromrefs/pull/34/headmerged by fuko View on GitHub

Showing 20 changed files with 75 additions and 0 deletions (loading 18).

x
0 of 20 viewed, 20 left
75 additions and 0 deletionssrc/components/tutorial/TutorialTableOfContents.tsxAdded
View file
@@ -0,0 +1,75 @@
+import { ExternalLinkIcon } from "lucide-react";
+import {
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarMenu,
+ SidebarMenuItem,
+ SidebarMenuSub,
+ SidebarMenuSubButton,
+ SidebarMenuSubItem,
+} from "@/components/ui/sidebar";
+import { deepDiveArticles, tutorialArticles } from "@/data/tutorial";
+​
+type TutorialTableOfContentsProps = {
+ activeStep: string | null;
+ onStepChange: (stepTitle: string) => void;
+};
+​
+const sections = [
+ {
+ sectionTitle: "Tutorial",
+ articles: tutorialArticles,
+ },
+ {
+ sectionTitle: "Deep Dive Articles",
+ articles: deepDiveArticles,
+ },