-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract documentation configuration options to docs.php
- Loading branch information
1 parent
807d085
commit 92b9ae5
Showing
14 changed files
with
140 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Draft for the release notes of upcoming HydePHP versions | ||
|
||
## Changes to the configuration files | ||
|
||
The entire configuration system has been refactored. | ||
|
||
### Snake_case is used for all configuration keys | ||
|
||
All configuration keys are now in the snake_case_format. Published configuration files will need to be updated accordingly. This is pretty fast in a modern code editor like VS Code. | ||
|
||
### Documentation options have been moved to a new file | ||
|
||
The documentation page specific options have been moved to the `config/docs.php` file. | ||
You may need to republish Blade views if you have done so before. | ||
|
||
This is also easy to do in a modern code editor. See this example of the search and replace I used | ||
to update the codebase: | ||
|
||
`hyde.docs_sidebar_header_title` => `docs.header_title` | ||
|
||
|
||
### Deprecations and removals | ||
|
||
The deprecated option named `hyde.docs_directory` has been removed. | ||
|
||
Use `docs.output_directory` instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Documentation Module Settings | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Since the Hyde documentation module has many configuration options, | ||
| they have now been broken out into their own configuration file. | ||
| | ||
*/ | ||
|
||
return [ | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Sidebar Header Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| By default, the sidebar title shown in the documentation page layouts uses | ||
| the app name suffixed with "docs". You can change it with this setting. | ||
| | ||
*/ | ||
|
||
'header_title' => config('hyde.name', 'HydePHP').' Docs', | ||
|
||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Documentation Site Output Directory | ||
|-------------------------------------------------------------------------- | ||
| | ||
| If you want to store the compiled documentation pages in a different | ||
| directory than the default 'docs' directory, for example to set the | ||
| specified version, you can specify the directory here. | ||
| | ||
| Note that you need to take care as to not set it to something that | ||
| may conflict with other parts, such as media or posts directories. | ||
| | ||
| The default value is 'docs'. For easy versioning you can do what | ||
| HydePHP.com does, setting it to 'docs/master'. | ||
| | ||
*/ | ||
|
||
'output_directory' => 'docs', | ||
|
||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Sidebar Page Order | ||
|-------------------------------------------------------------------------- | ||
| | ||
| In the generated Documentation pages the navigation links in the sidebar | ||
| are sorted alphabetically by default. As this rarely makes sense, you | ||
| can reorder the page slugs in the list and the links will be sorted | ||
| in that order. Link items without an entry here will have fall | ||
| back to the default priority of 999, putting them last. | ||
| | ||
| You can also set explicit priorities in front matter. | ||
| | ||
*/ | ||
|
||
'sidebar_order' => [ | ||
'readme', | ||
'installation', | ||
'getting-started', | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Table of Contents Settings | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The Hyde Documentation Module comes with a fancy Sidebar that, by default, | ||
| has a Table of Contents included. Here, you can configure its behavior, | ||
| content, look and feel. You can also disable the feature completely. | ||
| | ||
*/ | ||
|
||
'table_of_contents' => [ | ||
'enabled' => true, | ||
'min_heading_level' => 2, | ||
'max_heading_level' => 4, | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.