Skip to content

Commit 962f64f

Browse files
pokeyF-Kunkle
andauthored
Cursorless enablement group page (#1660)
See [deploy preview](https://deploy-preview-1660--cursorless.netlify.app/enablement-group) - Also adds support for mdx in our top-level cursorless-org package ## Checklist - [x] Add meta social tags - [x] Use latest logo - [x] Why is logo on social slow? And is it new logo? - [x] Make prices clickable - [x] document that sponsorship levels are yearly - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [-] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [-] I have not broken the cheatsheet --------- Co-authored-by: F-Kunkle <140621314+F-Kunkle@users.noreply.github.com>
1 parent 1453284 commit 962f64f

31 files changed

+721
-44
lines changed

images/logo-white.png

53.8 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { MDXComponents } from "mdx/types";
2+
3+
// This file allows you to provide custom React components
4+
// to be used in MDX files. You can import and use any
5+
// React component you want, including components from
6+
// other libraries.
7+
8+
// This file is required to use MDX in `app` directory.
9+
export function useMDXComponents(components: MDXComponents): MDXComponents {
10+
return {
11+
// Allows customizing built-in components, e.g. to add styling.
12+
// h1: ({ children }) => <h1 style={{ fontSize: "100px" }}>{children}</h1>,
13+
...components,
14+
};
15+
}

packages/cursorless-org/next.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
const withMDX = require("@next/mdx")({
2+
options: {
3+
providerImportSource: "@mdx-js/react",
4+
},
5+
});
6+
17
/** @type {import('next').NextConfig} */
28
const nextConfig = {
39
webpack(config) {
@@ -9,7 +15,10 @@ const nextConfig = {
915

1016
return config;
1117
},
18+
experimental: {
19+
mdxRs: true,
20+
},
1221
reactStrictMode: true,
1322
};
1423

15-
module.exports = nextConfig;
24+
module.exports = withMDX(nextConfig);

packages/cursorless-org/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
},
1515
"dependencies": {
1616
"@cursorless/cheatsheet": "workspace:*",
17+
"@mdx-js/loader": "2.3.0",
18+
"@mdx-js/react": "2.3.0",
19+
"@next/mdx": "13.4.10",
1720
"eslint": "^8.38.0",
1821
"eslint-config-next": "13.5.4",
1922
"next": "13.5.4",
@@ -24,6 +27,8 @@
2427
},
2528
"devDependencies": {
2629
"@svgr/webpack": "6.5.1",
30+
"@types/mdx": "2.0.5",
31+
"@types/mdx-js__react": "1.5.5",
2732
"@types/node": "^16.11.3",
2833
"@types/react": "18.0.28",
2934
"@types/react-dom": "18.0.11",
25.1 KB
Loading
118 KB
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)