Make sure you have Node.js installed.
Then install pnpm:
npm install -g pnpmInstall project dependencies:
pnpm ipnpm devVisit http://localhost:3000 in your browser.
- Pages are located in subfolders of
/app, such as/automata,/circuits,/languages,/networks. - Shared layouts and components are under
app/ui/. - Graph data is defined in
app/data/graphData.ts. - MathJax macros are defined in
app/mathjax-config.ts.
To add a new topic page:
- Create a new folder, e.g.
app/networks/rnn - Add a
page.tsxfile that uses theContentLayoutcomponent:
'use client';
import ContentLayout from '@/app/ui/ContentLayout';
export default function Page() {
return (
<ContentLayout
title="Your Topic"
intro={<p>This topic introduces...</p>}
sections={[
{
title: 'Section Title',
content: <p>Section content here...</p>,
},
]}
/>
);
}See app/languages/page.tsx and app/networks/page.tsx for working examples.