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 v2.x Development #1565

Draft
wants to merge 3,165 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3165 commits
Select commit Hold shift + click to select a range
714e941
Use plural wording to match other pluralized terms in sentence
caendesilva Jul 12, 2024
1bea0ef
Add missing infix
caendesilva Jul 12, 2024
d269f6a
Add comma between independent clauses
caendesilva Jul 12, 2024
74c4924
Fix typo should be a comma
caendesilva Jul 12, 2024
c00ab1b
Add missing word
caendesilva Jul 12, 2024
8129241
Remove comma from coupled clauses
caendesilva Jul 12, 2024
312135e
Change word order to be more fluent
caendesilva Jul 12, 2024
e46b837
Split out coupled clause to standalone sentence
caendesilva Jul 12, 2024
a5df67f
Reword to pluralize feature in introduction
caendesilva Jul 12, 2024
d44d2a3
Merge branch '2.x-dev' into unify-the-navigation-api
caendesilva Jul 12, 2024
89fe3e0
Merge branch 'unify-the-navigation-api' into clean-up-the-navigation-…
caendesilva Jul 12, 2024
51edfbe
Merge pull request #1838 from hydephp/clean-up-the-navigation-documen…
caendesilva Jul 12, 2024
5a5d36d
Move the sidebar documentation to the documentation pages page
caendesilva Jul 12, 2024
8427e55
Add lost section
caendesilva Jul 12, 2024
68f3d33
Remove documentation for syntax with no benefit
caendesilva Jul 12, 2024
8d06b5e
Normalize spelling
caendesilva Jul 12, 2024
c2dcb0f
Restructure and improve the documentation
caendesilva Jul 12, 2024
358bfcc
Improve priority setting
caendesilva Jul 12, 2024
2d5edf6
Add todo
caendesilva Jul 12, 2024
c802a5a
Merge branch 'unify-the-navigation-api' into clean-up-the-navigation-…
caendesilva Jul 12, 2024
f7870ad
Merge pull request #1841 from hydephp/clean-up-the-navigation-documen…
caendesilva Jul 12, 2024
3cbc864
Update RELEASE_NOTES.md
caendesilva Jul 12, 2024
a313579
Update RELEASE_NOTES.md
caendesilva Jul 12, 2024
e2cdca6
Update RELEASE_NOTES.md
caendesilva Jul 12, 2024
84f92a9
Clarify test name and fix invalid option
caendesilva Jul 12, 2024
c9abfa2
Merge pull request #1818 from hydephp/unify-the-navigation-api
caendesilva Jul 12, 2024
8c123bf
Merge branch '2.x-dev' of github.com:hydephp/develop into 2.x-dev
caendesilva Jul 12, 2024
c39d2a6
Merge branch 'master' into 2.x-dev
caendesilva Jul 12, 2024
8d4a0a3
Change test teardown type
caendesilva Jul 13, 2024
8db58ef
Test with Markdown page
caendesilva Jul 13, 2024
78cd937
Move up teardown method
caendesilva Jul 13, 2024
087f183
Inline teardown where needed
caendesilva Jul 13, 2024
7154944
Add booting/booted callbacks to the base HydeExtension class
caendesilva Jul 13, 2024
9b4b19f
Introduce local variable so we can use the instance
caendesilva Jul 13, 2024
c1bf78f
Register the boot callbacks with the extension
caendesilva Jul 13, 2024
838dc6e
Update test to cover new callback methods
caendesilva Jul 13, 2024
2f44b85
Document extension booting and booted callbacks
caendesilva Jul 13, 2024
798a948
Update extension boot callbacks to inject the kernel
caendesilva Jul 13, 2024
9db32e7
Remove parts of documentation that should be obvious
caendesilva Jul 13, 2024
4f339b6
Update code documentation
caendesilva Jul 13, 2024
b854768
Restructure documentation
caendesilva Jul 13, 2024
af8714f
Update RELEASE_NOTES.md
caendesilva Jul 13, 2024
593293e
Merge pull request #1847 from hydephp/extension-class-booting-callbacks
caendesilva Jul 13, 2024
531aea9
Merge branch 'master' into 2.x-dev
caendesilva Jul 14, 2024
fc8a380
Merge branch 'master' into 2.x-dev
caendesilva Jul 14, 2024
ff9c1b4
Merge branch 'master' into 2.x-dev
caendesilva Jul 15, 2024
a2e416a
Merge branch 'master' into 2.x-dev
caendesilva Jul 16, 2024
2040a48
Merge branch 'master' into 2.x-dev
caendesilva Jul 16, 2024
c139130
Merge branch 'master' into 2.x-dev
caendesilva Jul 16, 2024
ff9dfb3
Update CustomExceptionsTest.php
caendesilva Jul 16, 2024
0fe90a7
Merge branch 'master' into 2.x-dev
caendesilva Jul 16, 2024
a5ba0f0
Merge branch 'master' into 2.x-dev
caendesilva Jul 16, 2024
744dee7
Merge branch 'master' into 2.x-dev
caendesilva Jul 17, 2024
14401d7
Merge branch 'master' into 2.x-dev
caendesilva Jul 17, 2024
a26ea88
Update develop.iml
caendesilva Jul 17, 2024
4e2e9a8
Merge branch 'master' into 2.x-dev
caendesilva Jul 17, 2024
1272423
Merge branch 'master' into 2.x-dev
caendesilva Jul 17, 2024
08ca495
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
6240e9b
Don't proxy search index files as they are now based on page objects
caendesilva Jul 23, 2024
9d39203
Remove old search index proxying code
caendesilva Jul 23, 2024
6913a22
Merge pull request #1878 from hydephp/fix-search-index-file-preview
caendesilva Jul 23, 2024
8bacd25
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
c5de14c
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
da5ef06
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
3616836
Remove deprecated method `FeaturedImage::isRemote()`
caendesilva Jul 23, 2024
cc3733f
Update RELEASE_NOTES.md
caendesilva Jul 23, 2024
5867369
Update RELEASE_NOTES.md
caendesilva Jul 23, 2024
26db09c
Merge pull request #1883 from hydephp/remove-deprecated-method
caendesilva Jul 23, 2024
8b52591
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
faa22e6
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
40b7c1f
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
e03376a
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
2382709
Update blog posts to use `BlogPosting` Schema.org type
caendesilva Jul 23, 2024
12001d9
Update blog post feeds to use `BlogPosting` Schema.org type
caendesilva Jul 23, 2024
0e6468f
Merge pull request #1887 from hydephp/use-blog-posting-schema-type-fo…
caendesilva Jul 23, 2024
0492507
Add more rich metadata to article excerpt content
caendesilva Jul 23, 2024
58b87e0
Update the blog post feed to be a rich item list
caendesilva Jul 23, 2024
9ee426e
Update RELEASE_NOTES.md
caendesilva Jul 23, 2024
1b4dda9
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
e3de40d
Merge branch '2.x-dev' into update-rich-blog-post-data
caendesilva Jul 23, 2024
84d38c4
Update blog post feed to add image metadata when available
caendesilva Jul 23, 2024
0cc1816
Update article excerpt date span to be a time element
caendesilva Jul 23, 2024
bd8b709
Add the proper datetime to metadata element
caendesilva Jul 23, 2024
bba209b
Test date is not added when not set
caendesilva Jul 23, 2024
55c3756
Merge pull request #1888 from hydephp/update-rich-blog-post-data
caendesilva Jul 23, 2024
790654c
Revert to throw an exception when trying to get unconfigured base URL
caendesilva Jul 23, 2024
cad93d5
Merge pull request #1890 from hydephp/revert-to-throwing-when-trying-…
caendesilva Jul 23, 2024
415f29f
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
f035b3f
Merge branch 'master' into 2.x-dev
caendesilva Jul 23, 2024
3026fa4
Fix formatting
caendesilva Jul 24, 2024
2b13939
Merge branch 'master' into 2.x-dev
caendesilva Jul 24, 2024
571ebc9
Update to expect author data being used
caendesilva Jul 24, 2024
0f33d15
Reformat view
caendesilva Jul 24, 2024
5bc6068
Create BlogPostFeedComponentViewTest.php
caendesilva Jul 24, 2024
6cbefcf
Refactor to use the loop variable instead of the index
caendesilva Jul 24, 2024
8bb5116
Support passing posts to the component
caendesilva Jul 24, 2024
f74102e
Update RELEASE_NOTES.md
caendesilva Jul 24, 2024
5383447
Merge pull request #1893 from hydephp/blog-post-feed-component-props
caendesilva Jul 24, 2024
0f5526a
Create FeatureEnumTest.php
caendesilva Jul 24, 2024
e09313f
Generate test with Claude
caendesilva Jul 24, 2024
39e62be
Add a `Feature::fromName()` enum helper
caendesilva Jul 24, 2024
f7cc5ed
Update helper to return null if not defined
caendesilva Jul 24, 2024
de729eb
Document method
caendesilva Jul 24, 2024
5ccdbec
Clean up generated test
caendesilva Jul 24, 2024
d7a173d
Update RELEASE_NOTES.md
caendesilva Jul 24, 2024
cb9d5ba
Merge pull request #1895 from hydephp/feature-enum-from-name-helper
caendesilva Jul 24, 2024
ea17c21
Test can specify features in YAML configuration
caendesilva Jul 24, 2024
d395df6
Support specifying features in the YAML configuration
caendesilva Jul 24, 2024
1c6381d
Update RELEASE_NOTES.md
caendesilva Jul 24, 2024
61457cd
Cleanup the code
caendesilva Jul 24, 2024
3a5f341
Merge pull request #1896 from hydephp/yaml-feature-configuration
caendesilva Jul 24, 2024
2a97871
Unwrap curly braces
caendesilva Jul 24, 2024
c201d3a
Update the build service to group together dynamic pages
caendesilva Jul 24, 2024
cf0bfc8
Update RELEASE_NOTES.md
caendesilva Jul 24, 2024
a2efff8
Merge pull request #1897 from hydephp/group-together-dynamic-pages-in…
caendesilva Jul 24, 2024
4eef696
Merge branch 'master' into 2.x-dev
caendesilva Jul 24, 2024
1d3c105
Merge branch 'master' into 2.x-dev
caendesilva Jul 24, 2024
37e5921
Initial feature abstract
caendesilva Feb 25, 2024
1f99128
Add examples
caendesilva Feb 25, 2024
04dcd92
Streamline examples
caendesilva Feb 25, 2024
eec5887
Match the Hyde facade methods
caendesilva Jul 24, 2024
397da8e
Create DynamicMarkdownLinksTest.php
caendesilva Jul 24, 2024
63bab3b
Create DynamicMarkdownLinkProcessor.php
caendesilva Jul 24, 2024
d1ee654
Implements MarkdownPostProcessorContract
caendesilva Jul 24, 2024
a2e3052
Draft postprocess method
caendesilva Jul 24, 2024
59b0618
Revert "Create DynamicMarkdownLinksTest.php"
caendesilva Jul 24, 2024
47bfef5
Create DynamicMarkdownLinkProcessorTest.php
caendesilva Jul 24, 2024
9a08865
Implement the initial dynamic markdown link feature
caendesilva Jul 24, 2024
6ec38dd
Refactor to use strict types
caendesilva Jul 24, 2024
eabee96
Extract helper method
caendesilva Jul 24, 2024
3c91dd7
Supress faulty inspection
caendesilva Jul 24, 2024
a2c7879
Use more readable formatting for complex test fixture
caendesilva Jul 24, 2024
33ba914
Use assert same instead of assert equals
caendesilva Jul 24, 2024
15ecda8
Update Markdown link support to work without single quotes
caendesilva Jul 24, 2024
048910d
Update Markdown link support to work with double quotes
caendesilva Jul 24, 2024
017355f
Split out multiple assertions to dedicated unit tests
caendesilva Jul 24, 2024
df09449
Revert "Update Markdown link support to work with double quotes"
caendesilva Jul 24, 2024
55df5a3
Register the dynamic Markdown link processor
caendesilva Jul 24, 2024
16051f7
Reapply "Create DynamicMarkdownLinksTest.php"
caendesilva Jul 24, 2024
b0fe2bb
Rename test to DynamicMarkdownLinksFeatureTest
caendesilva Jul 24, 2024
69a5277
Set up coverage
caendesilva Jul 24, 2024
6a7f46a
Add test crosslinks
caendesilva Jul 24, 2024
8586016
Match heredoc name to type
caendesilva Jul 24, 2024
612e3c3
Merge branch 'master' into 2.x-dev
caendesilva Jul 24, 2024
1860756
Always render Markdown using the service
caendesilva Jul 24, 2024
2b6e40e
Update RELEASE_NOTES.md
caendesilva Jul 24, 2024
2df0527
Merge pull request #1900 from hydephp/simplify-markdown-rendering-helper
caendesilva Jul 24, 2024
0813aa1
Merge branch '2.x-dev' into dynamic-markdown-links
caendesilva Jul 24, 2024
e943c19
Implement the basic test
caendesilva Jul 24, 2024
d489d90
Generate more tests with Claude
caendesilva Jul 24, 2024
a8aeb8b
Skip unsupported test
caendesilva Jul 24, 2024
b10b55a
Add fault tolerance testing
caendesilva Jul 24, 2024
d105152
Section test code
caendesilva Jul 24, 2024
f2d02fb
Add more fault tolerance tests
caendesilva Jul 24, 2024
ad20f39
Throw an exception for non existent routes
caendesilva Jul 24, 2024
61a552b
Extract helper method
caendesilva Jul 24, 2024
ee000ce
Add newline
caendesilva Jul 24, 2024
80edd88
Add newline
caendesilva Jul 24, 2024
8e1e516
Try to find the faulty line
caendesilva Jul 24, 2024
1238315
Try to find the line number of the error
caendesilva Jul 24, 2024
5fa5791
Extract method
caendesilva Jul 24, 2024
475c8ef
Test the line finding
caendesilva Jul 24, 2024
5da5b2f
Revert out of scope line finder
caendesilva Jul 24, 2024
2bf321c
Generate new documentation with Claude
caendesilva Jul 24, 2024
6d43f73
Proof generated documentation
caendesilva Jul 24, 2024
5e96cda
Streamline documentation
caendesilva Jul 24, 2024
a2b256b
Fix documentation location
caendesilva Jul 24, 2024
9589bc1
Remove dynamic relative link Markdown feature offering little value
caendesilva Jul 24, 2024
d4d8762
New proof of concept
caendesilva Jul 24, 2024
9e613da
Improve proof of concept
caendesilva Jul 24, 2024
6a5f159
Prepare to refactor proof of concept
caendesilva Jul 25, 2024
9c19e50
Document new dynamic Markdown link feature spec
caendesilva Jul 25, 2024
70deb8c
Remove the patterns method
caendesilva Jul 25, 2024
780b871
Remove the patterns loop
caendesilva Jul 25, 2024
dee2c96
Remove unused import
caendesilva Jul 25, 2024
642ec73
Draft new processing loop
caendesilva Jul 25, 2024
2b35be2
Convert concatenation to 'sprintf()' calls
caendesilva Jul 25, 2024
2afc335
Implement the route map method
caendesilva Jul 25, 2024
04a0a7c
Implement the asset map method
caendesilva Jul 25, 2024
48efa5e
Implement the asset path method
caendesilva Jul 25, 2024
f8c2c22
Add todo
caendesilva Jul 25, 2024
b5d8f71
Update imports
caendesilva Jul 25, 2024
37b8f84
Add import
caendesilva Jul 25, 2024
a44357d
Update route mocks
caendesilva Jul 25, 2024
c175cb5
Remove old exception test
caendesilva Jul 25, 2024
a8be72d
Remove old fault tolerance tests
caendesilva Jul 25, 2024
77af426
Remove old fault tolerance tests
caendesilva Jul 25, 2024
c3a46c9
Add new fault tolerance tests
caendesilva Jul 25, 2024
b79d983
Update test for the new dynamic Markdown link feature
caendesilva Jul 25, 2024
c644501
Use existing file pending mock support
caendesilva Jul 25, 2024
6e50913
Replace feature test setup with lower level filesystem configuration
caendesilva Jul 25, 2024
6d6d753
Tear down filesystem after class
caendesilva Jul 25, 2024
48558fa
Update test for the new dynamic Markdown link feature
caendesilva Jul 25, 2024
60786a5
Add more high level feature test cases
caendesilva Jul 25, 2024
75fc296
Update unit test to mock the kernel routes
caendesilva Jul 25, 2024
f0e0064
Add static variable to cache the asset map in memory
caendesilva Jul 25, 2024
25a7328
Refactor static variable to a static property
caendesilva Jul 25, 2024
ae46463
Add internal testing helper to reset the asset map cache
caendesilva Jul 25, 2024
8755f49
Reset the asset map cache
caendesilva Jul 25, 2024
1b7bfcb
Ignore coverage
caendesilva Jul 25, 2024
7e7927b
Revert "Ignore coverage"
caendesilva Jul 25, 2024
76672b2
Test the method
caendesilva Jul 25, 2024
7ed5a85
Compress PHPDoc annotations
caendesilva Jul 25, 2024
376d3ec
Normalize the signatures to be looser and match images
caendesilva Jul 25, 2024
831c83c
Normalize the loop variable name
caendesilva Jul 25, 2024
851b17a
Refactor to extract methods for common logic
caendesilva Jul 25, 2024
ede0cdf
Revert "Refactor to extract methods for common logic"
caendesilva Jul 25, 2024
4a46a58
Document that relative links is not supported here
caendesilva Jul 25, 2024
f4c9984
Merge pull request #1901 from hydephp/improved-dynamic-markdown-links
caendesilva Jul 25, 2024
5cbde9c
Add more feature tests
caendesilva Jul 25, 2024
a2bd446
Clean up the documentation
caendesilva Jul 25, 2024
a307b88
Proof the documentation
caendesilva Jul 25, 2024
2ae3ef9
Update RELEASE_NOTES.md
caendesilva Jul 25, 2024
158a7b1
Merge pull request #1590 from hydephp/dynamic-markdown-links
caendesilva Jul 25, 2024
209a3f1
Merge branch 'master' into 2.x-dev
caendesilva Jul 25, 2024
51aaf2b
Merge branch 'master' into 2.x-dev
caendesilva Jul 28, 2024
51b604a
Bind the MarkdownService class in the Hyde service provider
caendesilva Jul 30, 2024
aa76b40
Improve Markdown document testing
caendesilva Jul 30, 2024
45050ba
Rename test to be more generic to match dual usage
caendesilva Jul 30, 2024
cfb8184
Revert "Rename test to be more generic to match dual usage"
caendesilva Jul 30, 2024
19b8b14
Update the Markdown render method to get service from container
caendesilva Jul 30, 2024
b47ad4a
Rename test to be more generic to match dual usage
caendesilva Jul 30, 2024
04f55ef
Merge branch 'master' into 2.x-dev
caendesilva Jul 30, 2024
3982f65
Update RELEASE_NOTES.md
caendesilva Jul 30, 2024
4e521e0
Merge branch '2.x-dev' into improved-markdown-service-container-binding
caendesilva Jul 30, 2024
45e3e53
Merge pull request #1922 from hydephp/improved-markdown-service-conta…
caendesilva Jul 30, 2024
bb29ca3
Merge branch 'master' into 2.x-dev
caendesilva Jul 30, 2024
cce5ea0
Merge branch 'master' into 2.x-dev
caendesilva Jul 31, 2024
4a855fb
Merge branch 'master' into 2.x-dev
caendesilva Aug 1, 2024
3e1cf4b
Merge branch 'master' into 2.x-dev
caendesilva Aug 2, 2024
5a569b3
Update FileNotFoundException to support appending strings
caendesilva Aug 20, 2024
53cee6d
Merge pull request #1942 from hydephp/update-file-not-found-exception…
caendesilva Aug 20, 2024
83f27ed
Merge branch 'master' into 2.x-dev
caendesilva Aug 20, 2024
2d1fca6
Merge branch 'master' into 2.x-dev
caendesilva Sep 1, 2024
3421778
Merge branch 'master' into 2.x-dev
caendesilva Sep 8, 2024
be59948
Update tests to use new render mocking helpers
caendesilva Sep 8, 2024
cba42be
Refactor testing helper to be fluent
caendesilva Sep 8, 2024
46f1c9e
Simplify test setup
caendesilva Sep 8, 2024
f41615d
Update NavigationItemTest.php
caendesilva Sep 8, 2024
4005b75
Try static
caendesilva Sep 8, 2024
1af6bca
Always reset kernel
caendesilva Sep 8, 2024
9979c84
Apply fixes from StyleCI
StyleCIBot Sep 8, 2024
5b954f3
Merge branch 'master' into 2.x-dev
caendesilva Sep 10, 2024
845da0a
Merge branch '2.x-dev' into 2x-test-cleanup
caendesilva Sep 10, 2024
4f8f1b6
Merge branch 'master' into 2.x-dev
caendesilva Sep 10, 2024
f90cdcc
Merge branch '2.x-dev' into 2x-test-cleanup
caendesilva Sep 10, 2024
1111d5d
Merge pull request #1959 from hydephp/2x-test-cleanup
caendesilva Sep 10, 2024
a0ca7f2
Tear down using helper method
caendesilva Sep 10, 2024
4a95693
Merge branch 'master' into 2.x-dev
caendesilva Oct 5, 2024
ebb9db8
Rebuild documentation
caendesilva Oct 5, 2024
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: 2 additions & 0 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
namespace PHPSTORM_META {
override(\app(0), map([
'hyde' => \Hyde\Foundation\HydeKernel::class,
'navigation.main' => \Hyde\Framework\Features\Navigation\MainNavigationMenu::class,
'navigation.sidebar' => \Hyde\Framework\Features\Navigation\DocumentationSidebar::class,
]));
}
451 changes: 425 additions & 26 deletions RELEASE_NOTES.md

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
/** @var string $routeKey The route key for the page being compiled/previewed */
$routeKey = \Hyde\Support\Facades\Render::getRouteKey();

