diff --git a/docs/creating-content/documentation-pages.md b/docs/creating-content/documentation-pages.md index a41b0051a9d..9781b605969 100644 --- a/docs/creating-content/documentation-pages.md +++ b/docs/creating-content/documentation-pages.md @@ -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 @@ -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.