File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff 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
345369Hyde uses the Laravel Blade templating engine. Most parts of the included templates have been extracted into components to be customized easily.
You can’t perform that action at this time.
0 commit comments