Skip to content

Commit ad1d1f1

Browse files
committed
Added release banner, footer and optimisation
1 parent 0eb4664 commit ad1d1f1

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

theme.config.tsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { DocsThemeConfig, useTheme } from "nextra-theme-docs";
2+
import { DocsThemeConfig } from "nextra-theme-docs";
33

44
const config: DocsThemeConfig = {
55
gitTimestamp: false,
@@ -8,7 +8,13 @@ const config: DocsThemeConfig = {
88
},
99
faviconGlyph: "🚧",
1010
banner: {
11-
text: "🚧 Undergoing reconstruction 🚧",
11+
// text: "🚧 Undergoing reconstruction 🚧",
12+
key: '3.0-release',
13+
text: (
14+
<a href="https://github.com/WaifuAPI/Documentation/releases/tag/3.0.4" target="_blank">
15+
🎉 Documentation 3.0 is released. Read more →
16+
</a>
17+
)
1218
},
1319
logo: <span>Documentation</span>,
1420
navbar: {
@@ -55,7 +61,15 @@ const config: DocsThemeConfig = {
5561
},
5662
docsRepositoryBase: "https://github.com/WaifuAPI/Documentation/tree/production",
5763
footer: {
58-
text: "© 2021-2023 Waifu.it",
64+
text: (
65+
<span>
66+
AGPL-3.0 {new Date().getFullYear()} ©{' '}
67+
<a href="https://waifu.it" target="_blank">
68+
Waifu.it
69+
</a>
70+
.
71+
</span>
72+
)
5973
},
6074
head: function useHead() {
6175
const description =

0 commit comments

Comments
 (0)