mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-04 13:45:40 +00:00
feat(web): real /about and /docs pages (unique crawlable content)
Addresses the top cross-engine AEO finding — every route previously served the homepage SPA. /about and /docs are now distinct routes with their own server-rendered content and titles. - /about: substantive about page (what LogicSRC is, the standards surface, CommandBoard.run reference impl, GitHub, hire-us) — derived from public positioning, no fabricated team. - /docs + /docs/[slug]: render the repo's docs/*.md (curated public set) via marked, statically generated at build (no runtime fs dependency). - Drop about/docs from the catch-all; add doc URLs to the sitemap. Verified in a running build: /about and /docs serve unique content with distinct titles; /docs/[slug] renders each markdown doc. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6518dfb4a9
commit
fb20fd2e99
8 changed files with 291 additions and 9 deletions
53
apps/logicsrc-web/src/app/docs/page.tsx
Normal file
53
apps/logicsrc-web/src/app/docs/page.tsx
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
import Link from "next/link";
|
||||
import type { ReactNode } from "react";
|
||||
import type { Metadata } from "next";
|
||||
import { listDocs } from "@/lib/docs";
|
||||
import { SiteShell } from "@/components/site-shell";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Docs · LogicSRC",
|
||||
description:
|
||||
"LogicSRC specification guides — data model, CLI/TUI conventions, config, permission scopes, plugins, credential sharing, and the OpenSpec.dev comparison.",
|
||||
alternates: { canonical: "/docs" },
|
||||
};
|
||||
|
||||
export default function DocsIndex(): ReactNode {
|
||||
const docs = listDocs();
|
||||
return (
|
||||
<SiteShell active="Docs">
|
||||
<div className="band">
|
||||
<div className="section-head">
|
||||
<h2>Docs</h2>
|
||||
<p>
|
||||
Specification guides and conventions for the LogicSRC coordination
|
||||
standard. Source lives in the{" "}
|
||||
<a href="https://github.com/profullstack/logicsrc" rel="noreferrer">
|
||||
profullstack/logicsrc
|
||||
</a>{" "}
|
||||
repository.
|
||||
</p>
|
||||
</div>
|
||||
<ul style={{ listStyle: "none", margin: 0, padding: 0 }}>
|
||||
{docs.map((doc) => (
|
||||
<li
|
||||
key={doc.slug}
|
||||
style={{ padding: "1.25rem 0", borderTop: "1px solid #e3e6e0" }}
|
||||
>
|
||||
<Link
|
||||
href={`/docs/${doc.slug}`}
|
||||
style={{ color: "inherit", textDecoration: "none" }}
|
||||
>
|
||||
<h3 style={{ margin: "0 0 0.35rem", fontSize: "1.2rem", color: "#101418" }}>
|
||||
{doc.title}
|
||||
</h3>
|
||||
</Link>
|
||||
{doc.excerpt ? (
|
||||
<p style={{ color: "#41505d", margin: 0 }}>{doc.excerpt}</p>
|
||||
) : null}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</SiteShell>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue