Skip to content

Commit 444e007

Browse files
authored
Rework (#1)
- New Logo. - Migrate to Nextra 4.
1 parent 538d9d0 commit 444e007

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1428
-288
lines changed

mdx-components.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { useMDXComponents as getThemeComponents } from 'nextra-theme-docs' // nextra-theme-blog or your custom theme
2+
3+
// Get the default MDX components
4+
const themeComponents = getThemeComponents()
5+
6+
export const useMDXComponents = components => ({
7+
...themeComponents,
8+
...components
9+
})

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

next.config.mjs

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,19 @@
1-
import nextra from 'nextra';
1+
import nextra from 'nextra'
22

3-
import {BUNDLED_LANGUAGES, getHighlighter} from 'shiki';
3+
import rehypeLuauTooltips from './plugins/luau-tooltips'
44

5-
export default nextra({
6-
theme: 'nextra-theme-docs',
7-
themeConfig: './theme.config.jsx',
5+
const withNextra = nextra({
86
latex: true,
9-
standalone: true,
107
staticImage: true,
11-
flexsearch: {
12-
codeblock: false
8+
search: {
9+
codeblocks: false
1310
},
1411
mdxOptions: {
15-
rehypePrettyCodeOptions: {
16-
getHighlighter: options =>
17-
getHighlighter({
18-
...options,
19-
langs: [
20-
...BUNDLED_LANGUAGES,
21-
{
22-
id: 'luau',
23-
scopeName: 'source.luau',
24-
aliases: [], // Along with id, aliases will be included in the allowed names you can use when writing markdown.
25-
path: '../../public/syntax/luau.tmLanguage.json'
26-
}
27-
]
28-
})
29-
}
30-
}
31-
})({
12+
rehypePlugins: [rehypeLuauTooltips],
13+
},
14+
})
15+
16+
export default withNextra({
3217
images: {
3318
unoptimized: true,
3419
},

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"scripts": {
55
"dev": "next",
66
"build": "next build",
7-
"start": "next start"
7+
"start": "next start",
8+
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind"
89
},
910
"dependencies": {
10-
"@react-aria/ssr": "^3.9.5",
11-
"next": "^14.2.7",
12-
"nextra": "^2.13.4",
13-
"nextra-theme-docs": "^2.13.4",
11+
"next": "^15.1.6",
12+
"nextra": "^4.3.0",
13+
"nextra-theme-docs": "^4.3.0",
1414
"react": "^18.3.1",
1515
"react-dom": "^18.3.1"
1616
},
@@ -23,10 +23,12 @@
2323
}
2424
},
2525
"devDependencies": {
26-
"@types/node": "22.3.0",
27-
"autoprefixer": "^10.4.20",
28-
"postcss": "^8.4.41",
29-
"tailwindcss": "^3.4.10",
30-
"typescript": "5.5.4"
26+
"@tailwindcss/postcss": "^4.0.4",
27+
"@types/node": "^22.13.1",
28+
"@types/react": "^19.0.8",
29+
"pagefind": "^1.3.0",
30+
"postcss": "^8.5.1",
31+
"tailwindcss": "^4.0.4",
32+
"typescript": "^5.7.3"
3133
}
32-
}
34+
}

pages/_app.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

pages/_meta.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

pages/docs/_meta.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

pages/docs/api/_meta.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

pages/guides/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

pages/guides/index.mdx

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)