mirror of
https://github.com/ershisan99/flashcards-docs.git
synced 2025-12-16 20:59:26 +00:00
initial commit, lesson 1
This commit is contained in:
@@ -1,17 +1,66 @@
|
||||
import React from 'react'
|
||||
|
||||
import { useRouter } from 'next/router'
|
||||
import { DocsThemeConfig } from 'nextra-theme-docs'
|
||||
|
||||
const config: DocsThemeConfig = {
|
||||
logo: <span>My Project</span>,
|
||||
logo: <span>Flashcards docs</span>,
|
||||
project: {
|
||||
link: 'https://github.com/shuding/nextra-docs-template',
|
||||
link: 'https://github.com/ershisan99/cards-front-new/tree/master',
|
||||
},
|
||||
chat: {
|
||||
link: 'https://discord.com',
|
||||
},
|
||||
docsRepositoryBase: 'https://github.com/shuding/nextra-docs-template',
|
||||
i18n: [
|
||||
{ locale: 'en', text: 'English' },
|
||||
{ locale: 'ru', text: 'Русский' },
|
||||
],
|
||||
docsRepositoryBase: 'https://github.com/ershisan99/flashcards-docs',
|
||||
footer: {
|
||||
text: 'Nextra Docs Template',
|
||||
text: 'Powered by Nextra',
|
||||
},
|
||||
search: {
|
||||
placeholder: () => {
|
||||
const { locale } = useRouter()
|
||||
|
||||
if (locale === 'ru') {
|
||||
return 'Поиск...'
|
||||
}
|
||||
|
||||
return 'Search...'
|
||||
},
|
||||
},
|
||||
toc: {
|
||||
title: () => {
|
||||
const { locale } = useRouter()
|
||||
|
||||
if (locale === 'ru') {
|
||||
return <>Cодержание</>
|
||||
}
|
||||
|
||||
return <>On This Page</>
|
||||
},
|
||||
},
|
||||
editLink: {
|
||||
// @ts-ignore
|
||||
text: () => {
|
||||
const { locale } = useRouter()
|
||||
|
||||
if (locale === 'ru') {
|
||||
return 'Редактировать эту страницу'
|
||||
}
|
||||
|
||||
return 'Edit this page'
|
||||
},
|
||||
},
|
||||
feedback: {
|
||||
// @ts-ignore
|
||||
content: () => {
|
||||
const { locale } = useRouter()
|
||||
|
||||
if (locale === 'ru') {
|
||||
return 'Отправить отзыв'
|
||||
}
|
||||
|
||||
return 'Send feedback'
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user