add metadata & viewport to the config
Some checks failed
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Failing after 33s
Some checks failed
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Failing after 33s
Took 11 minutes
This commit is contained in:
parent
45d5a0e2d4
commit
6e949539ab
@ -1,4 +1,27 @@
|
|||||||
{
|
{
|
||||||
|
"siteName": "Pulse App",
|
||||||
|
"metadata": {
|
||||||
|
"title": {
|
||||||
|
"default": "Pulse Docs",
|
||||||
|
"template": "Pulse Docs"
|
||||||
|
},
|
||||||
|
"description": "A lightweight service monitoring solution for tracking the availability of whatever service your heart desires!",
|
||||||
|
"openGraph": {
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"url": "https://pulseapp.cc/media/logo.png",
|
||||||
|
"width": 128,
|
||||||
|
"height": 128
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"twitter": {
|
||||||
|
"card": "summary"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"viewport": {
|
||||||
|
"themeColor": "#A855F7"
|
||||||
|
},
|
||||||
"contentSource": "{process}/docs",
|
"contentSource": "{process}/docs",
|
||||||
"socialLinks": [
|
"socialLinks": [
|
||||||
{
|
{
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
* The configuration for this app.
|
* The configuration for this app.
|
||||||
*/
|
*/
|
||||||
import config from "@/configJson";
|
import config from "@/configJson";
|
||||||
|
import { Config } from "@/types/config";
|
||||||
|
|
||||||
export default config as Config;
|
export default config as Config;
|
||||||
|
@ -7,33 +7,13 @@ import Sidebar from "@/components/sidebar/sidebar";
|
|||||||
import Footer from "@/components/footer";
|
import Footer from "@/components/footer";
|
||||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||||
import { getDocsContent } from "@/lib/mdx";
|
import { getDocsContent } from "@/lib/mdx";
|
||||||
|
import config from "@/config";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The metadata for this app.
|
* The metadata for this app.
|
||||||
*/
|
*/
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = config.metadata;
|
||||||
title: {
|
export const viewport: Viewport = config.viewport;
|
||||||
default: "Pulse Docs",
|
|
||||||
template: "%s • Pulse Docs",
|
|
||||||
},
|
|
||||||
description:
|
|
||||||
"A lightweight service monitoring solution for tracking the availability of whatever service your heart desires!",
|
|
||||||
openGraph: {
|
|
||||||
images: [
|
|
||||||
{
|
|
||||||
url: "https://pulseapp.cc/media/logo.png",
|
|
||||||
width: 128,
|
|
||||||
height: 128,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
twitter: {
|
|
||||||
card: "summary",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
export const viewport: Viewport = {
|
|
||||||
themeColor: "#A855F7",
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The primary layout for this app.
|
* The primary layout for this app.
|
||||||
|
@ -1,4 +1,21 @@
|
|||||||
type Config = {
|
import type { Metadata, Viewport } from "next";
|
||||||
|
|
||||||
|
export type Config = {
|
||||||
|
/**
|
||||||
|
* The name of this app.
|
||||||
|
*/
|
||||||
|
siteName: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The metadata for this app.
|
||||||
|
*/
|
||||||
|
metadata: Metadata;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The viewport for this app.
|
||||||
|
*/
|
||||||
|
viewport: Viewport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The source to get the content from.
|
* The source to get the content from.
|
||||||
* This can either be a local source, or
|
* This can either be a local source, or
|
||||||
|
@ -80,8 +80,8 @@ const Footer = (): ReactElement => (
|
|||||||
|
|
||||||
{/* Copyright */}
|
{/* Copyright */}
|
||||||
<p className="absolute inset-x-0 bottom-3.5 flex text-sm text-center justify-center opacity-60">
|
<p className="absolute inset-x-0 bottom-3.5 flex text-sm text-center justify-center opacity-60">
|
||||||
Copyright © {new Date().getFullYear()} Pulse App. All
|
Copyright © {new Date().getFullYear()} {config.siteName}.
|
||||||
rights reserved.
|
All rights reserved.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -104,12 +104,12 @@ const Branding = () => (
|
|||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src="/media/logo.png"
|
src="/media/logo.png"
|
||||||
alt="Pulse App Logo"
|
alt={`${config.siteName} Logo`}
|
||||||
width={40}
|
width={40}
|
||||||
height={40}
|
height={40}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
<h1 className="text-xl font-bold">Pulse App</h1>
|
<h1 className="text-xl font-bold">{config.siteName}</h1>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ const Navbar = ({ pages }: { pages: DocsContentMetadata[] }): ReactElement => (
|
|||||||
<h1 className="text-lg font-semibold">docs.</h1>
|
<h1 className="text-lg font-semibold">docs.</h1>
|
||||||
<Image
|
<Image
|
||||||
src="/media/logo.png"
|
src="/media/logo.png"
|
||||||
alt="Pulse App Logo"
|
alt={`${config.siteName} Logo`}
|
||||||
width={36}
|
width={36}
|
||||||
height={36}
|
height={36}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user