// Variables available only to some page types

/** @var \Hyde\Framework\Features\Navigation\DocumentationSidebar $sidebar */
$sidebar = app('navigation.sidebar');

// Facades (aliased in app/config.php)

/** @mixin \Hyde\Foundation\HydeKernel */
Expand All @@ -35,7 +40,7 @@ class Features extends \Hyde\Facades\Features {}
class Config extends \Hyde\Facades\Config {}
/** @mixin \Illuminate\Filesystem\Filesystem */
class Filesystem extends \Hyde\Facades\Filesystem {}
class DataCollections extends \Hyde\Support\DataCollections {}
class DataCollection extends \Hyde\Support\DataCollection {}
class Includes extends \Hyde\Support\Includes {}
/** @mixin \Hyde\Foundation\Kernel\RouteCollection */
class Routes extends \Hyde\Foundation\Facades\Routes {}
Expand Down
4 changes: 3 additions & 1 deletion app/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
Hyde\Foundation\Providers\ConfigurationServiceProvider::class,
Hyde\Framework\HydeServiceProvider::class,
Hyde\Foundation\Providers\ViewServiceProvider::class,
Hyde\Foundation\Providers\NavigationServiceProvider::class,
Hyde\Console\ConsoleServiceProvider::class,
],

Expand All @@ -96,13 +97,14 @@
'Features' => \Hyde\Facades\Features::class,
'Config' => \Hyde\Facades\Config::class,
'Filesystem' => \Hyde\Facades\Filesystem::class,
'Navigation' => \Hyde\Facades\Navigation::class,
'Routes' => \Hyde\Foundation\Facades\Routes::class,
'HtmlPage' => \Hyde\Pages\HtmlPage::class,
'BladePage' => \Hyde\Pages\BladePage::class,
'MarkdownPage' => \Hyde\Pages\MarkdownPage::class,
'MarkdownPost' => \Hyde\Pages\MarkdownPost::class,
'DocumentationPage' => \Hyde\Pages\DocumentationPage::class,
'DataCollections' => \Hyde\Support\DataCollections::class,
'DataCollection' => \Hyde\Support\DataCollection::class,
'Includes' => \Hyde\Support\Includes::class,
'Feature' => \Hyde\Enums\Feature::class,
],
Expand Down
84 changes: 42 additions & 42 deletions config/docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,49 +30,49 @@
// When using a grouped sidebar, should the groups be collapsible?
'collapsible' => true,

