-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseo.js
More file actions
64 lines (61 loc) · 1.98 KB
/
Copy pathseo.js
File metadata and controls
64 lines (61 loc) · 1.98 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Global SEO: Inject Organization + WebSite JSON-LD structured data.
// Mintlify auto-injects every root-level `.js` file on every page. The contents
// are Stackryze-specific (URLs, brand copy, social handles) — adapted from the
// same pattern used by dodo-docs.
(function () {
if (typeof document === "undefined") return;
var orgSchema = {
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://stackryze.com/#organization",
name: "Stackryze",
url: "https://stackryze.com",
logo: {
"@type": "ImageObject",
url: "https://docs.stackryze.com/logo/dark.svg",
},
sameAs: [
"https://github.com/stackryze",
"https://x.com/stackryze",
"https://linkedin.com/company/stackryze",
],
description:
"Stackryze — affordable software for the modern web. Domains, DNS, and beyond.",
},
{
"@type": "WebSite",
"@id": "https://docs.stackryze.com/#website",
url: "https://docs.stackryze.com",
name: "Stackryze Documentation",
publisher: {
"@id": "https://stackryze.com/#organization",
},
inLanguage: ["en"],
description:
"Documentation for Stackryze — domains, DNS, and the broader product roadmap.",
potentialAction: {
"@type": "SearchAction",
target: {
"@type": "EntryPoint",
urlTemplate:
"https://docs.stackryze.com/?q={search_term_string}",
},
"query-input": {
"@type": "PropertyValueSpecification",
valueRequired: true,
valueName: "search_term_string",
},
},
},
],
};
function injectSchema(data) {
var s = document.createElement("script");
s.type = "application/ld+json";
s.textContent = JSON.stringify(data);
document.head.appendChild(s);
}
injectSchema(orgSchema);
})();