Skip to content

Commit

Permalink
Document sidebar footer customization
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 26, 2023
1 parent 20eb10e commit ddac65d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
// When using a grouped sidebar, should the groups be collapsible?
'collapsible' => true,

// Should the sidebar footer be shown?
// Should the sidebar footer be shown? You can also set this to a string
// of Markdown to show in the footer. Set to `false` to disable.
'footer' => true,
],

Expand Down
14 changes: 14 additions & 0 deletions docs/creating-content/documentation-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,20 @@ The feature is enabled automatically when one or more of your documentation page
in the front matter. This will then switch to a slightly more compact sidebar layout with pages sorted into categories.
Any pages without the group front matter will get put in the "Other" group.

### Sidebar footer customization

The sidebar footer contains, by default, a link to your site homepage. You can change this in the `config/docs.php` file.

```php
// filepath: config/docs.php
'sidebar' => [
'footer' => 'My **Markdown** Footer Text',
],
```

You can also set the option to `false` to disable it entirely.

#### Using Front Matter

To enable sidebar grouping, you can add the following front matter to your documentation pages:
Expand Down
3 changes: 2 additions & 1 deletion packages/framework/config/docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
// When using a grouped sidebar, should the groups be collapsible?
'collapsible' => true,

// Should the sidebar footer be shown?
// Should the sidebar footer be shown? You can also set this to a string
// of Markdown to show in the footer. Set to `false` to disable.
'footer' => true,
],

Expand Down

0 comments on commit ddac65d

Please sign in to comment.