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>
27 lines
1 KiB
PHP
27 lines
1 KiB
PHP
@extends('docs::layout')
|
|
|
|
@section('title', 'Search')
|
|
|
|
@section('content')
|
|
<div class="prose">
|
|
<h1>Search Results</h1>
|
|
|
|
@if($query)
|
|
<p style="color: var(--muted);">{{ count($results) }} result{{ count($results) !== 1 ? 's' : '' }} for "{{ $query }}"</p>
|
|
|
|
@if(count($results) > 0)
|
|
@foreach($results as $result)
|
|
<div style="padding: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; margin: 1rem 0;">
|
|
<a href="/{{ $result['section'] }}/{{ $result['page'] }}" style="font-weight: 600;">{{ $result['label'] }}</a>
|
|
<span style="color: var(--dim); font-size: 0.8rem; margin-left: 0.5rem;">{{ $result['sectionLabel'] }}</span>
|
|
<p style="color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem;">...{{ $result['snippet'] }}...</p>
|
|
</div>
|
|
@endforeach
|
|
@else
|
|
<p>No documentation pages match your search. Try different keywords.</p>
|
|
@endif
|
|
@else
|
|
<p>Enter a search term above.</p>
|
|
@endif
|
|
</div>
|
|
@endsection
|