Releases: hydephp/framework
v0.27.1-beta - Remove unused annotation from config
What's Changed
- Fix #403: Remove @HydeConfigVersion annotation from config/hyde.php by @caendesilva in #408
Full Changelog: v0.27.0-beta...v0.27.1-beta
v0.27.0-beta - Adds sitemap generation
New Features
Adds sitemap.xml generation
When a site_url is set, (and the feature is not disabled in the config), a sitemap.xml will automatically be generated during the static site building process.
Changes
ext-simplexml
has been added as a requirement tocomposer.json
- The order of page builders have been changed, so that Blade and Markdown pages are compiled first.
This allows you to browse the most common parts of the site (like the index page) while the other
pages are being generated. - Merge "Site URL Configuration" options. Please republish your configs.
What's Changed
- Add sitemap.xml generation by @caendesilva in #404
Full Changelog: v0.26.0-beta...v0.27.0-beta
v0.26.0-beta - "The Meta Update"
About
This release improves how metadata is generated and handled. It contains breaking changes.
Upgrading
Please note that this update contains breaking changes in the config file and blade templates.
To update, you will need to update the config/hyde.php
file, as well as any Blade templates you may have published.
What's Changed
Please see the following pull requests for more detailed information about each.
-
Unify the $page property and add a fluent metadata helper by @caendesilva in #388
-
Remove redundancy and merge Meta and Metadata models #384 by @caendesilva in #390
-
Update helper namespaces by @caendesilva in #395
-
Fix #385: Move page parsers into models/parsers namespace by @caendesilva in #394
-
Fix #379: Extract menu logo to component by @caendesilva in #396
-
Fix #398: Remove the deprecated Metadata model by @caendesilva in #400
New Features
New fluent helper for defining global metadata and open graph properties in config
'meta' => [
Meta::name('foo', 'bar'),
Meta::property('foo', 'bar'),
]
Quickly customize the navigation menu logo
You can now customize the following component to update the navigation menu logo/brand without affecting the navigation menu as a whole: @include('hyde::components.navigation.navigation-brand')
<a aria-label="Home page link" href="{{ $homeRoute }}" class="font-bold px-4">
{{ config('hyde.name', 'HydePHP') }}
</a>
Canonical meta/link tags are automatically added when a site base URL is set
<link rel="canonical" href="https://example.org/posts/my-new-blog-post.html" />
API Changes
This list may not be exhaustive, but serves to give a quick overview of internal changes
The Metadata model has been removed, it's features is merged into the Meta helper class.
Some helpers have been moved into the Helper namespace. Like most changes in this release, Blade views and config files need to be updated.
Here is a table over the changes
Old FQCN | New FQCN |
---|---|
Hyde\Framework\Features | Hyde\Framework\Helpers\Features |
Hyde\Framework\Markdown | Hyde\Framework\Helpers\Markdown |
Hyde\Framework\Meta | Hyde\Framework\Helpers\Meta |
Full Changelog: v0.25.0-beta...v0.26.0-beta
v0.25.0-beta - Configuration and autodiscovery improvements
New features:
- Allow the source directories to be changed (experimental)
- Allow the output directory to be changed (experimental)
- You can now enable "pretty URLs" where links can be generated without the .html extension. See #354
API features:
- Allow the project root to be changed at runtime (experimental/internal (Buddy/HydeRC compat))
- Allow the creation of default directories to be disabled (useful when including the framework package in non-Hyde installations (like Buddy))
Changes:
- Offsets config defined sidebar reordering priorities, see #348
API Changes:
- Rename BuildService to DiscoveryService, see #347
What's Changed
- Change BuildService to DiscoveryService by @caendesilva in #347
- Add sidebar config offset, fix #307 by @caendesilva in #348
- Add configurable "pretty URLs" by @caendesilva in #354
- Configuration and autodiscovery improvements by @caendesilva in #340
- Allow site output directory to be customized by @caendesilva in #362
- Rename --pretty option to --run-prettier to distinguish it better in build command by @caendesilva in #368
- Load asset service from the service container by @caendesilva in #373
The majority of changes were implemented through #340
Full Changelog: v0.24.0-beta...v0.25.0-beta
v0.24.0-beta - Add sidebar categories to group documentation pages
What's Changed
- Add documentation sidebar category labels, fixes #309 by @caendesilva in #326
Full Changelog: v0.23.5-beta...v0.24.0-beta
v0.23.5-beta - Update config and docs layout, frontend tweaks, bugfixes
What's Changed
- Fix #153, bug where config option uses app name instead of Hyde name. by @caendesilva in #320
- Change max prose width of markdown pages to match blog posts, fix #303 by @caendesilva in #321
- Add back skip to content button to Lagrafo docs layout, fix #300 by @caendesilva in #322
- Add option to mark site as installed to hide the installer command, fix #289 in 9a6d994
Full Changelog: v0.23.4-beta...v0.23.5-beta
v0.23.4-beta - Bugfixes, a11y improvement, Blade component refactor
What's Changed
- Fix #314, add background color fallback to documentation page body by @caendesilva in #315
- Formatting: Add newline after console output when running build without API calls, fix #313 by @caendesilva in #316
- Refactor post excerpt component to be less reliant on directly using front matter and add view test by @caendesilva in #318
Full Changelog: v0.23.3-beta...v0.23.4-beta
v0.23.3-beta - Hide documentation pages using front matter
What's Changed
- Fix #310, allow documentation pages to be hidden from sidebar using front matter by @caendesilva in #311
Adding the following to a documentation page will prevent it from showing up in the sidebar, it will however still be compiled.
---
hidden: true
---
Full Changelog: v0.23.2-beta...v0.23.3-beta
v0.23.2-beta - Update documentation sidebar internals
What's Changed
- Refactor documentation sidebar internals by @caendesilva in #299
- Remove old documentation page layouts
Full Changelog: v0.23.1-beta...v0.24.0-beta
v0.23.1-beta - Update tests
What's Changed
- Apply fixes from StyleCI by @caendesilva in #296
Full Changelog: v0.23.0-beta...v0.23.1-beta