Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1510 commits
Select commit Hold shift + click to select a range
d462ff7
Fix test method name
emmadesilva Mar 23, 2024
cf52c68
Create new test method with more realistic sample
emmadesilva Mar 23, 2024
180e8f0
Inline variable
emmadesilva Mar 23, 2024
ae51390
Inline variable
emmadesilva Mar 23, 2024
71aa97d
Rename variables
emmadesilva Mar 23, 2024
22cf763
Assert null
emmadesilva Mar 23, 2024
8a89a37
Extract helper method
emmadesilva Mar 23, 2024
c4d7884
Remove variable
emmadesilva Mar 23, 2024
e93a0c5
Section code
emmadesilva Mar 23, 2024
89debff
Add comment
emmadesilva Mar 23, 2024
c739943
Revert "Remove variable"
emmadesilva Mar 23, 2024
066a804
Allow setting the identifier in the testing helper method
emmadesilva Mar 23, 2024
d70fccf
Add more assertions
emmadesilva Mar 23, 2024
65352b8
Remove overlapping tests
emmadesilva Mar 23, 2024
2baf0d0
Extract helper method
emmadesilva Mar 23, 2024
73e60d4
Move up helper method in class
emmadesilva Mar 23, 2024
655598c
Use ChatGPT to split out assertions into new tests
emmadesilva Mar 23, 2024
a4cd4af
Inline local variables
emmadesilva Mar 23, 2024
5b51089
Add missing newline
emmadesilva Mar 23, 2024
7e86d30
Comment logic abstract
emmadesilva Mar 23, 2024
1495094
Draft new unit tests
emmadesilva Mar 23, 2024
528d9f4
Implement the tests
emmadesilva Mar 23, 2024
04aa0f6
Add additional unit test
emmadesilva Mar 23, 2024
d0ef005
Add additional unit test
emmadesilva Mar 23, 2024
3544605
Compare using deterministic logic instead of legacy loop
emmadesilva Mar 23, 2024
2e96c02
Add early check for index page handling
emmadesilva Mar 23, 2024
d167719
Remove legacy code that is now no longer needed
emmadesilva Mar 23, 2024
1c1080f
Add back code comment
emmadesilva Mar 23, 2024
c860213
Inline method
emmadesilva Mar 23, 2024
f9886f2
Merge up conditional into null return block
emmadesilva Mar 23, 2024
ddcb510
Shift down code comment
emmadesilva Mar 23, 2024
ec6139b
Rename loop variable to better match type
emmadesilva Mar 23, 2024
8ef1198
Remove unused null coalesce to other group
emmadesilva Mar 23, 2024
63ca58a
Style comment formatting
emmadesilva Mar 23, 2024
af2a511
Merge pull request #1632 from hydephp/simplify-navigation-item-group-…
emmadesilva Mar 23, 2024
a2baea5
Type hint against the shared contract
emmadesilva Mar 23, 2024
0e12bba
Merge branch '2.x-dev' into improved-navigation-internals
emmadesilva Mar 24, 2024
58be9bb
Deprecate ExternalRoute class
emmadesilva Mar 24, 2024
3bc2b90
Create NavigationDestination.php
emmadesilva Mar 24, 2024
9e734e0
Class `NavigationDestination` implements `Stringable`
emmadesilva Mar 24, 2024
50180ce
Deprecate ExternalRoute class
emmadesilva Mar 24, 2024
e2ec80d
Remove nullable type from route property
emmadesilva Mar 24, 2024
9353eef
Remove nullable destination parameter type
emmadesilva Mar 24, 2024
64c824f
Merge branch 'improved-navigation-internals' into create-new-navigati…
emmadesilva Mar 24, 2024
6f48234
Add destination property
emmadesilva Mar 24, 2024
c6f7a59
Add constructor
emmadesilva Mar 24, 2024
8486105
Implement stringable method
emmadesilva Mar 24, 2024
954ccc7
Get route instance for route keys
emmadesilva Mar 24, 2024
8da04db
Add get link method
emmadesilva Mar 24, 2024
fff2088
Deprecate route property
emmadesilva Mar 24, 2024
74a98f5
Add new destination property
emmadesilva Mar 24, 2024
a56db50
Construct destination
emmadesilva Mar 24, 2024
b28c520
Get link using new destination class
emmadesilva Mar 24, 2024
e8c1f2f
Add experimental route getter
emmadesilva Mar 24, 2024
5cc2163
Get route using destination
emmadesilva Mar 24, 2024
6efd8b9
Skip tests needing to be reimplemented for https://github.com/hydephp…
emmadesilva Mar 24, 2024
c520390
Use null check instead of instanceof on deprecated class
emmadesilva Mar 24, 2024
faea07b
Reimplement tests for changed types
emmadesilva Mar 24, 2024
f5a3567
Compare state using destination
emmadesilva Mar 24, 2024
3910899
Use accessor with same logic
emmadesilva Mar 24, 2024
cdceed7
Remove deprecated route property
emmadesilva Mar 24, 2024
d16368c
Deprecate methods we probably don't actually need
emmadesilva Mar 24, 2024
eb81668
Skip tests needing to be reimplemented for #1636
emmadesilva Mar 24, 2024
798acda
Normalize logic with new destination constructor
emmadesilva Mar 24, 2024
6a64d13
Remove type check for old class
emmadesilva Mar 24, 2024
1eea4de
Update deprecation notice
emmadesilva Mar 24, 2024
218590d
Replace dependences on deprecated class with inlined strings
emmadesilva Mar 24, 2024
6794194
Remove logic added to base of test
emmadesilva Mar 24, 2024
ba65f1c
Delete ExternalRoute.php
emmadesilva Mar 24, 2024
72fce42
Revert "Skip tests needing to be reimplemented for #1636"
emmadesilva Mar 24, 2024
cab21b7
Reimplement tests for changed types
emmadesilva Mar 24, 2024
0dec761
Rename test for removed class
emmadesilva Mar 24, 2024
976d7ff
Remove removed new class from release notes
emmadesilva Mar 24, 2024
3eca812
Merge pull request #1636 from hydephp/create-new-navigation-destinati…
emmadesilva Mar 24, 2024
45332ec
Add a new page accessor
emmadesilva Mar 24, 2024
2f963c6
Simplify search logic to access page directly
emmadesilva Mar 24, 2024
6aa82b7
Restructure test to improve assertions
emmadesilva Mar 24, 2024
b4011e1
Use the resolved link instead of implicit route resolve
emmadesilva Mar 24, 2024
1b94a90
Remove `NavigationItem::getRoute` method
emmadesilva Mar 24, 2024
37c51c2
Rename `NavigationItem` method `getUrl` to `getLink`
emmadesilva Mar 24, 2024
53a8b08
Add type annotation
emmadesilva Mar 24, 2024
1b8cd1b
Unwrap unnecessary null check
emmadesilva Mar 24, 2024
d3b2044
Inline the navigation destination class
emmadesilva Mar 24, 2024
1ed674b
Reorder methods in class
emmadesilva Mar 24, 2024
4ea66c6
Replace early construct call with property coalesce assignments
emmadesilva Mar 24, 2024
3e4901b
Return new static instead of self
emmadesilva Mar 24, 2024
27fae01
Merge pull request #1637 from hydephp/simplify-the-navigation-items-c…
emmadesilva Mar 24, 2024
4909d15
Test create with null label
emmadesilva Mar 24, 2024
41db3d1
Test create with null label for route
emmadesilva Mar 24, 2024
0c0a87c
Update label to fall back to the supplied link
emmadesilva Mar 24, 2024
180e0df
Fix method being asserted
emmadesilva Mar 24, 2024
99ef0ed
Extract helper method
emmadesilva Mar 24, 2024
ea50e0f
Dynamically generate titles from input links
emmadesilva Mar 24, 2024
8f2bd58
Revert "Dynamically generate titles from input links"
emmadesilva Mar 24, 2024
c33a6ec
Merge pull request #1638 from hydephp/create-better-fallbacks-when-no…
emmadesilva Mar 24, 2024
71c068c
Update todo abstract
emmadesilva Mar 24, 2024
cd791af
Convert todo into deprecation
emmadesilva Mar 24, 2024
f45eb19
Deprecate accessor for deprecated property
emmadesilva Mar 24, 2024
48d945d
Deprecate the group paramters
emmadesilva Mar 24, 2024
51f5620
Remove tests for deprecated group accessor
emmadesilva Mar 24, 2024
9a893d1
Replace ternary expression with if/else block
emmadesilva Mar 24, 2024
769744f
Introduce local variable
emmadesilva Mar 24, 2024
2fafd0f
Get group key through page instance
emmadesilva Mar 24, 2024
ba03fb8
Replace conditional with ternary expression
emmadesilva Mar 24, 2024
2527648
Add clarifying parentheses
emmadesilva Mar 24, 2024
0eda65f
Use helper method with essentially the same semantics
emmadesilva Mar 24, 2024
1343543
Get group through the connected page
emmadesilva Mar 24, 2024
d362701
Remove the group property
emmadesilva Mar 24, 2024
35c2cd8
Remove group parameter documentation
emmadesilva Mar 24, 2024
fbb7b3b
No longer construct the group
emmadesilva Mar 24, 2024
daef828
Remove the group parameter from item constructor
emmadesilva Mar 24, 2024
91d9cac
Remove coalesce assignment for the removed group
emmadesilva Mar 24, 2024
8cad7f2
Remove the group parameter from item create method
emmadesilva Mar 24, 2024
8c37e94
Fix wrong order of parameter annotations
emmadesilva Mar 24, 2024
13298c4
Introduce local variable
emmadesilva Mar 24, 2024
81f2e03
Add type annotation
emmadesilva Mar 24, 2024
8ecc783
Simplify local variable name
emmadesilva Mar 24, 2024
4f3ba21
Add some spacing
emmadesilva Mar 24, 2024
be0820e
Use assert same
emmadesilva Mar 24, 2024
80f9a5c
Inline method usage
emmadesilva Mar 24, 2024
660edfc
Extract testing helper method for data access
emmadesilva Mar 24, 2024
c2254b0
Extract testing helper method for data access
emmadesilva Mar 24, 2024
524e1ea
Update DocumentationSidebarGetActiveGroupUnitTest.php
emmadesilva Mar 24, 2024
c52a912
Move up test in source
emmadesilva Mar 24, 2024
09b909f
Use fluent method call
emmadesilva Mar 24, 2024
749d41c
Remove `getGroupKey` method from `NavigationElement` contract
emmadesilva Mar 24, 2024
6b67552
Remove `getGroupKey` method from `NavigationItem` class
emmadesilva Mar 24, 2024
c359bca
Move group key normalization method to navigation group class
emmadesilva Mar 24, 2024
74933b8
Remove null support from group key normalization method
emmadesilva Mar 24, 2024
eb346e9
Add null type check
emmadesilva Mar 24, 2024
de6993b
Mark group key normalization method as experimental
emmadesilva Mar 24, 2024
16ded04
Merge pull request #1639 from hydephp/remove-the-group-property-from-…
emmadesilva Mar 24, 2024
67c5d1d
Rename local closure variables
emmadesilva Mar 25, 2024
34f2569
Deprecate the navigation element contract
emmadesilva Mar 25, 2024
3175f91
Replace interface type hint with union type
emmadesilva Mar 25, 2024
9b1a1d0
No longer implement navigation element contract
emmadesilva Mar 25, 2024
4385cc7
Delete NavigationElement.php
emmadesilva Mar 25, 2024
b09400a
Merge pull request #1640 from hydephp/remove-the-navigation-element-c…
emmadesilva Mar 25, 2024
c870acb
Clean up test
emmadesilva Mar 25, 2024
ea15074
Clean up test
emmadesilva Mar 25, 2024
c5d0417
Remove abstract modifier from navigation menu class
emmadesilva Mar 25, 2024
2beb314
Create NavigationAPITest.php
emmadesilva Mar 25, 2024
102df43
Set up test kernel
emmadesilva Mar 25, 2024
c462c62
Revert "Set up test kernel"
emmadesilva Mar 25, 2024
10a7427
Merge branch '2.x-dev' into improved-navigation-internals
emmadesilva Mar 25, 2024
85f8aa2
Update NavigationMenu to implement Arrayable
emmadesilva Mar 25, 2024
72b7417
Draft to array method
emmadesilva Mar 25, 2024
7e8aee5
Mark method as experimental
emmadesilva Mar 25, 2024
fe76c48
Annotate full array generics
emmadesilva Mar 25, 2024
493aee8
Add null safety to active state check
emmadesilva Mar 25, 2024
473ac20
Draft test setup
emmadesilva Mar 25, 2024
d8630e7
Create initial array representation
emmadesilva Mar 25, 2024
c188e01
Update array keys to match data structure
emmadesilva Mar 25, 2024
091c937
Remove active state from array
emmadesilva Mar 25, 2024
38050af
Array serialize navigation groups
emmadesilva Mar 25, 2024
b1d62bf
Make navigation menu serializable
emmadesilva Mar 25, 2024
86cdc95
Revert "Make navigation menu serializable"
emmadesilva Mar 25, 2024
ecbe2fb
Simplify array data structure
emmadesilva Mar 25, 2024
cb08b9f
Flatten array keys
emmadesilva Mar 25, 2024
151992d
Put labels first in array representation
emmadesilva Mar 25, 2024
612df23
Cleanup and normalize formatting
emmadesilva Mar 25, 2024
8a316b3
Update array generics for updated structure
emmadesilva Mar 25, 2024
3af4c3b
Move experimental helper to test
emmadesilva Mar 25, 2024
1332d65
Update test abstract
emmadesilva Mar 25, 2024
974a77d
Begin adding code driven documentation
emmadesilva Mar 25, 2024
3d9e712
Create navigation-api.md
emmadesilva Mar 25, 2024
45c6252
Add warning
emmadesilva Mar 25, 2024
d930787
Add abstract
emmadesilva Mar 25, 2024
3562024
Document target reader
emmadesilva Mar 25, 2024
adb51bf
Document overview
emmadesilva Mar 25, 2024
c6a5cbd
Document visualisation
emmadesilva Mar 25, 2024
765c1df
Document built in menus
emmadesilva Mar 25, 2024
e4e7b3a
Test service container menus
emmadesilva Mar 25, 2024
77ca130
Improve section introduction
emmadesilva Mar 26, 2024
cffbdb6
Create new custom menu section
emmadesilva Mar 26, 2024
f567fcb
Update heading
emmadesilva Mar 26, 2024
504373c
Begin adding high level example
emmadesilva Mar 26, 2024
89ae76f
Add more complete documentation examples
emmadesilva Mar 26, 2024
cc05533
Update abstract
emmadesilva Mar 26, 2024
0b9c84d
Update section to lead to the new documentation page
emmadesilva Mar 26, 2024
d0e4948
Set up documentation coverage
emmadesilva Mar 26, 2024
5d5b0df
Begin class reference section
emmadesilva Mar 26, 2024
babd111
Add section introductions
emmadesilva Mar 26, 2024
ad47c5a
Clarifications and formatting
emmadesilva Mar 26, 2024
9a2c03e
Lower heading groups
emmadesilva Mar 26, 2024
f7ae4e1
Start sketching out item docs
emmadesilva Mar 26, 2024
13b00bc
Remove PHPDocs from constructor
emmadesilva Mar 26, 2024
f847691
Remove outdated class documentation
emmadesilva Mar 26, 2024
4a36e29
Sort property constructors
emmadesilva Mar 26, 2024
3bcafeb
Extract helper method
emmadesilva Mar 26, 2024
1b35793
Update constructor to use the same logic as the static create method
emmadesilva Mar 26, 2024
b3c87c2
Update and normalize class documentation and constructors
emmadesilva Mar 26, 2024
78ff7d2
Annotate array return generics
emmadesilva Mar 26, 2024
26cd0bf
Use fully qualified class name in type annotation
emmadesilva Mar 26, 2024
15b8b65
Test construct with null label
emmadesilva Mar 26, 2024
377a2ba
Create new documentation for simplified API
emmadesilva Mar 26, 2024
2c11b05
Swap order of examples
emmadesilva Mar 26, 2024
26baea1
Revert "Swap order of examples"
emmadesilva Mar 26, 2024
39ea38d
Clean up examples
emmadesilva Mar 26, 2024
4df7c70
Fix typo in code comment
emmadesilva Mar 26, 2024
0c29b9a
Document using external URLs
emmadesilva Mar 26, 2024
aea7e3a
Document examples more
emmadesilva Mar 26, 2024
80b2b97
Test item sorting
emmadesilva Mar 26, 2024
b542d4b
Style array key order
emmadesilva Mar 26, 2024
790c975
Clean up examples
emmadesilva Mar 26, 2024
894425b
Style examples
emmadesilva Mar 26, 2024
57e6608
Format Markdown
emmadesilva Mar 26, 2024
49f5b1f
Normalize Markdown
emmadesilva Mar 26, 2024
36eba07
Add quick references
emmadesilva Mar 26, 2024
a5b3e86
Add example context
emmadesilva Mar 26, 2024
7204ba9
Format method documentation
emmadesilva Mar 26, 2024
c9824a9
Add method documentation
emmadesilva Mar 27, 2024
cbd5849
Add commented Copilot idea
emmadesilva Mar 27, 2024
44cb271
Formatting
emmadesilva Mar 27, 2024
0191d44
Document alternate syntax
emmadesilva Mar 27, 2024
7149976
Document import
emmadesilva Mar 27, 2024
892b890
Document setup
emmadesilva Mar 27, 2024
3948eb8
Add initial menu documentation
emmadesilva Mar 27, 2024
a822c42
Revert "Document setup"
emmadesilva Mar 27, 2024
13cb289
Clean up documentation
emmadesilva Mar 27, 2024
8a5ceb3
Remove redundant example
emmadesilva Mar 27, 2024
f46b2de
Split out examples
emmadesilva Mar 27, 2024
619d7ee
Merge lines
emmadesilva Mar 27, 2024
d696a1b
Clean up heading levels
emmadesilva Mar 27, 2024
6021f7b
Fix typo
emmadesilva Mar 27, 2024
83b1fbc
Format class names
emmadesilva Mar 27, 2024
7d61603
Begin new section
emmadesilva Mar 27, 2024
41fb7cc
Change internal group items to be collection
emmadesilva Mar 27, 2024
bfa64bf
Return the items as the collection
emmadesilva Mar 27, 2024
8b2daf0
Support nesting navigation groups
emmadesilva Mar 28, 2024
62d6930
Sort grouped navigation items on retrieval
emmadesilva Mar 28, 2024
fa70254
Create HasNavigationItems.php
emmadesilva Mar 28, 2024
6b7cc4a
Use HasNavigationItems
emmadesilva Mar 28, 2024
e91503b
Document trait abstract
emmadesilva Mar 28, 2024
bccde3d
Move shared logic to trait
emmadesilva Mar 28, 2024
f80795f
Merge pull request #1630 from hydephp/restructure-navigation-item-oop…
emmadesilva Mar 28, 2024
dbc2379
Revert "Use HasNavigationItems"
emmadesilva Mar 28, 2024
cfe9784
Merge trait back into menu class
emmadesilva Mar 28, 2024
841d1bf
Revert "Create HasNavigationItems.php"
emmadesilva Mar 28, 2024
b412f34
Update navigation group to extend menu class
emmadesilva Mar 28, 2024
8461e60
Move up parent constructor call
emmadesilva Mar 28, 2024
cc803ba
Remove unused import
StyleCIBot Mar 28, 2024
544769a
Merge pull request #1645 from hydephp/restructure-navigation-item-oop…
emmadesilva Mar 28, 2024
b1f5867
Document the navigation group class
emmadesilva Mar 29, 2024
6042642
Unwrap collect calls for already collected items
emmadesilva Mar 29, 2024
89c4890
Fix formatting
emmadesilva Mar 29, 2024
c681406
Merge pull request #1642 from hydephp/simplify-public-navigation-apis
emmadesilva Mar 29, 2024
75de730
Update navigation documentation for v2 rewrite
emmadesilva Mar 31, 2024
0129142
Create documentation note
emmadesilva Mar 31, 2024
cc2756e
Update RELEASE_NOTES.md
emmadesilva Mar 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 63 additions & 5 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ This serves two purposes:
- Added a new `\Hyde\Framework\Actions\PreBuildTasks\TransferMediaAssets` build task handle media assets transfers for site builds.