// Should the sidebar footer be shown? You can also set this to a string
// of Markdown to show in the footer. Set to `false` to disable.
'footer' => true,
],

/*
|--------------------------------------------------------------------------
| Sidebar Page Order
|--------------------------------------------------------------------------
|
| In the generated Documentation pages the navigation links in the sidebar
| default to sort alphabetically. You can reorder the page identifiers
| in the list below, and the links will get sorted in that order.
|
| The items will get a priority of 500 plus the order its found in the list.
| Pages without a priority will fall back to the default priority of 999.
|
| You can also set explicit priorities in front matter or by specifying
| a value to the array key in the list to override the inferred value.
|
*/

'sidebar_order' => [
'readme',
'installation',
'getting-started',
],

/*
|--------------------------------------------------------------------------
| Table of Contents Settings
|--------------------------------------------------------------------------
|
| The Hyde Documentation Module comes with a fancy Sidebar that, by default,
| has a Table of Contents included. Here, you can configure its behavior,
| content, look and feel. You can also disable the feature completely.
|
*/
// A string of Markdown to show in the footer. Set to `false` to disable.
'footer' => '[Back to home page](../)',

/*
|--------------------------------------------------------------------------
| Sidebar Page Order
|--------------------------------------------------------------------------
|
| In the generated Documentation pages the navigation links in the sidebar
| default to sort alphabetically. You can reorder the page identifiers
| in the list below, and the links will get sorted in that order.
|
| The items will get a priority of 500 plus the order its found in the list.
| Pages without a priority will fall back to the default priority of 999.
|
| You can also set explicit priorities in front matter or by specifying
| a value to the array key in the list to override the inferred value.
|
*/

