The manual the binary carries, rendered on the client port: a sidebar of the documents in the console's reading order (now one list, llmgw.Manual, for both), heading anchors, links between documents kept in the portal and links to files outside the binary sent to the repository, no script. Public by default; landing.docs_sign_in sends visitors to sign in first. docs/clients.md shows the official OpenAI and Anthropic SDKs against llmgw in Python, TypeScript, Go and curl, with llmgw's headers; the portal's index, the landing page and the account page link to it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
35 lines
1.8 KiB
HTML
35 lines
1.8 KiB
HTML
{{/* The one menu every signed-in page draws. The order never changes and the
|
|
page you are on is marked, not offered, so moving between pages reads as
|
|
moving within one program. */}}
|
|
{{define "nav"}}<nav class="menu" aria-label="Main">
|
|
{{- if and .Org (not .Admin)}}
|
|
<a href="/org"{{if eq .Current "org"}} aria-current="page"{{end}}>Organization</a>
|
|
<span class="menu-gap" aria-hidden="true"></span>
|
|
{{- end}}
|
|
{{- if and .Admin (eq .Role "billing")}}
|
|
<a href="/admin/usage"{{if eq .Current "usage"}} aria-current="page"{{end}}>Usage</a>
|
|
<a href="/admin/quotas"{{if eq .Current "quotas"}} aria-current="page"{{end}}>Quotas</a>
|
|
<span class="menu-gap" aria-hidden="true"></span>
|
|
{{- else if .Admin}}
|
|
<a href="/admin"{{if eq .Current "cluster"}} aria-current="page"{{end}}>Cluster</a>
|
|
{{- /* Limits and usage are tabs of the people page, not pages of their own. */}}
|
|
<a href="/admin/users"{{if eq .Current "people"}} aria-current="page"{{end}}>People</a>
|
|
{{- if .Mirror}}
|
|
<a href="/admin/mirror"{{if eq .Current "mirror"}} aria-current="page"{{end}}>Mirror</a>
|
|
{{- end}}
|
|
{{- if .Guard}}
|
|
<a href="/admin/guard"{{if eq .Current "guard"}} aria-current="page"{{end}}>Guardrails</a>
|
|
{{- end}}
|
|
{{- /* An organization is a panel of the people page for an administrator;
|
|
/org is the managers' view, and leads an administrator there. */}}
|
|
<span class="menu-gap" aria-hidden="true"></span>
|
|
{{- end}}
|
|
<a href="/chat"{{if eq .Current "chat"}} aria-current="page"{{end}}>Chat</a>
|
|
<a href="/profile"{{if eq .Current "keys"}} aria-current="page"{{end}}>Account</a>
|
|
<a href="/docs"{{if eq .Current "docs"}} aria-current="page"{{end}}>Docs</a>
|
|
<form method="post" action="/logout" class="inline">
|
|
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
|
<button type="submit" class="link">Sign out</button>
|
|
</form>
|
|
</nav>{{end}}
|