Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextra 2 #390

Merged
merged 21 commits into from
Feb 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
upgrade to nextra v2
  • Loading branch information
promer94 committed Dec 9, 2022
commit 56b3355ce9e8d3f1424b60a90776ab5711f1562d
10 changes: 7 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.js",
unstable_flexsearch: true,
unstable_staticImage: true,
staticImage: true,
flexsearch: {
codeblocks: false,
},
defaultShowCopyCode: true,
});

module.exports = withNextra({
Expand Down Expand Up @@ -35,7 +38,7 @@ module.exports = withNextra({
{
source: "/docs/options",
destination: "/docs/api",
statusCode: 301
statusCode: 301,
},
{
source: "/change-log",
Expand All @@ -59,4 +62,5 @@ module.exports = withNextra({
},
];
},
reactStrictMode: true,
});
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
"focus-visible": "^5.1.0",
"intersection-observer": "^0.10.0",
"markdown-to-jsx": "^6.11.4",
"next": "^12.2.0",
"nextra": "^2.0.0-beta.6",
"nextra-theme-docs": "^2.0.0-beta.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"next": "^13.0.6",
"nextra": "^2.0.1",
"nextra-theme-docs": "^2.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intersection-observer": "^8.26.2"
},
"devDependencies": {
"autoprefixer": "^10.4.2",
"postcss": "^8.4.5",
"tailwindcss": "^3.0.16"
"autoprefixer": "^10.4.13",
"postcss": "^8.4.19",
"tailwindcss": "^3.2.4"
},
"prettier": {
"embeddedLanguageFormatting": "off",
Expand Down
3 changes: 1 addition & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import "../styles.css";
import "nextra-theme-docs/style.css";

export default function Nextra({ Component, pageProps }) {
const getLayout = Component.getLayout || ((page) => page);
return getLayout(<Component {...pageProps} />);
return <Component {...pageProps} />;
}
3 changes: 2 additions & 1 deletion pages/meta.en-US.json → pages/_meta.en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"index": {
"title": "Introduction",
"type": "page",
"hidden": true
"hidden": true,
promer94 marked this conversation as resolved.
Show resolved Hide resolved
"display": "hidden"
},
"docs": {
"title": "Docs",
Expand Down
3 changes: 2 additions & 1 deletion pages/meta.es-ES.json → pages/_meta.es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"index": {
"title": "Introducción",
"type": "page",
"hidden": true
"hidden": true,
promer94 marked this conversation as resolved.
Show resolved Hide resolved
"display": "hidden"
},
"docs": {
"title": "Docs",
Expand Down
3 changes: 2 additions & 1 deletion pages/meta.ja.json → pages/_meta.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"index": {
"title": "前書き",
"type": "page",
"hidden": true
"hidden": true,
promer94 marked this conversation as resolved.
Show resolved Hide resolved
"display": "hidden"
},
"docs": {
"title": "ドキュメント",
Expand Down
3 changes: 2 additions & 1 deletion pages/meta.ko.json → pages/_meta.ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"index": {
"title": "소개",
"type": "page",
"hidden": true
"hidden": true,
promer94 marked this conversation as resolved.
Show resolved Hide resolved
"display": "hidden"
},
"docs": {
"title": "문서",
Expand Down
3 changes: 2 additions & 1 deletion pages/meta.pt-BR.json → pages/_meta.pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"index": {
"title": "Introdução",
"type": "page",
"hidden": true
"hidden": true,
promer94 marked this conversation as resolved.
Show resolved Hide resolved
"display": "hidden"
},
"docs": {
"title": "Documentação",
Expand Down
3 changes: 2 additions & 1 deletion pages/meta.ru.json → pages/_meta.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"index": {
"title": "Введение",
"type": "page",
"hidden": true
"hidden": true,
promer94 marked this conversation as resolved.
Show resolved Hide resolved
"display": "hidden"
},
"docs": {
"title": "Документация",
Expand Down
5 changes: 3 additions & 2 deletions pages/meta.zh-CN.json → pages/_meta.zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"index": {
"title": "简介",
"type": "page",
"hidden": true
"hidden": true,
promer94 marked this conversation as resolved.
Show resolved Hide resolved
"display": "hidden"
},
"docs": {
"title": "文档",
Expand All @@ -19,4 +20,4 @@
"sidebar": false
}
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pages/blog/swr-v1.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Almost 2 years ago we open sourced SWR, the tiny data-fetching Rea
date: August 27th, 2021
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'

Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v1.es-ES.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Almost 2 years ago we open sourced SWR, the tiny data-fetching Rea
date: August 27th, 2021
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'

Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v1.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'ほぼ二年前、みんなが愛する小さなデータフェッ
date: August 27th, 2021
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'

Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v1.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: '약 2년 전에 우리는 사람들이 사랑하는 조그만 데
date: 2021년 8월 27일
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'

Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v1.pt-BR.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Há quase 2 anos, abrimos o SWR para código aberto, a pequena bib
date: 27 de Agosto de 2021
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'

Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v1.ru.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Почти 2 года назад мы сделали SWR — кр
date: August 27th, 2021
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'

Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v1.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: '大约两年前,我们开源了 SWR——广受大家喜爱的
date: August 27th, 2021
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'

Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v2.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Announcing SWR 2.0: new mutation APIs and improvd optimistic UI ca
date: December 9th, 2022
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'
import Video from 'components/video'
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v2.es-ES.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Announcing SWR 2.0: new mutation APIs and improvd optimistic UI ca
date: December 9th, 2022
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'
import Video from 'components/video'
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v2.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Announcing SWR 2.0: new mutation APIs and improvd optimistic UI ca
date: December 9th, 2022
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'
import Video from 'components/video'
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v2.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Announcing SWR 2.0: new mutation APIs and improvd optimistic UI ca
date: December 9th, 2022
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'
import Video from 'components/video'
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v2.pt-BR.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Announcing SWR 2.0: new mutation APIs and improvd optimistic UI ca
date: December 9th, 2022
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'
import Video from 'components/video'
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v2.ru.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Announcing SWR 2.0: new mutation APIs and improvd optimistic UI ca
date: December 9th, 2022
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'
import Video from 'components/video'
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/swr-v2.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: 'Announcing SWR 2.0: new mutation APIs and improvd optimistic UI ca
date: December 9th, 2022
---

import Callout from 'nextra-theme-docs/callout'
import Bleed from 'nextra-theme-docs/bleed'
import { Callout } from 'nextra-theme-docs'
import { Bleed } from 'nextra-theme-docs'

import Authors, { Author } from 'components/authors'
import Video from 'components/video'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pages/docs/advanced/cache.en-US.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# Cache

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/cache.ja.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# Cache

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/cache.ko.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# 캐시

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/cache.pt-BR.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# Cache

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/cache.ru.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# Кеш

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/cache.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# 缓存

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/devtools.en-US.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# DevTools

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/devtools.es-ES.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# DevTools

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/devtools.ja.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# 開発者ツール

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/devtools.ko.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# DevTools

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/devtools.pt-BR.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# DevTools

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/devtools.ru.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# DevTools

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/devtools.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# DevTools

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/react-native.en-US.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# React Native

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/react-native.ja.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# React Native

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/react-native.ko.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# React Native

Expand Down
2 changes: 1 addition & 1 deletion pages/docs/advanced/react-native.pt-BR.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Callout from 'nextra-theme-docs/callout'
import { Callout } from 'nextra-theme-docs'

# React Native

Expand Down
Loading