-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
57 lines (55 loc) · 1.43 KB
/
theme.config.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import ReactGA from "react-ga4";
import GA from "./components/ga";
import ChatwootWidget from "./components/Chatwoot";
const config: DocsThemeConfig = {
useNextSeoProps: () => {
return {
titleTemplate: "%s – Athina",
};
},
logo: (
<div style={{ display: "flex" }}>
<img
src="/athina-logo.png"
style={{
width: "28px",
height: "28px",
borderRadius: "4px",
marginRight: "10px",
}}
/>
Athina
</div>
),
project: {
link: "https://github.com/athina-ai/athina-evals",
},
docsRepositoryBase: "https://github.com/shuding/nextra-docs-template",
footer: {
text: "athina.ai",
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Athina" />
<meta
property="og:description"
content="Documentation for Athina AI's monitoring and evaluation platform. Athina helps detect hallucinations and bad outputs in LLM-powered applications."
/>
</>
),
main: ({ children }) => {
const environment = process.env.NEXT_PUBLIC_ENVIRONMENT;
const shouldLogAnalytics = environment !== "local";
return (
<>
<ChatwootWidget />
{shouldLogAnalytics && <GA />}
{children}
</>
);
},
};
export default config;