'order' => [
'readme',
'installation',
'getting-started',
],

/*
|--------------------------------------------------------------------------
| Table of Contents Settings
|--------------------------------------------------------------------------
|
| The Hyde Documentation Module comes with a fancy Sidebar that, by default,
| has a Table of Contents included. Here, you can configure its behavior,
| content, look and feel. You can also disable the feature completely.
|
*/

'table_of_contents' => [
'enabled' => true,
'min_heading_level' => 2,
'max_heading_level' => 4,
],

'table_of_contents' => [
'enabled' => true,
'min_heading_level' => 2,
'max_heading_level' => 4,
],

/*
Expand Down
66 changes: 29 additions & 37 deletions config/hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
*/

use Hyde\Facades\Author;
use Hyde\Enums\Feature;
use Hyde\Facades\Meta;
use Hyde\Enums\Feature;
use Hyde\Facades\Navigation;

return [

Expand Down Expand Up @@ -248,7 +249,6 @@
|
| 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.
|
*/

Expand Down Expand Up @@ -278,17 +278,26 @@
| However, it's tedious to have to add those to each and every
| post you make, and keeping them updated is even harder.
|
| Here you can add predefined authors. When writing posts,
| just specify the username in the front matter, and the
| rest of the data will be pulled from a matching entry.
| To solve this problem, you can add predefined authors with this setting.
| When writing posts just specify the author's username (the array key).
| Hyde will pull the matching data from here and fill in the blanks.
|
*/

'authors' => [
Author::create(
'mr_hyde', // Required username
'Mr. Hyde', // Optional display name
'https://hydephp.com' // Optional website URL
'mr_hyde' => Author::create(
// The following settings are used in the default blog post template.
name: 'Mr. Hyde', // Optional display name
website: 'https://hydephp.com', // Optional website URL

// The following settings are not used in the bundled templates,
// but you can use them in your own custom views, for example.
// bio: 'The mysterious author of HydePHP',
// avatar: 'avatar.png',
// socials: [
// 'twitter' => 'HydeFramework',
// 'github' => 'hydephp',
// ],
),
],

Expand Down Expand Up @@ -323,40 +332,23 @@
|
*/

'navigation' => [
// This configuration sets the priorities used to determine the order of the menu.
// The default values have been added below for reference and easy editing.
// The array key is the page's route key, the value is the priority.
// Lower values show up first in the menu. The default is 999.
'order' => [
'navigation' => Navigation::configure()
->setPagePriorities([
'index' => 0,
'posts' => 10,
'docs/index' => 100,
],

// In case you want to customize the labels for the menu items, you can do so here.
// Simply add the route key as the array key, and the label as the value.
'labels' => [
])
->setPageLabels([
'index' => 'Home',
'docs/index' => 'Docs',
],

// These are the route keys of pages that should not show up in the navigation menu.
'exclude' => [
])
->excludePages([
'404',
],

// Any extra links you want to add to the navigation menu can be added here.
// To get started quickly, you can uncomment the defaults here.
// See the documentation link above for more information.
'custom' => [
// NavItem::forLink('https://github.com/hydephp/hyde', 'GitHub', 200),
],

// How should pages in subdirectories be displayed in the menu?
// You can choose between 'dropdown', 'flat', and 'hidden'.
'subdirectories' => 'hidden',
],
])
->addNavigationItems([
// Navigation::item('https://github.com/hydephp/hyde', 'GitHub', 200),
])
->setSubdirectoryDisplayMode('hidden'),

/*
|--------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section id="hyde-kernel-base-methods">

<!-- Start generated docs for Hyde\Foundation\HydeKernel -->
<!-- Generated by HydePHP DocGen script at 2024-07-08 20:47:38 in 2.89ms -->
<!-- Generated by HydePHP DocGen script at 2024-07-09 07:44:59 in 3.36ms -->

#### `version()`

Expand Down Expand Up @@ -32,7 +32,7 @@ Hyde::features(): Hyde\Facades\Features
No description provided.

```php
Hyde::hasFeature(Hyde\Enums\Feature|string $feature): bool
Hyde::hasFeature(Hyde\Enums\Feature $feature): bool
```

#### `toArray()`
Expand Down
Loading