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

Add media extensions option to default config #1531

Merged
merged 4 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This serves two purposes:
2. At release time, you can move the Unreleased section changes into a new release version section.

### Added
- for new features.
- Added the existing `media_extensions` option to the `hyde` configuration file in https://github.com/hydephp/develop/pull/1531

### Changed
- Renamed local template variable `$document` to `$article` to better match the usage in https://github.com/hydephp/develop/pull/1506
Expand Down
4 changes: 4 additions & 0 deletions config/hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@
|
*/

// Change the file extensions to be considered as media files and are copied to the output directory.
// If you want to add more extensions, add it to the empty merge array, or just override the entire array.
'media_extensions' => array_merge([], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS),

// The list of directories that are considered to be safe to empty upon site build.
// If the site output directory is set to a directory that is not in this list,
// the build command will prompt for confirmation before emptying it.
Expand Down
4 changes: 4 additions & 0 deletions packages/framework/config/hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@
|
*/

// Change the file extensions to be considered as media files and are copied to the output directory.
// If you want to add more extensions, add it to the empty merge array, or just override the entire array.
'media_extensions' => array_merge([], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS),

// The list of directories that are considered to be safe to empty upon site build.
// If the site output directory is set to a directory that is not in this list,
// the build command will prompt for confirmation before emptying it.
Expand Down
Loading