Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
path: |
website/public/_optimized
key: ${{ runner.os }}-optimized-images-${{ hashFiles('website/public/images/**', 'website/src/image-optimization/**', 'website/scripts/optimize-images.mjs') }}
key: ${{ runner.os }}-optimized-images-${{ hashFiles('website/public/images/**', 'website/src/image-optimization/**', 'website/scripts/optimize-images.mjs', 'website/yarn.lock') }}
restore-keys: |
${{ runner.os }}-optimized-images-

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { useState, useSyncExternalStore, type FormEvent } from "react";
import { useRouter } from "next/navigation";
import { SolidButton } from "@/src/design-system/Button";
import { Dropdown, DropdownItem } from "@/src/design-system/Dropdown";
import { Input } from "@/src/design-system/Input";
Expand Down Expand Up @@ -81,6 +82,7 @@ const getRequestContextFromUrl = () =>
const getServerRequestContext = () => "";

export function ContactForm() {
const router = useRouter();
const [data, setData] = useState<FormData>(INITIAL);
const [errors, setErrors] = useState<FormErrors>({});
const [isSubmitting, setIsSubmitting] = useState(false);
Expand Down Expand Up @@ -156,7 +158,7 @@ export function ContactForm() {
const showThankYou = () => {
if (!redirected) {
redirected = true;
window.location.assign(THANK_YOU_PATH);
router.push(THANK_YOU_PATH);
}
};

Expand Down
36 changes: 17 additions & 19 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,41 +24,39 @@
},
"dependencies": {
"@chillicream/mocha-visualizer": "file:../src/Mocha/src/mocha-visualizer",
"@docsearch/css": "^4.6.3",
"@docsearch/react": "^4.6.3",
"@fortawesome/fontawesome-svg-core": "^7.1.0",
"@fortawesome/free-solid-svg-icons": "^7.1.0",
"@fortawesome/react-fontawesome": "^3.1.1",
"@docsearch/css": "^4.7.0",
"@docsearch/react": "^4.7.0",
"@fortawesome/fontawesome-svg-core": "^7.3.1",
"@fortawesome/free-solid-svg-icons": "^7.3.1",
"@fortawesome/react-fontawesome": "^3.5.0",
"@mdx-js/loader": "^3.1.1",
"@mdx-js/react": "^3.1.1",
"@next/mdx": "16.2.6",
"@next/third-parties": "16.2.6",
"@types/js-yaml": "^4.0.9",
"@types/mdx": "^2.0.13",
"@xyflow/react": "^12.10.0",
"@next/mdx": "16.3.2",
"@xyflow/react": "^12.11.3",
"elkjs": "^0.11.0",
"gray-matter": "^4.0.3",
"js-yaml": "^4.1.1",
"motion": "^12.40.0",
"next": "16.2.6",
"js-yaml": "^5.3.0",
"motion": "^13.1.1",
"next": "16.3.2",
"next-mdx-remote": "^6.0.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"react": "19.2.8",
"react-dom": "19.2.8",
"remark-gfm": "^4.0.1",
"sharp": "^0.34.5",
"shiki": "^4.0.2",
"styled-components": "^6.4.2"
"sharp": "^0.35.3",
"shiki": "^4.4.3",
"styled-components": "^6.5.3"
},
"devDependencies": {
"@playwright/test": "1.62.1",
"@storybook/nextjs-vite": "10.5.10",
"@tailwindcss/postcss": "^4.3.3",
"@tailwindcss/vite": "^4.3.3",
"@types/mdx": "^2.0.14",
"@types/node": "^24",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"eslint": "^9",
"eslint-config-next": "16.2.6",
"eslint-config-next": "16.3.2",
"eslint-plugin-storybook": "10.5.10",
"http-server": "^14.1.1",
"node-html-markdown": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions website/src/helpers/buildContentTree.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "node:fs";
import path from "node:path";
import yaml from "js-yaml";
import { load } from "js-yaml";

export type TreeNode = {
title: string;
Expand Down Expand Up @@ -39,7 +39,7 @@ function readMeta(dirRel: string): Meta {
if (!fs.existsSync(metaPath)) {
throw new Error(`Missing ${META_FILE} in ${dirRel}`);
}
const parsed = yaml.load(fs.readFileSync(metaPath, "utf-8")) as Meta | null;
const parsed = load(fs.readFileSync(metaPath, "utf-8")) as Meta | null;
if (!parsed || typeof parsed.title !== "string" || !parsed.title.trim()) {
throw new Error(`Invalid ${META_FILE} in ${dirRel}: missing 'title'`);
}
Expand Down
Loading