### Changed
- **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.
- 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
- 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.)
- Minor: The documentation article component now supports disabling the semantic rendering using a falsy value in https://github.com/hydephp/develop/pull/1566
- Changed how the documentation search is generated, to be an `InMemoryPage` instead of a post-build task.
- Media asset files are now copied using the new build task instead of the deprecated `BuildService::transferMediaAssets()` method.
- Minor: The documentation article component now supports disabling the semantic rendering using a falsy value in https://github.com/hydephp/develop/pull/1566

### Deprecated
- for soon-to-be removed features.
Expand All @@ -41,6 +44,32 @@ Please see the "Breaking changes & upgrade guide" section below for more informa

Please read through this section to ensure your site upgrades smoothly.

## High impact

### Navigation system rewrite

The navigation system has been rewritten into a new Navigation API. This change is breaking for custom navigation implementations, see more down below.

For most users, the only impact will be that configuration files need to be updated to use the new configuration format. Due to the internal changes,
it's also possible that menu items will be in a slightly different order than before, depending on your setup. Please verify that your site's menus
look as expected after upgrading, and adjust the configuration files if necessary, before deploying to production.

### Navigation and sidebar configuration changes

The navigation and sidebar configuration files have been updated to use the new Navigation API.
This means that you will need to update your configuration files to use the new format.

