Skip to content

Commit 11f0c26

Browse files
committed
Tweak nav
1 parent 172e44b commit 11f0c26

File tree

5 files changed

+32
-11
lines changed

5 files changed

+32
-11
lines changed

docs/features.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
hide:
3+
- navigation
4+
---
15
!!! warning
26

37
Debugbar can slow the application down (because it has to gather and render data). So when experiencing slowness, try disabling some of the collectors.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ template: home.html
33
title: Laravel Debugbar
44
hide:
55
- navigation
6-
- toc
6+
- toc
77
---

docs/install.md renamed to docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The Debugbar will be enabled when `APP_DEBUG` is `true`.
1717

1818
> If you use a catch-all/fallback route, make sure you load the Debugbar ServiceProvider before your own App ServiceProviders.
1919
20-
### Laravel without auto-discovery:
20+
### Without auto-discovery
2121

2222
If you don't use auto-discovery, add the ServiceProvider to the providers list. For Laravel 11 or newer, add the ServiceProvider in bootstrap/providers.php. For Laravel 10 or older, add the ServiceProvider in config/app.php.
2323

@@ -39,13 +39,13 @@ The profiler is enabled by default, if you have APP_DEBUG=true. You can override
3939
You can also set in your config if you want to include/exclude the vendor files also (FontAwesome, Highlight.js and jQuery). If you already use them in your site, set it to false.
4040
You can also only display the js or css vendors, by setting it to 'js' or 'css'. (Highlight.js requires both css + js, so set to `true` for syntax highlighting)
4141

42-
#### Copy the package config to your local config with the publish command:
42+
### Publish config
4343

4444
```shell
4545
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
4646
```
4747

48-
### Laravel with Octane:
48+
### With Octane
4949

5050
Make sure to add LaravelDebugbar to your flush list in `config/octane.php`.
5151

@@ -55,7 +55,7 @@ Make sure to add LaravelDebugbar to your flush list in `config/octane.php`.
5555
],
5656
```
5757

58-
### Lumen:
58+
### With Lumen
5959

6060
For Lumen, register a different Provider in `bootstrap/app.php`:
6161

mkdocs.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
site_name: Laravel Debugbar
2+
site_author: Barry vd. Heuvel
23
site_description: Debugbar for Laravel
34
site_url: https://laraveldebugbar.com
45
repo_url: https://github.com/barryvdh/laravel-debugbar
6+
edit_uri: ./edit/docs/docs
7+
copyright: Copyright © Barry vd. Heuvel
8+
59
nav:
610
- Home: index.md
7-
- Install: install.md
11+
- Getting started:
12+
- Install: installation.md
13+
- Usage: usage.md
814
- Features: features.md
9-
- Usage: usage.md
15+
1016
theme:
1117
name: material
1218
custom_dir: overrides
@@ -26,6 +32,9 @@ theme:
2632
- navigation.sections
2733
- navigation.expand
2834
- content.code.copy
35+
- content.action.edit
36+
- toc.follow
37+
- search.highlight
2938
extra_css:
3039
- assets/extra.css
3140
- assets/debugbar.css
@@ -45,4 +54,11 @@ markdown_extensions:
4554
startinline: true
4655
- pymdownx.inlinehilite
4756
- pymdownx.snippets
48-
- pymdownx.superfences
57+
- pymdownx.superfences
58+
- toc:
59+
permalink: true
60+
- pymdownx.magiclink:
61+
normalize_issue_symbols: true
62+
repo_url_shorthand: true
63+
user: barryvdh
64+
repo: laravel-debugbar

overrides/home.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
.md-content h1, .home-content h1 {
1313
display: none
1414
}
15-
15+
.md-content__button {
16+
display: none;
17+
}
1618
@media screen and (min-width: 60em) {
1719
.md-sidebar--secondary {
1820
display: none
@@ -45,10 +47,9 @@ <h1>{{ config.site_description }}</h1>
4547
</div>
4648
<div class="mdx-hero__content">
4749

48-
<p>Get started in 1 minute.</p>
4950
<a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | e }}"
5051
class="md-button md-button--primary">
51-
Install
52+
Get started
5253
</a>
5354
<a href="{{ config.repo_url }}" title="View on Github" class="md-button">
5455
View on Github

0 commit comments

Comments
 (0)