Skip to content

Commit 15071f0

Browse files
committed
update config
1 parent 438737a commit 15071f0

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

apps/nextra-docs/pages/_app.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import '../styles/globals.css';
2+
3+
export default function Nextra({ Component, pageProps }) {
4+
return <Component {...pageProps} />;
5+
}

apps/nextra-docs/pages/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
---
22
title: CommandKit - A Discord.js Handler
33
---
4+
5+
<div className="text-center mt-10">
6+
<h1 className="text-5xl font-bold mb-5">CommandKit</h1>
7+
<p>A Discord.js handler for commands and events.</p>
8+
</div>

apps/nextra-docs/theme.config.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ const config: DocsThemeConfig = {
1515
};
1616
}
1717
},
18+
gitTimestamp({ timestamp }) {
19+
const { locale, asPath } = useRouter();
20+
21+
if (asPath !== '/') {
22+
return (
23+
<>
24+
Last updated on:{' '}
25+
<time dateTime={timestamp.toISOString()}>
26+
{timestamp.toLocaleDateString(locale, {
27+
day: 'numeric',
28+
month: 'long',
29+
year: 'numeric',
30+
})}
31+
</time>
32+
</>
33+
);
34+
}
35+
},
1836
};
1937

2038
export default config;

0 commit comments

Comments
 (0)