The easiest way to upgrade is to publish updated configuration files (`hyde.php` and `docs.php`) and copy over your customizations.

The following configuration entries have been updated:

- Changed configuration option `docs.sidebar_order` to `docs.sidebar.order` in https://github.com/hydephp/develop/pull/1583
- Upgrade path: Move the `sidebar_order` option's array in the `config/docs.php` file into the `sidebar` array in the same file.

- Changed configuration option `docs.table_of_contents` to `docs.sidebar.table_of_contents` in https://github.com/hydephp/develop/pull/1584
- Upgrade path: Move the `table_of_contents` option's array in the `config/docs.php` file into the `sidebar` array in the same file.


## General impact

### Documentation search page changes
Expand All @@ -49,26 +78,55 @@ The documentation search page and search index have been changed to be generated

The main impact noticeable to most users by this is the implicit changes, like the pages showing up in the dashboard and route list command.

In case you have customized the `GenerateSearch` post-build task you may, depending on what you were trying to do,
In case you have customized the `GenerateSearch` post-build task you may, depending on what you were trying to do,
want to adapt your code to interact with the new `InMemoryPage`, which is generated in the `HydeCoreExtension` class.

For more information, see https://github.com/hydephp/develop/pull/1498.

## Low impact

### Navigation internal changes

