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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@

- Add analytics and mcp version widget

- Refresh Gittensor-aligned homepage



### Fixes
Expand Down
5 changes: 5 additions & 0 deletions scripts/check-docs-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ if (!existsSync(indexPath)) {
const html = readFileSync(indexPath, "utf8");
if (!html.includes("gtn-version-pill")) failures.push("built docs are missing the MCP version pill markup.");
if (!html.includes("MCP")) failures.push("built docs are missing MCP version text.");
if (!html.includes("/images/gittensor-home-signal.webp")) failures.push("built docs are missing the Gittensor context image.");
}

if (!existsSync(join(dist, "images/gittensor-home-signal.webp"))) {
failures.push("built docs are missing the Gittensor context image asset.");
}

const builtFiles = existsSync(dist) ? collect(dist).filter((file) => /\.(html|js)$/.test(file)) : [];
Expand Down
8 changes: 7 additions & 1 deletion scripts/check-docs.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
import { readdirSync, readFileSync, statSync } from "node:fs";
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
import { join } from "node:path";

const root = process.cwd();
Expand Down Expand Up @@ -43,6 +43,12 @@ const siteIndex = readFileSync(join(root, "site/index.md"), "utf8");
for (const phrase of ["Gittensor miners", "GitHub App", "MCP", "not a Gittensor frontend"]) {
if (!siteIndex.includes(phrase)) failures.push(`site/index.md: missing required positioning phrase ${JSON.stringify(phrase)}`);
}
if (!siteIndex.includes("/images/gittensor-home-signal.webp")) {
failures.push("site/index.md: missing Gittensor context image reference");
}
if (!existsSync(join(root, "site/public/images/gittensor-home-signal.webp"))) {
failures.push("site/public/images/gittensor-home-signal.webp: missing Gittensor context image asset");
}

for (const required of ["SUPPORT.md", "site/security/privacy.md", "site/security/terms.md", "site/support.md"]) {
try {
Expand Down
43 changes: 35 additions & 8 deletions site/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const analyticsHead: HeadConfig[] = umamiScriptUrl && umamiWebsiteId

export default defineConfig({
title: "Gittensory",
description: "Backend intelligence, MCP preflight, and GitHub App review context for Gittensor contributors and maintainers.",
description: "MCP and GitHub App decision intelligence for Gittensor contributors and maintainers.",
base: siteBase,
cleanUrls: true,
lastUpdated: true,
Expand All @@ -34,28 +34,55 @@ export default defineConfig({
["link", { rel: "icon", type: "image/svg+xml", href: "/logo.svg" }],
["link", { rel: "preconnect", href: "https://fonts.googleapis.com" }],
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" }],
["link", { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap" }],
["link", { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap" }],
["meta", { property: "og:title", content: "Gittensory" }],
["meta", { property: "og:description", content: "Private decision intelligence for healthier Gittensor repo participation." }],
["meta", { property: "og:description", content: "Score blockers, lane fit, queue pressure, and reviewability context for Gittensor work." }],
["meta", { property: "og:url", content: siteUrl }],
["meta", { name: "theme-color", content: "#050608" }],
...analyticsHead,
],
themeConfig: {
logo: "/logo.svg",
nav: [
{ text: "Install", link: "/guide/install" },
{ text: "MCP", link: "/guide/mcp" },
{ text: "GitHub App", link: "/guide/github-app-setup" },
{
text: "Start",
items: [
{ text: "Install", link: "/guide/install" },
{ text: "Auth", link: "/guide/auth" },
{ text: "MCP Clients", link: "/guide/mcp" },
],
},
{
text: "Workflows",
items: [
{ text: "For Miners", link: "/guide/miners" },
{ text: "For Maintainers", link: "/guide/maintainers" },
{ text: "GitHub App Setup", link: "/guide/github-app-setup" },
],
},
{ text: "API", link: "/reference/api" },
{
text: "Safety",
items: [
{ text: "Privacy", link: "/security/privacy" },
{ text: "Terms", link: "/security/terms" },
{ text: "Support", link: "/support" },
{ text: "Troubleshooting", link: "/troubleshooting" },
],
},
],
sidebar: [
{
text: "Guide",
text: "Start",
items: [
{ text: "Install", link: "/guide/install" },
{ text: "MCP", link: "/guide/mcp" },
{ text: "Auth", link: "/guide/auth" },
{ text: "MCP Clients", link: "/guide/mcp" },
],
},
{
text: "Workflows",
items: [
{ text: "For Miners", link: "/guide/miners" },
{ text: "For Maintainers", link: "/guide/maintainers" },
{ text: "GitHub App Setup", link: "/guide/github-app-setup" },
Expand Down
Loading