-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
39 lines (36 loc) · 1.27 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
import React from "react";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
logo: <span>React Native Microfrontends</span>,
project: {
link: "https://github.com/reactnativemicrofrontends/website",
},
docsRepositoryBase: "https://github.com/reactnativemicrofrontends/website",
footer: {
text: "Powered by Nextra.",
},
head: null,
useNextSeoProps: () => {
const { frontMatter } = useConfig();
return {
titleTemplate: "%s",
description:
frontMatter.description ||
"A comprehensive website about how to build scalable, maintainable and well-architected mobile microfrontends using React Native",
openGraph: {
title: frontMatter.title || "React Native Microfrontends",
description:
frontMatter.description ||
"A comprehensive website about how to build scalable, maintainable and well-architected mobile microfrontends using React Native",
images: [
{
url: frontMatter.image
? `https://www.reactnativemicrofrontends.dev${frontMatter.image}`
: "https://www.reactnativemicrofrontends.dev/images/mobile-microfrontends.png",
},
],
},
};
},
};
export default config;