The navigation system has been rewritten into a new Navigation API. This change is breaking for custom navigation implementations.

If you have previously in your custom code done any of the following, or similar, you will need to adapt your code to use the new Navigation API:
- Created custom navigation menus or Blade components
- Extended or called the navigation related classes directly
- Customized the navigation system in any way beyond the standard configuration


#### Upgrade guide

Due to the scope of the rewrite, the easiest and fastest way to upgrade your code is to recreate it using the new Navigation API.

- For a full comparison of the changes, you may see the PR that introduced the new API: https://github.com/hydephp/develop/pull/1568/files
- For information on how to use the new Navigation API, see the documentation: https://hydephp.com/docs/2.x/navigation-api

### HTML ID changes

Some HTML IDs have been renamed to follow a more consistent naming convention.

If you have used any of the following selectors in custom code you wrote yourself, you will need to update to use the new changed IDs.

#### https://github.com/hydephp/develop/pull/1622
- Rename HTML ID `#searchMenu` to `#search-menu`
- Rename HTML ID `#searchMenuButton` to `#search-menu-button`
- Rename HTML ID `#searchMenuButtonMobile` to `#search-menu-button-mobile`


### New documentation search implementation

As the new documentation search implementation brings changes to their code API you may need to adapt your code
according to the information below in case you wrote custom code that interacted with these parts of the codebase.

