lthn.io/app/Website/Docs/Views/index.blade.php
Claude 0bc44d483d
feat: Website/Docs module for docs.lthn.io
Full documentation site with sidebar navigation, search, markdown
rendering, and prev/next navigation. Initial content: introduction,
chain overview, name system, API reference, CIC governance.

Lethean Boot.php now only registers routes on matching domains
(lthn.io, testnet.lthn.io, localhost) — no longer bleeds onto
api.*, docs.*, explorer.* subdomains.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 10:07:21 +01:00

34 lines
1.9 KiB
PHP

@extends('docs::layout')
@section('title', 'Documentation')
@section('content')
<div class="prose">
<h1>Lethean Documentation</h1>
<p style="font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem;">
Everything you need to build on the Lethean blockchain from registering your first .lthn name to running a gateway node.
</p>
<div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin: 2rem 0;">
@foreach($navigation as $section => $data)
<a href="/{{ $section }}/{{ array_key_first($data['pages']) }}" style="display: block; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; text-decoration: none; transition: border-color 0.2s;">
<div style="font-weight: 600; color: var(--text); margin-bottom: 0.25rem;">{{ $data['label'] }}</div>
<div style="font-size: 0.85rem; color: var(--dim);">
{{ count($data['pages']) }} {{ count($data['pages']) === 1 ? 'page' : 'pages' }}
&mdash;
{{ implode(', ', array_slice(array_values($data['pages']), 0, 3)) }}{{ count($data['pages']) > 3 ? '...' : '' }}
</div>
</a>
@endforeach
</div>
<h2>Quick Links</h2>
<ul>
<li><a href="/getting-started/introduction">What is Lethean?</a> &mdash; blockchain, CIC governance, why it matters</li>
<li><a href="/getting-started/registration">Register a .lthn name</a> &mdash; step-by-step guide</li>
<li><a href="/api/overview">API Reference</a> &mdash; 29 endpoints for names, DNS, proxy, and explorer</li>
<li><a href="/chain/overview">Blockchain Overview</a> &mdash; PoW+PoS hybrid, Zano fork, ITNS sidechain</li>
<li><a href="/governance/cic">CIC Governance</a> &mdash; how the community owns the company</li>
</ul>
</div>
@endsection