File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed
docs/_data/partials/hyde-pages-api Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 2121
2222 - name : Run HydeFront linter
2323 run : php packages/hydefront/.github/scripts/post-build.php
24+
25+ - name : Install dependencies
26+ run : composer install --no-progress --no-interaction --no-scripts --prefer-dist
27+
28+ - name : Run DocGen linter
29+ run : php monorepo/scripts/docs/DocGen.php --lint
Original file line number Diff line number Diff line change 11<section id =" hyde-kernel-base-methods " >
22
33<!-- Start generated docs for Hyde\Foundation\HydeKernel -->
4- <!-- Generated by HydePHP DocGen script at 2023-03-11 11:09:45 in 2.53ms -->
4+ <!-- Generated by HydePHP DocGen script at 2024-07-08 20:47:38 in 2.89ms -->
55
66#### ` version() `
77
@@ -32,7 +32,7 @@ Hyde::features(): Hyde\Facades\Features
3232No description provided.
3333
3434``` php
35- Hyde::hasFeature(Hyde\Enums\Feature $feature): bool
35+ Hyde::hasFeature(Hyde\Enums\Feature|string $feature): bool
3636```
3737
3838#### ` toArray() `
Original file line number Diff line number Diff line change 11<section id =" hyde-page-methods " >
22
33<!-- Start generated docs for Hyde\Pages\Concerns\HydePage -->
4- <!-- Generated by HydePHP DocGen script at 2023-03-10 16:18:02 in 3.30ms -->
4+ <!-- Generated by HydePHP DocGen script at 2024-07-08 20:48:42 in 5.42ms -->
55
66#### ` make() `
77
@@ -24,7 +24,7 @@ HydePage::isDiscoverable(): bool
2424Get a page instance from the Kernel' ; s page index by its identifier.
2525
2626``` php
27- HydePage::get(string $identifier): Hyde\Pages\Concerns\HydePage
27+ HydePage::get(string $identifier): static
2828```
2929
3030- ** Throws:** \Hyde\Framework\Exceptions\FileNotFoundException If the page does not exist.
Original file line number Diff line number Diff line change 99use Hyde \Pages \Concerns \HydePage ;
1010use Illuminate \Support \Str ;
1111
12+ // Check if --lint flag is present
13+ if (in_array ('--lint ' , $ argv , true )) {
14+ echo "\033[32mLinting... \033[0m " ;
15+
16+ // Rerun the script without the --lint flag
17+ $ output = shell_exec ('php ' .__FILE__ );
18+
19+ $ dirty = str_contains ($ output , 'Convents saved ' );
20+
21+ if ($ dirty ) {
22+ echo " \033[31mDocumentation is not up to date! \033[0m \n" ;
23+ exit (1 );
24+ }
25+
26+ echo " \033[32mDocumentation is up to date! \033[0m \n" ;
27+ exit (0 );
28+ }
29+
1230require_once __DIR__ .'/../../../vendor/autoload.php ' ;
1331
1432echo "\033[32mHydePHP method DocGen \033[0m \n\n" ;
You can’t perform that action at this time.
0 commit comments