- The `GenerateSearch` post-build task has been removed. If you have previously extended or customized this class,
- The `GenerateSearch` post-build task has been removed. If you have previously extended or customized this class,
you will need to adapt your code, as the search index files are now handled implicitly during the standard build process,
as the search pages are now added to the kernel page and route collection. (https://github.com/hydephp/develop/pull/1498)

- If your site has a custom documentation search page, for example `_docs/search.md` or `_pages/docs/search.blade.php`,
that page will no longer be built when using the specific `build:search` command. It will, of course,
that page will no longer be built when using the specific `build:search` command. It will, of course,
be built using the standard `build` command. https://github.com/hydephp/develop/commit/82dc71f4a0e7b6be7a9f8d822fbebe39d2289ced

- In the highly unlikely event your site customizes any of the search pages by replacing them in the kernel route collection,
you would now need to do that in the kernel page collection due to the search pages being generated earlier in the lifecycle.
https://github.com/hydephp/develop/commit/82dc71f4a0e7b6be7a9f8d822fbebe39d2289ced
Expand Down
5 changes: 5 additions & 0 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
/** @var string $routeKey The route key for the page being compiled/previewed */
$routeKey = \Hyde\Support\Facades\Render::getRouteKey();

// Variables available only to some page types

/** @var \Hyde\Framework\Features\Navigation\DocumentationSidebar $sidebar */
$sidebar = app('navigation.sidebar');

// Facades (aliased in app/config.php)

/** @mixin \Hyde\Foundation\HydeKernel */
Expand Down
1 change: 1 addition & 0 deletions app/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
Hyde\Foundation\Providers\ConfigurationServiceProvider::class,
Hyde\Framework\HydeServiceProvider::class,
Hyde\Foundation\Providers\ViewServiceProvider::class,
Hyde\Foundation\Providers\NavigationServiceProvider::class,
Hyde\Console\ConsoleServiceProvider::class,
],

