Skip to content

Commit

Permalink
Fix section order
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 12, 2024
1 parent a7c6f8f commit 87eec33
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/creating-content/documentation-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,6 @@ navigation:

Sidebar grouping allows you to group items in the sidebar under category headings. This is useful for creating a sidebar with a lot of items. The official HydePHP.com docs, for instance, use this feature.


### 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.
The feature is enabled automatically when one or more of your documentation pages have the `navigation.group` property set in the front matter, or when documentation pages are organized in subdirectories. Once activated, Hyde will switch to a slightly more compact sidebar layout with pages sorted into labeled groups. Any pages without the group information will be put in the "Other" group.

#### Using Front Matter
Expand Down Expand Up @@ -197,6 +183,20 @@ By default, the site title shown in the sidebar header is generated from the con
'title' => 'API Documentation',
```

### 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.

### Sidebar page order

To quickly arrange the order of items in the sidebar, you can reorder the page identifiers in the list and the links will be sorted in that order. Link items without an entry here will fall back to the default priority of 999, putting them last.
Expand Down

0 comments on commit 87eec33

Please sign in to comment.