Skip to content

Commit 1d1cf6b

Browse files
rhuanbarretoclaude
andauthored
docs(seo): improve Open Graph, structured data, and LLM discoverability (#65)
* docs(seo): improve Open Graph, structured data, and LLM discoverability Add missing OG meta tags (og:type, og:site_name, og:locale), twitter:card type, hreflang x-default for i18n, and per-page markdown alternate links pointing to raw GitHub source for LLM agents. Enrich SoftwareApplication and TechArticle JSON-LD schemas with version, license, author, and mainEntityOfPage fields. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs(seo): generate llms-full.txt with concatenated documentation Add a build-time script that concatenates all English docs into a single llms-full.txt file for LLM agents. Strips frontmatter, JSX components, and Starlight directives, keeping only prose and code blocks. Runs automatically before `astro build` via the docs build script. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3d3b1f1 commit 1d1cf6b

6 files changed

Lines changed: 4005 additions & 2 deletions

File tree

docs/astro.config.mjs

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,23 @@ export default defineConfig({
105105
"data-cf-beacon": '{"token": "cee359c05ecc496aabc4f40f05302a03"}',
106106
},
107107
},
108-
// ── Open Graph image ──────────────────────────────────────
108+
// ── Open Graph ────────────────────────────────────────────
109+
{
110+
tag: "meta",
111+
attrs: { property: "og:type", content: "website" },
112+
},
113+
{
114+
tag: "meta",
115+
attrs: { property: "og:site_name", content: "Archgate" },
116+
},
117+
{
118+
tag: "meta",
119+
attrs: { property: "og:locale", content: "en_US" },
120+
},
121+
{
122+
tag: "meta",
123+
attrs: { property: "og:locale:alternate", content: "pt_BR" },
124+
},
109125
{
110126
tag: "meta",
111127
attrs: {
@@ -130,6 +146,10 @@ export default defineConfig({
130146
},
131147
},
132148
// ── Twitter / X card ──────────────────────────────────────
149+
{
150+
tag: "meta",
151+
attrs: { name: "twitter:card", content: "summary_large_image" },
152+
},
133153
{
134154
tag: "meta",
135155
attrs: {
@@ -177,7 +197,10 @@ export default defineConfig({
177197
"@type": "SoftwareApplication",
178198
name: "Archgate CLI",
179199
applicationCategory: "DeveloperApplication",
200+
applicationSubCategory: "Code Governance",
180201
operatingSystem: "macOS, Linux, Windows",
202+
softwareVersion: "0.11.0",
203+
license: "https://github.com/archgate/cli/blob/main/LICENSE",
181204
offers: { "@type": "Offer", price: "0", priceCurrency: "USD" },
182205
url: "https://cli.archgate.dev",
183206
downloadUrl: "https://www.npmjs.com/package/archgate",

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"dev": "astro dev",
7-
"build": "astro build",
7+
"build": "bun run scripts/generate-llms-full.ts && astro build",
88
"preview": "astro preview"
99
},
1010
"dependencies": {

0 commit comments

Comments
 (0)