You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ This serves two purposes:
15
15
16
16
### Changed
17
17
-**Breaking:** The internals of the navigation system has been rewritten into a new Navigation API. This change is breaking for custom navigation implementations. For more information, see below.
18
+
-**Breaking:** The `hyde.features` configuration format has changed to use Enums instead of static method calls. For more information, see below.
18
19
- Minor: Navigation menu items are now no longer filtered by duplicates (meaning two items with the same label can now exist in the same menu) in https://github.com/hydephp/develop/pull/1573
19
20
- Minor: Due to changes in the navigation system, it is possible that existing configuration files will need to be adjusted in order for menus to look the same (in terms of ordering etc.)
20
21
- Minor: The documentation article component now supports disabling the semantic rendering using a falsy value in https://github.com/hydephp/develop/pull/1566
@@ -70,6 +71,55 @@ The following configuration entries have been updated:
70
71
- Changed configuration option `docs.table_of_contents` to `docs.sidebar.table_of_contents` in https://github.com/hydephp/develop/pull/1584
71
72
- Upgrade path: Move the `table_of_contents` option's array in the `config/docs.php` file into the `sidebar` array in the same file.
72
73
74
+
### Features configuration changes
75
+
76
+
The `hyde.features` configuration format has changed to use Enums instead of static method calls. This change is breaking as it will require you to update your `config/hyde.php` file.
77
+
78
+
#### Instead of
79
+
80
+
```php
81
+
// filepath: config/hyde.php
82
+
83
+
'features' => [
84
+
// Page Modules
85
+
Features::htmlPages(),
86
+
Features::markdownPosts(),
87
+
Features::bladePages(),
88
+
Features::markdownPages(),
89
+
Features::documentationPages(),
90
+
91
+
// Frontend Features
92
+
Features::darkmode(),
93
+
Features::documentationSearch(),
94
+
95
+
// Integrations
96
+
Features::torchlight(),
97
+
],
98
+
```
99
+
100
+
#### Use instead
101
+
102
+
```php
103
+
// filepath: config/hyde.php
104
+
105
+
'features' => [
106
+
// Page Modules
107
+
Feature::HtmlPages,
108
+
Feature::MarkdownPosts,
109
+
Feature::BladePages,
110
+
Feature::MarkdownPages,
111
+
Feature::DocumentationPages,
112
+
113
+
// Frontend Features
114
+
Feature::Darkmode,
115
+
Feature::DocumentationSearch,
116
+
117
+
// Integrations
118
+
Feature::Torchlight,
119
+
],
120
+
```
121
+
122
+
Of course, if you have disabled any of the features, do not include them in the new array.
0 commit comments