Skip to content

Staging #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 22, 2023
Prev Previous commit
Next Next commit
Added release banner, footer and optimisation
  • Loading branch information
a3ryk committed Jul 22, 2023
commit ad1d1f1c5665294a7405ec3150e094fccadb7f3f
20 changes: 17 additions & 3 deletions theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { DocsThemeConfig, useTheme } from "nextra-theme-docs";
import { DocsThemeConfig } from "nextra-theme-docs";

const config: DocsThemeConfig = {
gitTimestamp: false,
Expand All @@ -8,7 +8,13 @@ const config: DocsThemeConfig = {
},
faviconGlyph: "🚧",
banner: {
text: "🚧 Undergoing reconstruction 🚧",
// text: "🚧 Undergoing reconstruction 🚧",
key: '3.0-release',
text: (
<a href="https://github.com/WaifuAPI/Documentation/releases/tag/3.0.4" target="_blank">
🎉 Documentation 3.0 is released. Read more →
</a>
)
},
logo: <span>Documentation</span>,
navbar: {
Expand Down Expand Up @@ -55,7 +61,15 @@ const config: DocsThemeConfig = {
},
docsRepositoryBase: "https://github.com/WaifuAPI/Documentation/tree/production",
footer: {
text: "© 2021-2023 Waifu.it",
text: (
<span>
AGPL-3.0 {new Date().getFullYear()} ©{' '}
<a href="https://waifu.it" target="_blank">
Waifu.it
</a>
.
</span>
)
},
head: function useHead() {
const description =
Expand Down