Skip to content

Commit 1b90437

Browse files
authored
Merge pull request #658 from no-witness-labs/nextra4
Nextra4
2 parents bf1ef5f + fc348ac commit 1b90437

96 files changed

Lines changed: 14795 additions & 5202 deletions

File tree

Some content is hidden

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

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ By contributing to Lucid Evolution, you agree that your contributions will be li
135135

136136
## Questions?
137137

138-
Don't hesitate to ask. You can open an issue or reach out to the maintainers directly. Anastasia Labs team and community actively discuss our opinions in our [Discord](https://discord.gg/s89P9gpEff).
138+
Don't hesitate to ask. You can open an issue or reach out to the maintainers directly. No Witness Labs team and community actively discuss our opinions in our [Discord](https://discord.gg/s89P9gpEff).
139139

140140
Thank you for contributing to Lucid Evolution!

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Anastasia Labs
3+
Copyright (c) 2025 No Witness Labs
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,4 +317,4 @@ Lucid Evolution is licensed under the [MIT License](./LICENSE).
317317

318318
<div style="margin: 20px 0;"></div>
319319

320-
<p align="center">Maintained with ❤️ by <a href="https://anastasialabs.com/">Anastasia Labs</a></p>
320+
<p align="center">Maintained with ❤️ by <a href="https://no-witness-labs.github.io/lucid-evolution/">No Witness Labs</a></p>

docs/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.backup/
2+
.next/
3+
_pagefind/
4+
cache/
5+
node_modules/
6+
out/

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# docs
22

3+
## 4.0.0
4+
5+
### Major Changes
6+
7+
- [#557](https://github.com/Anastasia-Labs/lucid-evolution/issues/557) - Upgrade to Nextra v4
8+
39
## 2.0.0
410

511
### Major Changes

docs/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/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

docs/next.config.js

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

docs/next.config.mjs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
//#region Backup Original
2+
// // @ts-ignore
3+
// const withNextra = require('nextra')({
4+
// theme: 'nextra-theme-docs',
5+
// themeConfig: './theme.config.jsx',
6+
// defaultShowCopyCode: true,
7+
// readingTime: true,
8+
// })
9+
10+
// module.exports = withNextra({
11+
// output: 'export',
12+
// images: { unoptimized: true },
13+
// basePath: "/lucid-evolution",
14+
// })
15+
//#endregion
16+
17+
import nextra from "nextra";
18+
19+
const withNextra = nextra({
20+
codeHighlight: true,
21+
defaultShowCopyCode: true,
22+
latex: true,
23+
mdxOptions: {
24+
rehypePrettyCodeOptions: {
25+
theme: {
26+
dark: "dark-plus",
27+
light: "light-plus",
28+
},
29+
},
30+
},
31+
readingTime: true,
32+
search: {
33+
codeblocks: false,
34+
},
35+
staticImage: true,
36+
});
37+
38+
export default withNextra({
39+
basePath: "/lucid-evolution",
40+
images: {
41+
unoptimized: true,
42+
},
43+
output: "export",
44+
turbopack: {
45+
resolveAlias: {
46+
"next-mdx-import-source-file": "./src/mdx-components.tsx",
47+
},
48+
},
49+
});

docs/package.json

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,43 @@
11
{
22
"name": "docs",
3-
"version": "2.0.0",
3+
"version": "4.0.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
76
"build": "next build",
7+
"postbuild": "next-sitemap && pnpm pagefind-out && pnpm pagefind-public",
8+
"pagefind-out": "pagefind --site .next/server/app --output-path out/_pagefind",
9+
"pagefind-public": "pagefind --site .next/server/app --output-path public/_pagefind",
810
"start": "next start",
11+
"dev": "next dev",
912
"lint": "tsc --noEmit"
1013
},
1114
"dependencies": {
12-
"next": "^14.2.3",
13-
"nextra": "^2.13.4",
14-
"nextra-theme-docs": "^2.13.4",
15-
"react": "^18.3.1",
16-
"react-dom": "^18.3.1"
15+
"clsx": "^2.1.0",
16+
"framer-motion": "^12.0.0",
17+
"next": "15.3.1",
18+
"nextra": "^4.2.17",
19+
"nextra-theme-docs": "^4.2.17",
20+
"react": "19.1.0",
21+
"react-dom": "19.1.0"
1722
},
1823
"devDependencies": {
1924
"@lucid-evolution/eslint-config": "workspace:*",
2025
"@lucid-evolution/typescript-config": "workspace:*",
21-
"@next/eslint-plugin-next": "^14.2.3",
26+
"@next/eslint-plugin-next": "15.3.1",
27+
"@svgr/webpack": "^8.0.1",
28+
"@tailwindcss/postcss": "4.1.4",
2229
"@types/eslint": "^8.56.10",
23-
"@types/node": "^20.12.8",
24-
"@types/react": "^18.3.1",
25-
"@types/react-dom": "^18.3.0",
30+
"@types/node": "^22.0.0",
31+
"@types/react": "^19.0.12",
32+
"@types/react-dom": "^19.0.6",
2633
"eslint": "^8.57.0",
34+
"next-sitemap": "^4.2.3",
35+
"pagefind": "^1.3.0",
36+
"tailwindcss": "4.1.4",
2737
"typescript": "^5.4.5"
28-
}
29-
}
38+
},
39+
"browserslist": [
40+
">= .25%",
41+
"not dead"
42+
]
43+
}

docs/pages/_meta.json

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

0 commit comments

Comments
 (0)