You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/architecture-concepts/automatic-routing.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
##Automatic Routing
1
+
# Automatic Routing
2
2
3
3
>info This covers an intermediate topic which is not required for basic usage, but is useful if you want to use the framework to design custom Blade templates.
4
4
@@ -57,7 +57,7 @@ But where it really shines is when you supply a route. This will then resolve th
Copy file name to clipboardExpand all lines: docs/creating-content/documentation-pages.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Hyde compiles your Markdown content into beautiful static HTML pages using a Tai
14
14
15
15
Additionally, if you have an `_docs/index.md` file, the sidebar header will link to it, and an automatically generated "Docs" link will be added to your site's main navigation menu, pointing to your documentation page.
16
16
17
-
If you have a Torchlight API token in your `.env` file, Hyde will even enable syntax highlighting automatically, saving you time and effort. For more information about this feature, see the [extensions page](extensions#torchlight).
17
+
If you have a Torchlight API token in your `.env` file, Hyde will even enable syntax highlighting automatically, saving you time and effort. For more information about this feature, see the [extensions page](third-party-integrations#torchlight).
18
18
19
19
### Best Practices and Hyde Expectations
20
20
@@ -241,14 +241,14 @@ To quickly arrange the order of items in the sidebar, you can reorder the page i
241
241
]
242
242
```
243
243
244
-
See [the chapter in the customization page](customization#navigation-menu--sidebar) for more details. <br>
244
+
See [the chapter in the customization page](customization#navigation-menu--sidebar) for more details.
245
245
246
246
### Setting Sidebar Group Labels
247
247
248
248
When using the automatic sidebar grouping feature the titles of the groups are generated from the subdirectory names. If these are not to your liking, for example if you need to use special characters, you can override them in the configuration file. The array key is the directory name, and the value is the label.
249
249
250
250
```php
251
-
// Filepath: config/docs.php
251
+
// filepath: config/docs.php
252
252
253
253
'sidebar' => [
254
254
'labels' => [
@@ -266,7 +266,7 @@ By default, each group will be assigned the lowest priority found inside the gro
266
266
Just use the sidebar group key as instead of the page identifier/route key:
267
267
268
268
```php
269
-
// Filepath: config/docs.php
269
+
// filepath: config/docs.php
270
270
'sidebar' => [
271
271
'order' => [
272
272
'readme',
@@ -347,7 +347,7 @@ If this setting is set to true, Hyde will output all documentation pages into th
347
347
If you set this to false, Hyde will match the directory structure of the source files (just like all other pages).
348
348
349
349
```php
350
-
// Filepath: config/docs.php
350
+
// filepath: config/docs.php
351
351
'flattened_output_paths' => true,
352
352
```
353
353
@@ -422,7 +422,7 @@ The feature is automatically enabled when you specify a base URL in the Docs con
422
422
Here's an example configuration from the official HydePHP.com documentation:
@@ -432,7 +432,7 @@ Here's an example configuration from the official HydePHP.com documentation:
432
432
Changing the label is easy, just change the following config setting:
433
433
434
434
```php
435
-
// Filepath: config/docs.php
435
+
// filepath: config/docs.php
436
436
'edit_source_link_text' => 'Edit Source on GitHub',
437
437
```
438
438
@@ -441,7 +441,7 @@ Changing the label is easy, just change the following config setting:
441
441
By default, the button will be shown in the documentation page footer. You can change this by setting the following config setting to `'header'`, `'footer'`, or `'both'`
Copy file name to clipboardExpand all lines: docs/digging-deeper/advanced-customization.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ mainly example driven, as it is assumed you have somewhat of an understanding of
19
19
20
20
Each page type is represented by a page model class. Each of those classes have static properties that store the source and output directories.
21
21
These properties are set when the [`HydeServiceProvider`](https://github.com/hydephp/framework/blob/master/src/Framework/HydeServiceProvider.php)
22
-
is registered, at which point the provider will search for any overrides in the config file.
22
+
is registered. At this point, the provider will search for any overrides in the config file.
23
23
24
24
**This means that there are two options to change the source and output directories:**
25
25
1.**Recommended:** You can change the values in the config file, to let the `HydeServiceProvider` handle it for you.
@@ -110,8 +110,8 @@ public function register(): void
110
110
### Route key impact
111
111
112
112
For example, changing the output directory of Markdown posts to `blog` instead of `posts` will change the route key base from `posts` to `blog`.
113
-
This means that a file stored as `_posts/hello-world.md` will have the route key `blog/hello-world` instead of `posts/hello-world`,
114
-
this may break your site's configuration and links, so you should always verify your site works properly after such a change.
113
+
This means that a file stored as `_posts/hello-world.md` will have the route key `blog/hello-world` instead of `posts/hello-world`.
114
+
Note that this may break your site's configuration and links, so you should always verify your site works properly after such a change.
115
115
You can learn more about this in the [route key documentation](core-concepts#paths-identifiers-and-route-keys).
0 commit comments