Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HydePHP v1.7.0 - 2024-07-05 #1779

Merged
merged 1 commit into from
Jul 5, 2024
Merged

HydePHP v1.7.0 - 2024-07-05 #1779

merged 1 commit into from
Jul 5, 2024

Conversation

caendesilva
Copy link
Member

Version v1.7.0 - 2024-07-05

Added

Changed

Deprecated

Removed

Fixed

Extra information

This release contains changes to how HydePHP behaves when a site URL is not set by the user.

These changes are made to reduce the chance of the default localhost value showing up in production environments.

Most notably, HydePHP now considers that default site URL localhost to mean that a site URL is not set, as the user has not set it.
This means that things like automatic canonical URLs will not be added, as Hyde won't know how to make them without a site URL.
The previous behaviour was that Hyde used localhost in canonical URLs, which is never useful in production environments.

For this reason, we felt it worth it to make this change in a minor release, as it has a such large benefit for sites.

You can read more about the details and design decisions of this change in the following pull request #1726.

@caendesilva
Copy link
Member Author

Claude: Announcing HydePHP v1.7: Enhancing Flexibility and User Experience

We're excited to announce the release of HydePHP v1.7! This latest version brings a host of new features and improvements that enhance the flexibility and user experience of our static site generator. Let's dive into some of the coolest additions and changes in this release.

New Features and Improvements

1. HTML Comments for Markdown Code Block Filepath Labels

One of the standout features in v1.7 is the added support for using HTML comments to create Markdown code block filepath labels. This improvement allows for more descriptive and organized code snippets in your documentation.

2. Customizable Theme Toggle

We've introduced a new config option that allows you to disable the theme toggle buttons. This feature enables your site to automatically use browser settings for theme preferences, providing a more seamless experience for your visitors.

3. Enhanced serve Command

The serve command now allows you to specify which path to open when using the --open option. This addition gives you more control over your development workflow.

4. JSON Output for route:list Command

For those who love working with structured data, we've added a --format=json option to the route:list command. This feature makes it easier to integrate route information into your tooling and scripts.

5. Improved Navigation Group Handling

We've addressed an issue with navigation group behavior. Now, when a navigation group is set in front matter, it will be used regardless of the subdirectory configuration. This change provides more predictable and flexible navigation structuring.

6. Smarter Site URL Handling

Several improvements have been made to how HydePHP handles site URLs:

  • The Hyde::hasSiteUrl() method now returns false if the site URL is set to localhost.
  • Hyde::url() will return a relative URL instead of throwing an exception when a path is supplied, even if the site URL is not set.
  • These changes reduce the chance of default localhost values appearing in production environments.

7. Enhanced Configuration Management

Setting a site name in the YAML config file now influences all configuration values where it's used, unless already set. This change streamlines the process of customizing your site's identity across various components.

Deprecations and Removals

  • The global unslash() function has been deprecated in favor of the namespaced \Hyde\unslash() function.
  • The BaseUrlNotSetException class has been deprecated.
  • The Git version is no longer displayed in the debug screen and dashboard.

Conclusion

HydePHP v1.7 brings a wealth of improvements that enhance developer experience, site customization, and overall flexibility. Whether you're building a personal blog or a complex documentation site, these new features and enhancements will help you create better static sites with less effort.

We encourage all users to upgrade to this latest version to take advantage of these new features and improvements. As always, we welcome your feedback and contributions to make HydePHP even better.

Happy coding with HydePHP v1.7!

Copy link

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (02393f3) to head (e938921).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master     #1779   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1762      1762           
===========================================
  Files            182       182           
  Lines           4706      4706           
===========================================
  Hits            4706      4706           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caendesilva caendesilva marked this pull request as ready for review July 5, 2024 12:48
@caendesilva caendesilva merged commit 50b5ce7 into master Jul 5, 2024
25 checks passed
@caendesilva caendesilva deleted the release-v1.7.0 branch July 5, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant