mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-23 23:29:59 +08:00
Made docs sidebar sticky, changed theme to default
- MDN theme appeared fairly bad for markdown use, and the geometric background was a bit much. Swapped out to default theme. - Rough-added stickiness to docs sidebar, will need more work once it starts to expand possible screen height.
This commit is contained in:
@ -7,29 +7,31 @@
|
||||
<div class="grid right-focus reverse-collapse">
|
||||
<div>
|
||||
|
||||
<p class="text-uppercase text-muted mb-xm mt-l"><strong>Getting Started</strong></p>
|
||||
<div class="sticky-sidebar">
|
||||
<p class="text-uppercase text-muted mb-xm mt-l"><strong>Getting Started</strong></p>
|
||||
|
||||
<div class="text-mono">
|
||||
<div class="mb-xs"><a href="#authentication">Authentication</a></div>
|
||||
<div class="mb-xs"><a href="#request-format">Request Format</a></div>
|
||||
<div class="mb-xs"><a href="#listing-endpoints">Listing Endpoints</a></div>
|
||||
<div class="mb-xs"><a href="#error-handling">Error Handling</a></div>
|
||||
</div>
|
||||
<div class="text-mono">
|
||||
<div class="mb-xs"><a href="#authentication">Authentication</a></div>
|
||||
<div class="mb-xs"><a href="#request-format">Request Format</a></div>
|
||||
<div class="mb-xs"><a href="#listing-endpoints">Listing Endpoints</a></div>
|
||||
<div class="mb-xs"><a href="#error-handling">Error Handling</a></div>
|
||||
</div>
|
||||
|
||||
@foreach($docs as $model => $endpoints)
|
||||
<p class="text-uppercase text-muted mb-xm mt-l"><strong>{{ $model }}</strong></p>
|
||||
@foreach($docs as $model => $endpoints)
|
||||
<p class="text-uppercase text-muted mb-xm mt-l"><strong>{{ $model }}</strong></p>
|
||||
|
||||
@foreach($endpoints as $endpoint)
|
||||
<div class="mb-xs">
|
||||
<a href="#{{ $endpoint['name'] }}" class="text-mono inline block mr-s">
|
||||
<span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
|
||||
</a>
|
||||
<a href="#{{ $endpoint['name'] }}" class="text-mono">
|
||||
{{ $endpoint['controller_method'] }}
|
||||
</a>
|
||||
</div>
|
||||
@foreach($endpoints as $endpoint)
|
||||
<div class="mb-xs">
|
||||
<a href="#{{ $endpoint['name'] }}" class="text-mono inline block mr-s">
|
||||
<span class="api-method" data-method="{{ $endpoint['method'] }}">{{ $endpoint['method'] }}</span>
|
||||
</a>
|
||||
<a href="#{{ $endpoint['name'] }}" class="text-mono">
|
||||
{{ $endpoint['controller_method'] }}
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="overflow: auto;">
|
||||
|
Reference in New Issue
Block a user