mirror of
https://github.com/dair-ai/Prompt-Engineering-Guide
synced 2024-11-08 07:10:41 +00:00
67 lines
2.2 KiB
TypeScript
67 lines
2.2 KiB
TypeScript
import React from 'react'
|
|
import { DocsThemeConfig } from 'nextra-theme-docs'
|
|
import { useConfig } from 'nextra-theme-docs'
|
|
|
|
const config: DocsThemeConfig = {
|
|
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>
|
|
</>
|
|
),
|
|
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: 'Русский' },
|
|
],
|
|
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)"
|
|
/>
|
|
</>
|
|
)},
|
|
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 © 2023 DAIR.AI',
|
|
},
|
|
}
|
|
|
|
export default config
|