From f2d99409415783da95913c289b8befc2d458e1c0 Mon Sep 17 00:00:00 2001 From: Edgar Sipki Date: Sat, 28 Nov 2026 17:22:56 +0300 Subject: [PATCH] feat(site): align home, plugins, roadmap, docs actions, and llms feeds with EasyP v1.0 - Fix 404 Edit on GitHub links by separating docsGitConfig (easyp-tech/docs) from navbar gitConfig (easyp-tech/easyp) - Update /plugins and /ru/plugins to valid v1 easyp.gen.yaml snippets and plugin copy entries, adopt full-width quickstart/agent layout with side-by-side CopyBlock while preserving analytics, and localize remaining UI/ARIA labels - Align Home page (Hero, FeatureSwitcher, ArchitectureComparison, Footer) with EasyP v1.0: valid v1 easyp.yaml, protobuf.mod/protobuf.lock, easyprotoc pure-Go compiler, 44 lint & 69 breaking checks, accurate REMOTE/WASM execution, and /docs/cli footer link - Update public Roadmap (EN/RU) for v1.0.0 stable, easyprotoc v0.1.1, easyp-mcp (easyp_config_describe), compiler-backed breaking checks, and easyp.gen.yaml - Fix /ru/docs.md rewrite in proxy.ts, set text/markdown; charset=utf-8 across llms routes, switch llms-full.txt to force-dynamic, and separate EN/RU sections with platform links in llms.txt --- app/[lang]/(marketing)/plugins/page.tsx | 112 +++++++++++++------- app/[lang]/docs/[[...slug]]/page.tsx | 4 +- app/llms-full.txt/route.ts | 8 +- app/llms.mdx/docs/[[...slug]]/route.ts | 2 +- app/llms.txt/route.ts | 44 +++++++- components/home/architecture-comparison.tsx | 4 +- components/home/feature-switcher.tsx | 29 ++--- components/home/footer.tsx | 2 +- components/home/hero.tsx | 14 +-- components/plugins/copy-block.tsx | 25 +++-- components/plugins/plugin-browser.tsx | 10 +- lib/home-copy.ts | 20 ++-- lib/plugins-copy.ts | 44 +++++--- lib/roadmap.ts | 83 +++++++++++---- lib/shared.ts | 6 ++ proxy.ts | 13 ++- 16 files changed, 286 insertions(+), 134 deletions(-) diff --git a/app/[lang]/(marketing)/plugins/page.tsx b/app/[lang]/(marketing)/plugins/page.tsx index a377257..14d81fd 100644 --- a/app/[lang]/(marketing)/plugins/page.tsx +++ b/app/[lang]/(marketing)/plugins/page.tsx @@ -1,7 +1,7 @@ import type { Metadata } from 'next' import Link from 'next/link' import { notFound } from 'next/navigation' -import { ArrowRight, Bot, Boxes, Layers, Radio, Tag } from 'lucide-react' +import { ArrowRight, Bot, Boxes, FileCode2, Layers, Radio, Tag } from 'lucide-react' import { isAppLocale, type AppLocale } from '@/lib/i18n' import { getRegistry, REGISTRY_HOST } from '@/lib/registry' import { pluginsCopy } from '@/lib/plugins-copy' @@ -37,16 +37,18 @@ export default async function PluginsPage({ params }: Props) { const goPlugin = registry.plugins.find((p) => p.id === 'protocolbuffers/go') const grpcPlugin = registry.plugins.find((p) => p.id === 'grpc/go') const snippet = [ - 'generate:', - ' inputs:', - ' - directory: { path: ., root: proto }', - ' plugins:', - ` - remote: "${REGISTRY_HOST}/protocolbuffers/go:${goPlugin?.latest ?? 'v1.36.11'}"`, - ' out: gen/go', - ' opts: { paths: source_relative }', - ` - remote: "${REGISTRY_HOST}/grpc/go:${grpcPlugin?.latest ?? 'v1.6.0'}"`, - ' out: gen/go', - ' opts: { paths: source_relative }', + 'version: v1', + 'plugins:', + ` - remote: ${REGISTRY_HOST}/protocolbuffers/go`, + ` version: ${goPlugin?.latest ?? 'v1.36.11'}`, + ' out: gen/go', + ' opts:', + ' paths: source_relative', + ` - remote: ${REGISTRY_HOST}/grpc/go`, + ` version: ${grpcPlugin?.latest ?? 'v1.6.0'}`, + ' out: gen/go', + ' opts:', + ' paths: source_relative', ].join('\n') const listedAt = new Intl.DateTimeFormat(lang === 'ru' ? 'ru-RU' : 'en-US', { @@ -95,7 +97,7 @@ export default async function PluginsPage({ params }: Props) { {registry.serverVersion && ( - service {registry.serverVersion} + {t.service} {registry.serverVersion} {registry.platform && · {registry.platform}} )} @@ -136,39 +138,67 @@ export default async function PluginsPage({ params }: Props) { -
-
-

{t.quickstart.title}

-

{t.quickstart.body}

- - - {t.quickstart.docs} - - -
-
-
- +
+
+
+
+ +
+

{t.quickstart.title}

+

{t.quickstart.body}

+ + {t.quickstart.docs} + +
-

{t.quickstart.agents}

-

{t.quickstart.agentsBody}

- -

Claude Code:

- - MCP - - +
+ +
+
+
+ +
+

{t.quickstart.agents}

+

{t.quickstart.agentsBody}

+ + MCP + + +
+
+
+

+ {t.quickstart.mcpEndpoint} +

+ +
+
+

Claude Code

+ +
+
diff --git a/app/[lang]/docs/[[...slug]]/page.tsx b/app/[lang]/docs/[[...slug]]/page.tsx index 13cc54b..8f983a3 100644 --- a/app/[lang]/docs/[[...slug]]/page.tsx +++ b/app/[lang]/docs/[[...slug]]/page.tsx @@ -11,7 +11,7 @@ import { notFound } from 'next/navigation' import { getMDXComponents } from '@/components/mdx' import type { Metadata } from 'next' import { createRelativeLink } from 'fumadocs-ui/mdx' -import { gitConfig } from '@/lib/shared' +import { docsGitConfig } from '@/lib/shared' import { isAppLocale, type AppLocale } from '@/lib/i18n' export default async function Page({ @@ -37,7 +37,7 @@ export default async function Page({
diff --git a/app/llms-full.txt/route.ts b/app/llms-full.txt/route.ts index fb96274..7d71aff 100644 --- a/app/llms-full.txt/route.ts +++ b/app/llms-full.txt/route.ts @@ -1,7 +1,7 @@ import { getLLMText, source } from '@/lib/source' import { i18n } from '@/lib/i18n' -export const revalidate = false +export const dynamic = 'force-dynamic' export async function GET(req: Request) { const url = new URL(req.url) @@ -27,5 +27,9 @@ export async function GET(req: Request) { }), ) - return new Response(sections.join('\n\n---\n\n')) + return new Response(sections.join('\n\n---\n\n'), { + headers: { + 'Content-Type': 'text/markdown; charset=utf-8', + }, + }) } diff --git a/app/llms.mdx/docs/[[...slug]]/route.ts b/app/llms.mdx/docs/[[...slug]]/route.ts index ace8bd0..ebe47a8 100644 --- a/app/llms.mdx/docs/[[...slug]]/route.ts +++ b/app/llms.mdx/docs/[[...slug]]/route.ts @@ -33,7 +33,7 @@ export async function GET( return new Response(await getLLMText(page), { headers: { - 'Content-Type': 'text/markdown', + 'Content-Type': 'text/markdown; charset=utf-8', }, }) } diff --git a/app/llms.txt/route.ts b/app/llms.txt/route.ts index fc80cb6..4614cb1 100644 --- a/app/llms.txt/route.ts +++ b/app/llms.txt/route.ts @@ -1,8 +1,44 @@ -import { source } from '@/lib/source'; -import { llms } from 'fumadocs-core/source'; +import { source } from '@/lib/source' +import { llms } from 'fumadocs-core/source' -export const revalidate = false; +export const revalidate = false export function GET() { - return new Response(llms(source).index()); + const formatter = llms(source) + + const formatTree = (lang: 'en' | 'ru') => + source + .getPageTree(lang) + .children.map((node) => formatter.indexNode(node, lang)) + .join('\n') + + const body = [ + '# EasyP Documentation', + '', + '> Open-source, Git-native Protobuf toolchain: CLI (linter, generator, breaking-change detector, package manager), pure-Go easyprotoc compiler, and remote plugin service.', + '', + '## Platform', + '', + '- [Plugin Registry (EN)](/plugins): Live catalog of remote plugins on plugins.easyp.tech', + '- [Plugin Registry (RU)](/ru/plugins): Каталог удалённых плагинов на plugins.easyp.tech', + '- [Roadmap (EN)](/roadmap): Shipped milestones and upcoming work across EasyP', + '- [Roadmap (RU)](/ru/roadmap): Вышедшие релизы и ближайшие планы развития EasyP', + '- [Full Documentation (EN)](/llms-full.txt): Complete English documentation in a single Markdown file', + '- [Full Documentation (RU)](/llms-full.txt?locale=ru): Полная русская документация в одном Markdown-файле', + '', + '## Documentation (English — /docs)', + '', + formatTree('en'), + '', + '## Документация (Русский — /ru/docs)', + '', + formatTree('ru'), + '', + ].join('\n') + + return new Response(body, { + headers: { + 'Content-Type': 'text/markdown; charset=utf-8', + }, + }) } diff --git a/components/home/architecture-comparison.tsx b/components/home/architecture-comparison.tsx index 7e5eb35..7e653ff 100644 --- a/components/home/architecture-comparison.tsx +++ b/components/home/architecture-comparison.tsx @@ -16,8 +16,8 @@ export function ArchitectureComparison() { }, { icon: Layers, - title: t.hybridRuntime.title, - descriptionHtml: t.hybridRuntime.description, + title: t.flexibleExecution.title, + descriptionHtml: t.flexibleExecution.description, iconBg: 'bg-purple-500/10', iconColor: 'text-purple-600 dark:text-purple-400', hoverBorder: 'hover:border-purple-500/30', diff --git a/components/home/feature-switcher.tsx b/components/home/feature-switcher.tsx index c6b7352..beea750 100644 --- a/components/home/feature-switcher.tsx +++ b/components/home/feature-switcher.tsx @@ -94,7 +94,7 @@ export function FeatureSwitcher() {
    {( [ - t.server.dockerNative, + t.server.isolatedRuntime, t.server.airGap, t.server.costEffective, ] as const @@ -119,29 +119,32 @@ export function FeatureSwitcher() { aria-hidden className="pointer-events-none absolute -inset-1 rounded-2xl bg-gradient-to-r from-blue-500 to-violet-500 opacity-20 blur transition duration-1000 group-hover:opacity-40 group-hover:duration-200" /> -
    +
    {activeTab === 'cli' ? ( -
    +
    # easyp.yaml configuration
    version: v1
    -
    deps:
    -
    - - github.com/googleapis/googleapis@v1.0 +
    linters:
    +
    + default: STANDARD
    -
    lint:
    -
    use:
    -
    - STANDARD
    +
    enable:
    - COMMENTS
    -
    breaking:
    +
    breaking:
    +
    + baseline: git:main +
    +
    categories:
    +
    - FILE
    ignore:
    -
    - "proto/alfa/v1"
    +
    - "proto/alpha/v1"
    ) : (
    @@ -155,8 +158,8 @@ export function FeatureSwitcher() {
    {[ - ['Registry:', 'Local Docker'], - ['Plugins:', '14 Loaded'], + ['Runtime:', 'Isolated Process'], + ['Plugins:', '80+ Available'], ['Uptime:', '42d 12h'], ].map(([k, v]) => (
    diff --git a/components/home/footer.tsx b/components/home/footer.tsx index 89cc96c..a09acba 100644 --- a/components/home/footer.tsx +++ b/components/home/footer.tsx @@ -27,7 +27,7 @@ export function Footer() {

    {t.product.title}

    • - + {t.product.cliTool}
    • diff --git a/components/home/hero.tsx b/components/home/hero.tsx index 0f034f3..741b1f1 100644 --- a/components/home/hero.tsx +++ b/components/home/hero.tsx @@ -21,7 +21,7 @@ export function Hero({ version = 'vX.X.X' }: { version?: string }) { const dropdownRef = useRef(null) const installOptions: InstallOption[] = [ - { id: 'brew', label: 'brew', fullLabel: 'macOS (homebrew)', cmd: 'brew install easyp-tech/tap/easyp' }, + { id: 'brew', label: 'brew', fullLabel: 'macOS / Linux (homebrew)', cmd: 'brew install easyp-tech/tap/easyp' }, { id: 'go', label: 'go', fullLabel: 'go Install (any OS)', cmd: 'go install github.com/easyp-tech/easyp/cmd/easyp@latest' }, { id: 'docker', label: 'docker', fullLabel: 'docker', cmd: 'docker pull ghcr.io/easyp-tech/easyp:latest' }, ] @@ -197,7 +197,7 @@ export function Hero({ version = 'vX.X.X' }: { version?: string }) {
      ➜ - easyp generate -v + easyp generate
      @@ -205,7 +205,7 @@ export function Hero({ version = 'vX.X.X' }: { version?: string }) { Resolving dependencies from{' '} - easyp.lock + protobuf.lock ... @@ -223,14 +223,14 @@ export function Hero({ version = 'vX.X.X' }: { version?: string }) { [INFO] Dispatching plugins:
      - ├─ protoc-gen-go (v1.31){' '} + ├─ protocolbuffers/go (v1.36){' '} - WASM + REMOTE
      - └─ custom-java-gen (v2.0){' '} + └─ python{' '} - DOCKER + WASM
      diff --git a/components/plugins/copy-block.tsx b/components/plugins/copy-block.tsx index fbcbfda..be95c7c 100644 --- a/components/plugins/copy-block.tsx +++ b/components/plugins/copy-block.tsx @@ -4,15 +4,28 @@ import { useState } from 'react' import { Check, Copy } from 'lucide-react' import { track } from '@/lib/analytics' -/** A code block with a copy button; `label` names it for screen readers. */ -export function CopyBlock({ code, label, copiedLabel }: { code: string; label: string; copiedLabel: string }) { +/** + * A code block with a copy button beside it, not on top of it: a long + * command scrolls inside its own column and is never hidden under the button. + */ +export function CopyBlock({ + code, + label, + copiedLabel, + trackWhat, +}: { + code: string + label: string + copiedLabel: string + trackWhat?: string +}) { const [copied, setCopied] = useState(false) const copy = async () => { try { await navigator.clipboard.writeText(code) setCopied(true) - track('copy-plugins-config', { what: label }) + track('copy-plugins-config', { what: trackWhat ?? label }) window.setTimeout(() => setCopied(false), 1600) } catch { setCopied(false) @@ -20,8 +33,8 @@ export function CopyBlock({ code, label, copiedLabel }: { code: string; label: s } return ( -
      -
      +    
      +
               {code}
             
      diff --git a/components/plugins/plugin-browser.tsx b/components/plugins/plugin-browser.tsx index c38b9c3..320f693 100644 --- a/components/plugins/plugin-browser.tsx +++ b/components/plugins/plugin-browser.tsx @@ -19,7 +19,7 @@ export interface BrowserPlugin { } function remoteLine(host: string, id: string, version: string): string { - return `- remote: "${host}/${id}:${version}"` + return `- remote: ${host}/${id}\n version: ${version}` } function useCopy() { @@ -86,7 +86,7 @@ export function PluginBrowser({ }) return ( -
      +