Expand Down
84 changes: 42 additions & 42 deletions config/docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,49 +30,49 @@
// When using a grouped sidebar, should the groups be collapsible?
'collapsible' => true,

// Should the sidebar footer be shown? You can also set this to a string
// of Markdown to show in the footer. Set to `false` to disable.
'footer' => true,
],

/*
|--------------------------------------------------------------------------
| Sidebar Page Order
|--------------------------------------------------------------------------
|
| In the generated Documentation pages the navigation links in the sidebar
| default to sort alphabetically. You can reorder the page identifiers
| in the list below, and the links will get sorted in that order.
|
| The items will get a priority of 500 plus the order its found in the list.
| Pages without a priority will fall back to the default priority of 999.
|
| You can also set explicit priorities in front matter or by specifying
| a value to the array key in the list to override the inferred value.
|
*/

'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.
|
*/
// A string of Markdown to show in the footer. Set to `false` to disable.
'footer' => '[Back to home page](../)',

/*
|--------------------------------------------------------------------------
| Sidebar Page Order
|--------------------------------------------------------------------------
|
| In the generated Documentation pages the navigation links in the sidebar
| default to sort alphabetically. You can reorder the page identifiers
| in the list below, and the links will get sorted in that order.
|
| The items will get a priority of 500 plus the order its found in the list.
| Pages without a priority will fall back to the default priority of 999.
|
| You can also set explicit priorities in front matter or by specifying
| a value to the array key in the list to override the inferred value.
|
*/

'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,
],

'table_of_contents' => [
'enabled' => true,
'min_heading_level' => 2,
'max_heading_level' => 4,
],

/*
Expand Down
2 changes: 1 addition & 1 deletion config/hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
// To get started quickly, you can uncomment the defaults here.
// See the documentation link above for more information.
'custom' => [
// NavItem::forLink('https://github.com/hydephp/hyde', 'GitHub', 200),
// NavigationItem::create('https://github.com/hydephp/hyde', 'GitHub', 200),
],

// How should pages in subdirectories be displayed in the menu?
Expand Down
Loading