import React from 'react' import { DocsThemeConfig } from 'nextra-theme-docs' import { useConfig } from 'nextra-theme-docs' import { Pre } from './components/pre' const config: DocsThemeConfig = { logo: ( <> Prompt Engineering Guide ), i18n: [ { locale: 'en', text: 'English' }, { locale: 'zh', text: '中文' }, { locale: 'jp', text: '日本語'}, { locale: 'pt', text: 'Português' }, { locale: 'it', text: 'Italian' }, { locale: 'tr', text: 'Türkçe' }, { locale: 'es', text: 'Español' }, { locale: 'fr', text: 'Français' }, { locale: 'kr', text: '한국어' }, { locale: `ca`, text: `Català` }, { locale: 'fi', text: 'Finnish' }, { locale: 'ru', text: 'Русский' }, { locale: 'de', text: 'Deutsch' }, ], head: function UseHead() { const { title } = useConfig() return ( <> {title ? title + ' | Prompt Engineering Guide': 'Prompt Engineering Guide'} )}, project: { link: 'https://github.com/dair-ai/Prompt-Engineering-Guide', }, chat: { link: 'https://discord.gg/FUyz9vPAwf', }, docsRepositoryBase: 'https://github.com/dair-ai/Prompt-Engineering-Guide/tree/main/', footer: { text: 'Copyright © 2024 DAIR.AI', }, search: { placeholder: 'Search...', }, components: { pre: Pre, }, } export default config