-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.tsx
More file actions
66 lines (63 loc) · 1.98 KB
/
theme.config.tsx
File metadata and controls
66 lines (63 loc) · 1.98 KB
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
58
59
60
61
62
63
64
65
66
import React from 'react'
import type { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
const config: DocsThemeConfig = {
logo: <img src="/logo.svg" alt="DevTools" style={{ height: '2.25rem' }} />,
project: {
link: 'https://github.com/the-dev-tools/dev-tools'
},
docsRepositoryBase:
'https://github.com/the-dev-tools/dev-tools-website/blob/main/pages/docs',
editLink: {
text: 'Edit this page on GitHub'
},
feedback: {
content: 'Question? Give us feedback →'
},
footer: {
text: 'DevTools Documentation'
},
useNextSeoProps() {
// Build a clean, trailing-slashed canonical for every docs page
const { asPath } = useRouter()
const pathOnly = (asPath || '/').split('#')[0].split('?')[0] || '/'
const trailing = pathOnly.endsWith('/') ? pathOnly : pathOnly + '/'
const canonical = `https://dev.tools${trailing}`
return {
titleTemplate: '%s – DevTools',
description:
'Local-first API testing and flow automation. Record browser traffic, turn it into executable YAML flows, and run at Go speed.',
canonical,
openGraph: {
type: 'website',
locale: 'en_US',
url: canonical,
siteName: 'DevTools',
images: [
{
url: 'https://dev.tools/assets/devtools-main-ss-1400w.webp',
width: 1400,
height: 917,
alt: 'DevTools API Testing Interface',
},
],
},
twitter: {
handle: '@devtools',
cardType: 'summary_large_image',
},
}
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="API testing, API client, flow automation, HAR import, YAML flows, API development, local-first, open source" />
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
</>
),
sidebar: {
defaultMenuCollapseLevel: 2,
toggleButton: true
}
}
export default config