Skip to content
Open
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
119 changes: 119 additions & 0 deletions .source/index.ts

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions .source/source.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// source.config.ts
import { defineDocs, defineConfig } from "fumadocs-mdx/config";
var { docs: docsCollection, meta: docsMeta } = defineDocs({
dir: "src/content/docs"
});
var { docs: blocksCollection, meta: blocksMeta } = defineDocs({
dir: "src/content/blocks"
});
var source_config_default = defineConfig();
export {
blocksCollection,
blocksMeta,
source_config_default as default,
docsCollection,
docsMeta
};
18 changes: 8 additions & 10 deletions next.config.ts → next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import nextra from 'nextra';
import { createMDX } from 'fumadocs-mdx/next';

const withNextra = nextra({
latex: true,
defaultShowCopyCode: true
});
const withMDX = createMDX();

const nextConfig = withNextra({
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,

// Rewrites required for PostHog ingestion endpoints
Expand All @@ -26,9 +24,9 @@ const nextConfig = withNextra({
];
},

webpack(config, { isServer }) {
webpack(config) {
// Grab the existing rule that handles SVG imports
const fileLoaderRule = config.module.rules.find((rule: any) =>
const fileLoaderRule = config.module.rules.find((rule) =>
rule.test?.test?.('.svg')
);

Expand All @@ -53,6 +51,6 @@ const nextConfig = withNextra({

return config;
}
});
};

export default nextConfig;
export default withMDX(nextConfig);
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@
"@storybook/preview-api": "^8.6.14",
"clsx": "^2.1.0",
"date-fns": "^3.6.0",
"fumadocs-core": "^15.0.0",
"fumadocs-mdx": "^11.0.0",
"fumadocs-ui": "^15.0.0",
"lucide-react": "^0.468.0",
"motion": "^12.5.0",
"next": "^15.3.3",
"nextra": "^4.2.17",
"posthog-js": "^1.256.2",
"posthog-node": "^5.2.1",
"reablocks": "9.3.0",
"reablocks-docs-theme": "^2.2.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-hook-form": "^7.60.0",
Expand Down
Loading