|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | +|-------------------------------------------------------------------------- |
| 5 | +| Documentation Module Settings |
| 6 | +|-------------------------------------------------------------------------- |
| 7 | +| |
| 8 | +| Since the Hyde documentation module has many configuration options, |
| 9 | +| they have now been broken out into their own configuration file. |
| 10 | +| |
| 11 | +*/ |
| 12 | + |
| 13 | +return [ |
| 14 | + /* |
| 15 | + |-------------------------------------------------------------------------- |
| 16 | + | Sidebar Header Name |
| 17 | + |-------------------------------------------------------------------------- |
| 18 | + | |
| 19 | + | By default, the sidebar title shown in the documentation page layouts uses |
| 20 | + | the app name suffixed with "docs". You can change it with this setting. |
| 21 | + | |
| 22 | + */ |
| 23 | + |
| 24 | + 'sidebar' => [ |
| 25 | + // The title in the sidebar header |
| 26 | + 'header' => env('SITE_NAME', 'HydePHP').' Docs', |
| 27 | + |
| 28 | + // When using a grouped sidebar, should the groups be collapsible? |
| 29 | + 'collapsible' => true, |
| 30 | + |
| 31 | + // Should the sidebar footer be shown? |
| 32 | + 'footer' => false, |
| 33 | + ], |
| 34 | + |
| 35 | + /* |
| 36 | + |-------------------------------------------------------------------------- |
| 37 | + | Documentation Site Output Directory |
| 38 | + |-------------------------------------------------------------------------- |
| 39 | + | |
| 40 | + | If you want to store the compiled documentation pages in a different |
| 41 | + | directory than the default 'docs' directory, for example to set the |
| 42 | + | specified version, you can specify the directory here. |
| 43 | + | |
| 44 | + | Note that you need to take care as to not set it to something that |
| 45 | + | may conflict with other parts, such as media or posts directories. |
| 46 | + | |
| 47 | + | The default value is 'docs'. For easy versioning you can do what |
| 48 | + | HydePHP.com does, setting it to 'docs/master'. |
| 49 | + | |
| 50 | + */ |
| 51 | + |
| 52 | + 'output_directory' => 'dev-docs', |
| 53 | + |
| 54 | + /* |
| 55 | + |-------------------------------------------------------------------------- |
| 56 | + | Collaborative Source Editing Location |
| 57 | + |-------------------------------------------------------------------------- |
| 58 | + | |
| 59 | + | @see https://hydephp.com/docs/master/documentation-pages#automatic-edit-page-button |
| 60 | + | |
| 61 | + | By adding a base URL here, Hyde will use it to create "edit source" links |
| 62 | + | to your documentation pages. Hyde expects this to be a GitHub path, but |
| 63 | + | it will probably work with other methods as well, if not, send a PR! |
| 64 | + | |
| 65 | + | You can also change the link text with the `edit_source_link_text` setting. |
| 66 | + | |
| 67 | + | Example: https://github.com/hydephp/docs/blob/master |
| 68 | + | Do not specify the filename or extension, Hyde will do that for you. |
| 69 | + | Setting the setting to null will disable the feature. |
| 70 | + | |
| 71 | + */ |
| 72 | + |
| 73 | + // 'source_file_location_base' => 'https://github.com/<user>/<repo>/<[blob/edit]>/<branch>', |
| 74 | + 'edit_source_link_text' => 'Edit Source', |
| 75 | + 'edit_source_link_position' => 'footer', // 'header', 'footer', or 'both' |
| 76 | + |
| 77 | + /* |
| 78 | + |-------------------------------------------------------------------------- |
| 79 | + | Sidebar Page Order |
| 80 | + |-------------------------------------------------------------------------- |
| 81 | + | |
| 82 | + | In the generated Documentation pages the navigation links in the sidebar |
| 83 | + | default to sort alphabetically. You can reorder the page identifiers |
| 84 | + | in the list below, and the links will get sorted in that order. |
| 85 | + | |
| 86 | + | Internally, the items listed will get a position priority of 500 + the order its found in the list. |
| 87 | + | Link items without an entry here will have fall back to the default priority of 999, putting them last. |
| 88 | + | |
| 89 | + | You can also set explicit priorities in front matter. |
| 90 | + | |
| 91 | + */ |
| 92 | + |
| 93 | + 'sidebar_order' => [ |
| 94 | + 'readme', |
| 95 | + 'installation', |
| 96 | + 'getting-started', |
| 97 | + ], |
| 98 | + |
| 99 | + /* |
| 100 | + |-------------------------------------------------------------------------- |
| 101 | + | Table of Contents Settings |
| 102 | + |-------------------------------------------------------------------------- |
| 103 | + | |
| 104 | + | The Hyde Documentation Module comes with a fancy Sidebar that, by default, |
| 105 | + | has a Table of Contents included. Here, you can configure its behavior, |
| 106 | + | content, look and feel. You can also disable the feature completely. |
| 107 | + | |
| 108 | + */ |
| 109 | + |
| 110 | + 'table_of_contents' => [ |
| 111 | + 'enabled' => true, |
| 112 | + 'min_heading_level' => 2, |
| 113 | + 'max_heading_level' => 4, |
| 114 | + ], |
| 115 | + |
| 116 | + /* |
| 117 | + |-------------------------------------------------------------------------- |
| 118 | + | Search Customization |
| 119 | + |-------------------------------------------------------------------------- |
| 120 | + | |
| 121 | + | Hyde comes with an easy to use search feature for documentation pages. |
| 122 | + | @see https://hydephp.com/docs/master/documentation-pages#search-feature |
| 123 | + | |
| 124 | + */ |
| 125 | + |
| 126 | + // Should a docs/search.html page be generated? |
| 127 | + 'create_search_page' => true, |
| 128 | + |
| 129 | + // Are there any pages you don't want to show in the search results? |
| 130 | + 'exclude_from_search' => [ |
| 131 | + 'changelog', |
| 132 | + ], |
| 133 | + |
| 134 | +]; |
0 commit comments