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
Prev Previous commit
Next Next commit
add install tabs
  • Loading branch information
promer94 committed Dec 9, 2022
commit f0babddf82063633ba5c8d0ed3dcb6d6112a69fc
27 changes: 18 additions & 9 deletions pages/docs/getting-started.en-US.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout, Tabs, Tab } from 'nextra-theme-docs'
import Link from 'next/link'

# Getting Started
Expand All @@ -7,15 +7,24 @@ import Link from 'next/link'

Inside your React project directory, run the following:

```plaintext
yarn add swr
```

Or with npm:
<Tabs items={['pnpm', 'npm', 'yarn']}>
<Tab>
```bash
pnpm i swr
```
</Tab>
<Tab>
```bash
npm i swr
```
</Tab>
<Tab>
```bash
yarn add swr
```
</Tab>
</Tabs>

```plaintext
npm install swr
```

## Quick Start

Expand Down
28 changes: 18 additions & 10 deletions pages/docs/getting-started.es-ES.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout, Tabs, Tab } from 'nextra-theme-docs'
import Link from 'next/link'

# Comienza
Expand All @@ -7,15 +7,23 @@ import Link from 'next/link'

Dentro del directorio de su proyecto React, ejecute lo siguiente:

```plaintext
yarn add swr
```

O con npm

```plaintext
npm install swr
```
<Tabs items={['pnpm', 'npm', 'yarn']}>
<Tab>
```bash
pnpm i swr
```
</Tab>
<Tab>
```bash
npm i swr
```
</Tab>
<Tab>
```bash
yarn add swr
```
</Tab>
</Tabs>

## Inicio rápido

Expand Down
28 changes: 18 additions & 10 deletions pages/docs/getting-started.ja.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout, Tabs, Tab } from 'nextra-theme-docs'
import Link from 'next/link'

# はじめに
Expand All @@ -7,15 +7,23 @@ import Link from 'next/link'

React のプロジェクトディレクトリ内で、以下を実行します:

```plaintext
yarn add swr
```

npm の場合:

```plaintext
npm install swr
```
<Tabs items={['pnpm', 'npm', 'yarn']}>
<Tab>
```bash
pnpm i swr
```
</Tab>
<Tab>
```bash
npm i swr
```
</Tab>
<Tab>
```bash
yarn add swr
```
</Tab>
</Tabs>

## クイックスタート

Expand Down
28 changes: 18 additions & 10 deletions pages/docs/getting-started.ko.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout, Tabs, Tab } from 'nextra-theme-docs'
import Link from 'next/link'

# 시작하기
Expand All @@ -7,15 +7,23 @@ import Link from 'next/link'

React 프로젝트 폴더 안에서 다음을 실행하세요.

```plaintext
yarn add swr
```

npm을 사용한다면

```plaintext
npm install swr
```
<Tabs items={['pnpm', 'npm', 'yarn']}>
<Tab>
```bash
pnpm i swr
```
</Tab>
<Tab>
```bash
npm i swr
```
</Tab>
<Tab>
```bash
yarn add swr
```
</Tab>
</Tabs>

## 빠른 시작

Expand Down
28 changes: 18 additions & 10 deletions pages/docs/getting-started.pt-BR.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout, Tabs, Tab } from 'nextra-theme-docs'
import Link from 'next/link'

# Comece a Usar
Expand All @@ -7,15 +7,23 @@ import Link from 'next/link'

Dentro do diretório do seu projeto React, execute o seguinte:

```plaintext
yarn add swr
```

Ou com npm:

```plaintext
npm install swr
```
<Tabs items={['pnpm', 'npm', 'yarn']}>
<Tab>
```bash
pnpm i swr
```
</Tab>
<Tab>
```bash
npm i swr
```
</Tab>
<Tab>
```bash
yarn add swr
```
</Tab>
</Tabs>

## Início Rápido

Expand Down
28 changes: 18 additions & 10 deletions pages/docs/getting-started.ru.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout, Tabs, Tab } from 'nextra-theme-docs'
import Link from 'next/link'

# Начало работы
Expand All @@ -7,15 +7,23 @@ import Link from 'next/link'

Внутри директории вашего React-проекта, выполните команду:

```plaintext
yarn add swr
```

Или используя npm:

```plaintext
npm install swr
```
<Tabs items={['pnpm', 'npm', 'yarn']}>
<Tab>
```bash
pnpm i swr
```
</Tab>
<Tab>
```bash
npm i swr
```
</Tab>
<Tab>
```bash
yarn add swr
```
</Tab>
</Tabs>

## Быстрый старт

Expand Down
28 changes: 18 additions & 10 deletions pages/docs/getting-started.zh-CN.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs';
import { Callout, Tabs, Tab } from 'nextra-theme-docs';
import Link from "next/link";

# 入门
Expand All @@ -7,15 +7,23 @@ import Link from "next/link";

在 React 项目目录运行以下命令:

```plaintext
yarn add swr
```

或者用 npm:

```plaintext
npm install swr
```
<Tabs items={['pnpm', 'npm', 'yarn']}>
<Tab>
```bash
pnpm i swr
```
</Tab>
<Tab>
```bash
npm i swr
```
</Tab>
<Tab>
```bash
yarn add swr
```
</Tab>
</Tabs>

## 快速开始

Expand Down
17 changes: 17 additions & 0 deletions rename.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import glob from "glob";
import fs from "node:fs/promises";

function findMetaJSON() {
return new Promise((resolve, reject) => {
glob("./**/*.json", {}, function (er, files) {
if (er) reject(e);
resolve(files.filter((v) => v.includes("meta")));
});
});
}

await findMetaJSON().then((files) => {
files.forEach(async (file) => {
fs.rename(file, `${file.replace('meta', '_meta')}`);
});
});
3 changes: 3 additions & 0 deletions theme.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ export default {
toc: {
float: true,
},
editLink: {
text: "Edit this page on GitHub",
},
feedback: {
content: () => {
const { locale } = useRouter();
Expand Down