Prompt-Engineering-Guide/theme.config.tsx

74 lines
2.3 KiB
TypeScript
Raw Permalink Normal View History

2023-03-11 07:22:18 +08:00
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
2023-03-14 11:13:09 +08:00
import { useConfig } from 'nextra-theme-docs'
2023-10-10 12:40:16 +08:00
import { Pre } from './components/pre'
2023-03-11 07:22:18 +08:00
const config: DocsThemeConfig = {
2023-03-13 03:14:15 +08:00
logo: (
<>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 206 246" fill="none">
<circle cx="40" cy="40" r="40" fill="currentColor"/>
<circle cx="40" cy="206" r="40" fill="currentColor"/>
<circle cx="166" cy="120" r="40" fill="currentColor"/>
</svg>
<span style={{ marginLeft: '.4em', fontWeight: 800 }}>
Prompt Engineering Guide
</span>
</>
),
2023-03-31 08:43:20 +08:00
i18n: [
{ locale: 'en', text: 'English' },
2023-04-05 00:18:11 +08:00
{ locale: 'zh', text: '中文' },
2023-04-05 04:47:21 +08:00
{ locale: 'jp', text: '日本語'},
{ locale: 'pt', text: 'Português' },
2023-04-14 01:03:00 +08:00
{ locale: 'it', text: 'Italian' },
2023-04-10 10:39:15 +08:00
{ locale: 'tr', text: 'Türkçe' },
{ locale: 'es', text: 'Español' },
2023-04-23 04:34:24 +08:00
{ locale: 'fr', text: 'Français' },
2023-04-23 05:09:10 +08:00
{ locale: 'kr', text: '한국어' },
2023-05-12 23:06:22 +08:00
{ locale: `ca`, text: `Català` },
2023-05-20 03:24:17 +08:00
{ locale: 'fi', text: 'Finnish' },
2023-06-05 01:12:33 +08:00
{ locale: 'ru', text: 'Русский' },
2023-03-31 08:43:20 +08:00
],
2023-03-14 11:13:09 +08:00
head: function UseHead() {
const { title } = useConfig()
return (
<>
<title>{title ? title + ' | Prompt Engineering Guide': 'Prompt Engineering Guide'} </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Prompt Engineering Guide" />
<meta property="og:description" content="A Comprehensive Overview of Prompt Engineering" />
<meta
name="og:title"
content={title ? title + ' | Prompt Engineering Guide' : 'Prompt Engineering Guide'}
/>
<link rel="icon" href="/144-favicon.svg" type="image/svg+xml" />
<link
rel="icon"
href="/144-favicon-dark.svg"
type="image/svg+xml"
media="(prefers-color-scheme: dark)"
/>
</>
)},
2023-03-11 07:22:18 +08:00
project: {
2023-03-13 03:14:15 +08:00
link: 'https://github.com/dair-ai/Prompt-Engineering-Guide',
2023-03-11 07:22:18 +08:00
},
chat: {
2023-04-18 11:11:41 +08:00
link: 'https://discord.gg/FUyz9vPAwf',
2023-03-11 07:22:18 +08:00
},
2023-03-13 03:14:15 +08:00
docsRepositoryBase: 'https://github.com/dair-ai/Prompt-Engineering-Guide/tree/main/',
2023-03-11 07:22:18 +08:00
footer: {
2023-03-13 03:14:15 +08:00
text: 'Copyright © 2023 DAIR.AI',
2023-03-11 07:22:18 +08:00
},
2023-10-10 12:40:16 +08:00
search: {
placeholder: 'Search...',
},
components: {
pre: Pre,
},
2023-03-11 07:22:18 +08:00
}
export default config