Merge features-c2: the docs portal and its links in English and Turkish

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-05 00:15:25 +02:00
commit e8a62b23b7
201 files changed
+26276 -630

No files matched your search

+1
View File
@@ -99,6 +99,7 @@
<h2>{{t "connect.heading"}}</h2>
<p class="note">{{t "connect.intro"}}</p>
<p class="note">{{th "connect.own_code"}}</p>
<form method="post" action="/profile/connect#connected" class="connect-form">
<input type="hidden" name="csrf" value="{{.CSRF}}">
<div class="field-row">
+62
View File
@@ -0,0 +1,62 @@
{{/* The docs portal: the manual the binary carries, as a website. No script
at all — a sidebar of links and a rendered document need none, and the
policy then has nothing to allow. */}}
{{define "docs"}}<!doctype html>
<html lang="{{lang}}"><head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{if .Doc}}{{.Doc.Title}} · {{end}}{{t "docs.title"}}</title>
<meta name="description" content="{{t "docs.description"}}">
<link rel="stylesheet" href="{{stylesheet}}">
<link rel="stylesheet" href="{{asset "docs.css"}}">
</head><body><div class="wrap">
<header class="docs-head">
<p class="docs-brand"><a href="/docs">{{t "docs.title"}}</a></p>
{{if .SignedIn}}{{template "nav" .Nav}}{{else}}
<nav class="menu" aria-label="{{t "nav.aria"}}">
<a href="/">{{t "docs.this_gateway"}}</a>
<a href="/docs"{{if not .Doc}} aria-current="page"{{end}}>{{t "nav.docs"}}</a>
<a href="/about">{{t "docs.about"}}</a>
{{if .SignIn}}<a href="/login">{{t "landing.sign_in"}}</a>{{end}}
</nav>{{end}}
</header>
<div class="docs">
<aside class="docs-side" aria-label="{{t "docs.documents"}}">
<ul>
{{range .Docs}}
<li><a href="/docs/{{.Key}}"{{if and $.Doc (eq $.Doc.Key .Key)}} aria-current="page"{{end}}>{{.Title}}</a>
{{- if and $.Doc (eq $.Doc.Key .Key) $.Doc.Sections}}
<ul class="sections">{{range $.Doc.Sections}}
<li><a href="#{{.ID}}">{{.Title}}</a></li>{{end}}
</ul>
{{- end}}</li>
{{end}}
</ul>
</aside>
<main class="doc">
{{if .Doc}}
{{.Doc.Body}}
{{else}}
<h1>{{t "docs.title"}}</h1>
<p class="sub">{{th "docs.sub"}}</p>
{{with .Clients}}
<section class="docs-lead">
<h2>{{t "docs.from_code"}}</h2>
<p>{{th "docs.from_code_text" .Key .Title}}</p>
</section>
{{end}}
<h2>{{t "docs.every"}}</h2>
<ul class="docs-index">
{{range .Docs}} <li><a href="/docs/{{.Key}}">{{.Title}}</a></li>
{{end}}</ul>
<p class="note">{{t "docs.general"}}</p>
{{with t "docs.english_only"}}<p class="note">{{.}}</p>{{end}}
{{end}}
</main>
</div>
<footer><span><a href="/about">llmgw {{.Version}}</a></span><span><a href="/docs">{{t "docs.footer"}}</a></span>{{template "langs"}}</footer>
</div></body></html>{{end}}
+1 -1
View File
@@ -163,7 +163,7 @@ print(reply.choices[0].message.content)</code></pre>
}</code></pre>
</div>
</div>
<p class="note">{{t "landing.anything_works"}}</p>
<p class="note">{{t "landing.anything_works"}} {{th "landing.client_guide"}}</p>
<h2>{{t "landing.once_you_have_key"}}</h2>
<ul class="endpoints">
+1
View File
@@ -26,6 +26,7 @@
{{- end}}
<a href="/chat"{{if eq .Current "chat"}} aria-current="page"{{end}}>{{t "nav.chat"}}</a>
<a href="/profile"{{if eq .Current "keys"}} aria-current="page"{{end}}>{{t "nav.account"}}</a>
<a href="/docs"{{if eq .Current "docs"}} aria-current="page"{{end}}>{{t "nav.docs"}}</a>
<form method="post" action="/logout" class="inline">
<input type="hidden" name="csrf" value="{{.CSRF}}">
<button type="submit" class="link">{{t "nav.sign_out"}}</button>