Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
20 | class DocumentationPage extends BaseMarkdownPage implements DocumentationPageSchema |
||
|
|||
21 | { |
||
22 | use Concerns\UsesFlattenedOutputPaths; |
||
23 | |||
24 | public static string $sourceDirectory = '_docs'; |
||
25 | public static string $outputDirectory = 'docs'; |
||
26 | public static string $template = 'hyde::layouts/docs'; |
||
27 | |||
28 | public static function home(): ?Route |
||
29 | { |
||
30 | return Route::get(static::$outputDirectory.'/index'); |
||
31 | } |
||
32 | |||
33 | /** @see https://hydephp.com/docs/master/documentation-pages#automatic-edit-page-button */ |
||
34 | public function getOnlineSourcePath(): string|false |
||
41 | } |
||
42 | |||
43 | public static function hasTableOfContents(): bool |
||
44 | { |
||
45 | return config('docs.table_of_contents.enabled', true); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Generate Table of Contents as HTML from a Markdown document body. |
||
50 | */ |
||
51 | public function getTableOfContents(): string |
||
54 | } |
||
55 | } |
||
56 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.