diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index d922146fc24..ee6ae37d20c 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -72,6 +72,7 @@ This serves two purposes: - The `Markdown::render()` method will now always render Markdown using the custom HydePHP Markdown service (thus getting smart features like our Markdown processors) in https://github.com/hydephp/develop/pull/1900 - Improved how the `MarkdownService` class is accessed, by binding it into the service container, in https://github.com/hydephp/develop/pull/1922 - Improved the media asset transfer build task to have better output in https://github.com/hydephp/develop/pull/1904 +- The full page documentation search now generates it's heading using smarter natural language processing based on the configured sidebar header in https://github.com/hydephp/develop/pull/2032 - **Many MediaFile related helpers have been changed or completely rewritten** to provide a simplified API for interacting with media files. - **Note:** For most end users, the changes will have minimal direct impact, but if you have custom code that interacts with media files, you may need to update it. - The `Asset` facade has been restructured to be more scoped and easier to use, splitting out a separate `HydeFront` facade and inlining the `AssetService` class. diff --git a/packages/framework/resources/views/pages/documentation-search.blade.php b/packages/framework/resources/views/pages/documentation-search.blade.php index c50683276d6..9ea0c59474a 100644 --- a/packages/framework/resources/views/pages/documentation-search.blade.php +++ b/packages/framework/resources/views/pages/documentation-search.blade.php @@ -1,6 +1,13 @@ @extends('hyde::layouts.docs') @section('content') -

Search the documentation site

+ @php + $title = Config::getString('docs.sidebar.header', 'Documentation'); + + $searchTitle = str_ends_with(strtolower($title), ' docs') + ? 'Search the ' . substr($title, 0, -5) . ' Documentation' + : 'Search ' . $title; + @endphp +

{{ $searchTitle }}