Skip to content

Commit a05839c

Browse files
authored
Merge pull request #1484 from hydephp/document-automatic-subdirectory-navigation-dropdowns
Document automatic subdirectory navigation dropdown configuration
2 parents 6e0dd82 + d983c90 commit a05839c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/digging-deeper/customization.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,30 @@ Simplified, this will then be rendered as follows:
340340
<a href="https://github.com/hydephp/hyde">GitHub</a>
341341
```
342342

343+
#### Automatic navigation menu dropdowns
344+
345+
HydePHP has a neat feature to automatically place pages in dropdowns based on subdirectories.
346+
347+
For pages that can be in the main site menu, ths feature needs to be enabled in the `hyde.php` config file.
348+
349+
```php
350+
// filepath config/hyde.php
351+
352+
'navigation' => [
353+
'subdirectories' => 'dropdown',
354+
],
355+
```
356+
357+
Now if you create a page called `_pages/about/contact.md` it will automatically be placed in a dropdown called "About".
358+
359+
#### Automatic documentation sidebar grouping
360+
361+
This feature works similarly to the automatic navigation menu dropdowns, but instead place the sidebar items in named groups.
362+
This feature is enabled by default, so you only need to place your pages in subdirectories to have them grouped.
363+
364+
For example: `_docs/getting-started/installation.md` will be placed in a group called "Getting Started".
365+
366+
343367
## Blade Views
344368

345369
Hyde uses the Laravel Blade templating engine. Most parts of the included templates have been extracted into components to be customized easily.

0 commit comments

Comments
 (0)