-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
858862a
commit 47e9044
Showing
8 changed files
with
815 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Config | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This configuration file is for the Hyde Core, which is useful if you | ||
| want to contribute to the source code. However, if you are looking | ||
| to customize your static site, you are probably looking for the | ||
| Hyde config located in `config/hyde.php`! | ||
| | ||
*/ | ||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value is the name of your application. This value is used when the | ||
| framework needs to place the application's name in a notification or | ||
| any other location as required by the application or its packages. | ||
| | ||
*/ | ||
|
||
'name' => config('hyde.name', 'HydePHP'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Version | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value determines the "version" your application is currently running | ||
| in. You may want to follow the "Semantic Versioning" - Given a version | ||
| number MAJOR.MINOR.PATCH when an update happens: https://semver.org. | ||
| | ||
*/ | ||
|
||
'version' => app('git.version'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Environment | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value determines the "environment" your application is currently | ||
| running in. This may determine how you prefer to configure various | ||
| services the application utilizes. This can be overridden using | ||
| the global command line "--env" option when calling commands. | ||
| | ||
| When using Hyde this setting should always be set to `production`. | ||
| However, when developing the Hyde Core, set it to `development` | ||
| in your .env to unlock the development commands. | ||
| | ||
*/ | ||
|
||
'env' => env('env', 'production'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Autoloaded Service Providers | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The service providers listed here will be automatically loaded on the | ||
| request to your application. Feel free to add your own services to | ||
| this array to grant expanded functionality to your applications. | ||
| | ||
*/ | ||
|
||
'providers' => [ | ||
App\Providers\AppServiceProvider::class, | ||
Hyde\Framework\HydeServiceProvider::class, | ||
], | ||
|
||
'aliases' => [ | ||
'Hyde' => Hyde\Framework\Hyde::class, | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Command | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Laravel Zero will always run the command specified below when no command name is | ||
| provided. Consider update the default command for single command applications. | ||
| You cannot pass arguments to the default command because they are ignored. | ||
| | ||
*/ | ||
|
||
'default' => NunoMaduro\LaravelConsoleSummary\SummaryCommand::class, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Commands Paths | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value determines the "paths" that should be loaded by the console's | ||
| kernel. Foreach "path" present on the array provided below the kernel | ||
| will extract all "Illuminate\Console\Command" based class commands. | ||
| | ||
*/ | ||
|
||
'paths' => [app_path('Commands')], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Added Commands | ||
|-------------------------------------------------------------------------- | ||
| | ||
| You may want to include a single command class without having to load an | ||
| entire folder. Here you can specify which commands should be added to | ||
| your list of commands. The console's kernel will try to load them. | ||
| | ||
*/ | ||
|
||
'add' => [ | ||
Hyde\Framework\Commands\BuildStaticSiteCommand::class, | ||
Hyde\Framework\Commands\Debug::class, | ||
Hyde\Framework\Commands\InspireCommand::class, | ||
Hyde\Framework\Commands\MakePostCommand::class, | ||
Hyde\Framework\Commands\MakeValidatorCommand::class, | ||
Hyde\Framework\Commands\HydePublishViewsCommand::class, | ||
Hyde\Framework\Commands\HydePublishConfigsCommand::class, | ||
Hyde\Framework\Commands\Validate::class, | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Hidden Commands | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Your application commands will always be visible on the application list | ||
| of commands. But you can still make them "hidden" specifying an array | ||
| of commands below. All "hidden" commands can still be run/executed. | ||
| | ||
*/ | ||
|
||
'hidden' => [ | ||
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class, | ||
Symfony\Component\Console\Command\DumpCompletionCommand::class, | ||
Symfony\Component\Console\Command\HelpCommand::class, | ||
Illuminate\Console\Scheduling\ScheduleRunCommand::class, | ||
Illuminate\Console\Scheduling\ScheduleListCommand::class, | ||
Illuminate\Console\Scheduling\ScheduleFinishCommand::class, | ||
LaravelZero\Framework\Commands\StubPublishCommand::class, | ||
Hyde\Framework\Commands\MakeValidatorCommand::class, | ||
Hyde\Framework\Commands\Debug::class, | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Removed Commands | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Do you have a service provider that loads a list of commands that | ||
| you don't need? No problem. Laravel Zero allows you to specify | ||
| below a list of commands that you don't to see in your app. | ||
| | ||
*/ | ||
|
||
'remove' => [ | ||
Illuminate\Console\Scheduling\ScheduleRunCommand::class, | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| __ __ __ ___ __ _____ | ||
| / // /_ _____/ /__ / _ \/ // / _ \ | ||
| / _ / // / _ / -_) ___/ _ / ___/ | ||
| /_//_/\_, /\_,_/\__/_/ /_//_/_/ | ||
| /___/ | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Welcome to HydePHP! In this file, you can customize your new Static Site! | ||
| | ||
| HydePHP favours convention over configuration and as such requires virtually | ||
| no configuration out of the box to get started. Though, you may want to | ||
| change the options to personalize your site and make it your own! | ||
| | ||
*/ | ||
|
||
use Hyde\Framework\Features; | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Site Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value sets the name of your site and is, for example, used in | ||
| the compiled page titles and more. The default value is HydePHP. | ||
| | ||
*/ | ||
|
||
'name' => 'HydePHP', | ||
|
||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Features | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Some of Hyde's features are optional. Feel free to disable the features | ||
| you don't need by removing or commenting them out from this array. | ||
| This config concept is directly inspired by Laravel Jetstream. | ||
| | ||
*/ | ||
|
||
'features' => [ | ||
Features::blogPosts(), | ||
Features::bladePages(), | ||
Features::markdownPages(), | ||
Features::documentationPages(), | ||
], | ||
|
||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Footer Text | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Most websites have a footer with copyright details and contact information. | ||
| You probably want to change the Markdown to include your information, | ||
| though you are of course welcome to keep the attribution link! | ||
| | ||
| You can also customize the blade view if you want a more complex footer. | ||
| You can disable it completely by setting `enabled` to `false`. | ||
| | ||
*/ | ||
|
||
'footer' => [ | ||
'enabled' => true, | ||
'markdown' => 'Site built with the Free and Open Source [HydePHP](https://github.com/hydephp/hyde). | ||
License [MIT](https://github.com/hydephp/hyde/blob/master/LICENSE.md).' | ||
], | ||
|
||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Custom Navigation Menu Links | ||
|-------------------------------------------------------------------------- | ||
| | ||
| If you are looking to add custom navigation menu links, this is the place! | ||
| | ||
| Linking to an external site? Supply the full URI to the 'destination'. | ||
| Keeping it internal? Pass the 'slug' relative to the document root. | ||
| | ||
| To get started quickly, you can uncomment the defaults here. | ||
| Tip: Only the title and slug parameters are required. | ||
| | ||
*/ | ||
|
||
'navigationMenuLinks' => [ | ||
// [ | ||
// 'title' => 'GitHub', | ||
// 'destination' => 'https://github.com/hydephp/hyde', | ||
// 'priority' => 1200, | ||
// ], | ||
// [ | ||
// 'title' => 'Featured Blog Post', | ||
// 'slug' => 'posts/hello-world', | ||
// ] | ||
], | ||
|
||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Navigation Menu Blacklist | ||
|-------------------------------------------------------------------------- | ||
| There may be pages you want to exclude from the automatic navigation menu, | ||
| such as error pages. Add their slugs here and they will not be included. | ||
| | ||
*/ | ||
|
||
'navigationMenuBlacklist' => [ | ||
'404' | ||
], | ||
|
||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Documentation Sidebar Page Order | ||
|-------------------------------------------------------------------------- | ||
| | ||
| In the generated Documentation pages the navigation links in the sidebar | ||
| are sorted alphabetically by default. As this rarely makes sense, you | ||
| can reorder the page slugs in the list and the links will be sorted | ||
| in that order. Link items without an entry here will have fall | ||
| back to the default priority of 999, putting them last. | ||
| | ||
*/ | ||
|
||
'documentationPageOrder' => [ | ||
'readme', | ||
'installation', | ||
'getting-started', | ||
] | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Enabled | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value determines if the app name should be represented as an | ||
| ASCII logo. This file provides a sane default location for all | ||
| information concerning the logo and is display customization. | ||
| | ||
*/ | ||
|
||
'enabled' => true, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Logo Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value determines the text that is rendered for the logo. | ||
| It defaults to the app name, but it can be any other text | ||
| value if the logo should be different to the app name. | ||
| | ||
*/ | ||
'name' => ' ' . config('app.name'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Font | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option defines the font which should be used for rendering. | ||
| By default, one default font is shipped. However, you are free | ||
| to download and use additional fonts: http://www.figlet.org. | ||
| | ||
*/ | ||
|
||
// 'font' => \LaravelZero\Framework\Components\Logo\FigletString::DEFAULT_FONT, | ||
'font' => base_path('vendor/hyde/framework/resources/fonts/smslant.flf'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Output Width | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option defines the maximum width of the output string. This is | ||
| used for word-wrap as well as justification. Be careful when using | ||
| small values, because they may result in an undefined behavior. | ||
| | ||
*/ | ||
|
||
'outputWidth' => 80, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Justification | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option defines the justification of the logo text. By default, | ||
| justification is provided, which will work well on most of your | ||
| console apps. Of course, you are free to change this value. | ||
| | ||
*/ | ||
|
||
'justification' => null, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Right To Left | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option defines the option in which the text is written. By, default | ||
| the setting of the font-file is used. When justification is not defined, | ||
| a text written from right-to-left is automatically right-aligned. | ||
| | ||
| Possible values: "right-to-left", "left-to-right", null | ||
| | ||
*/ | ||
|
||
'rightToLeft' => null, | ||
|
||
]; |
Oops, something went wrong.