initial commit, lesson 1

This commit is contained in:
andres
2023-06-23 17:50:25 +02:00
parent e20bdb8eef
commit e190c8c698
44 changed files with 3424 additions and 498 deletions

View File

@@ -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'
},
},
}