Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions components/IndexPageJsonLd.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import Head from "next/head";

const jsonLd = {
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://drpc.org/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Docs",
"item": "https://drpc.org/docs"
}
]
};

export function IndexPageJsonLd() {
return (
<Head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
</Head>
);
}
4 changes: 4 additions & 0 deletions pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { IndexPageJsonLd } from "../components/IndexPageJsonLd";

<IndexPageJsonLd />

# dRPC Platform Docs

Welcome to DRPC, the decentralized Web3 infrastructure provider with focus on resilience and latency.
Expand Down
1 change: 1 addition & 0 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const config: DocsThemeConfig = {
return {
titleTemplate: DEFAULT_META_TITLE,
description: DEFAULT_META_DESCRIPTION,
keywords: 'rpc documentation',
...extra,
}
}
Expand Down
4 changes: 2 additions & 2 deletions utils/text/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@ export function shouldMakeInvisibleHeading(value: string) {
);
}

export const DEFAULT_META_TITLE = "Documentation for dRPC | Docs for dRPC Platform";
export const DEFAULT_META_DESCRIPTION = "Explore comprehensive documentation for dRPC and streamlining your development process. Discover guides, examples, and tips. 💻📗";
export const DEFAULT_META_TITLE = "Docs: RPC & Chain Methods Documentation | dRPC";
export const DEFAULT_META_DESCRIPTION = "Access RPC documentation, chain method references, and integration guides. Clear technical resources for developers building on dRPC.";