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
3 changes: 3 additions & 0 deletions website/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Required until docusaurus-markdown-source-plugin declares React 19 in peerDependencies.
# Project uses React 19; the plugin only lists react@^18.0.0.
legacy-peer-deps=true
6 changes: 6 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

import path from 'path';
import {fileURLToPath} from 'url';
import dotenv from 'dotenv';
import {themes as prismThemes} from 'prism-react-renderer';

const __dirname = path.dirname(fileURLToPath(import.meta.url));

dotenv.config();

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
Expand Down Expand Up @@ -289,6 +293,8 @@ const config = {
}),
}),
plugins: [
path.join(__dirname, 'plugins', 'markdown-source-docs.js'),

process.env.POSTHOG_API_KEY && [
"posthog-docusaurus",
{
Expand Down
60 changes: 20 additions & 40 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@giscus/react": "^3.1.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-markdown-source-plugin": "^2.0.1",
"dotenv": "^17.2.3",
"gsap": "^3.13.0",
"posthog-docusaurus": "^2.0.5",
Expand Down
Loading