-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy paththeme.config.tsx
68 lines (66 loc) · 1.56 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
58
59
60
61
62
63
64
65
66
67
68
import React from 'react';
import { DocsThemeConfig } from 'nextra-theme-docs';
import Logo from './components/UI/Logo';
import { useRouter } from 'next/router';
const config: DocsThemeConfig = {
logo: <Logo />,
project: {
link: 'https://github.com/mutasim77/Algorithms-Universe',
},
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== '/') {
return {
titleTemplate: '%s – Algorithms Universe'
}
}
},
editLink: {
text: null
},
feedback: {
content: null
},
footer: {
text: (
<div className="flex w-full flex-col items-center">
<a
className="flex items-center gap-1 text-current"
rel="noopener noreferrer"
title="Algorithms Universe"
href="/"
>
<span className='text-1xl'>Algorithms Universe</span>
</a>
<p className="mt-6 text-xs text-center">
Copyright © 2023 - 2024 Mutasim
<br />
All rights reserved.
</p>
</div>
)
},
banner: {
key: 'github',
text: (
<a href="https://github.com/mutasim77/Algorithms-Universe" target="_blank">
Grant a Star ⭐ on Github – It's for You ❤️
</a>
)
},
navbar: {
extraContent: <></>
},
faviconGlyph: '🧠',
sidebar: {
titleComponent({ title, type }) {
if (type === 'separator') {
return <span className="cursor-default">{title}</span>
}
return <>{title}</>
},
defaultMenuCollapseLevel: 1,
toggleButton: true
},
}
export default config;