Skip to content

Commit 2cf46ed

Browse files
authored
Merge pull request #2316 from hydephp/final-release-cleanup
[2.x] Final release text cleanup
2 parents 8120b7c + 25da519 commit 2cf46ed

File tree

19 files changed

+41
-43
lines changed

19 files changed

+41
-43
lines changed

config/docs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
|
9191
| Example: https://github.com/hydephp/docs/blob/master
9292
| Do not specify the filename or extension, Hyde will do that for you.
93-
| Setting the setting to null will disable the feature.
93+
| Setting this to null will disable the feature.
9494
|
9595
*/
9696

config/hyde.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
| Site Output Directory
139139
|--------------------------------------------------------------------------
140140
|
141-
| This setting specifies the output path for your site, useful to for
141+
| This setting specifies the output path for your site, useful to, for
142142
| example, store the site in the docs/ directory for GitHub Pages.
143143
| The path is relative to the root of your project.
144144
|
@@ -308,7 +308,7 @@
308308
|
309309
| Here you can customize the footer Markdown text for your site.
310310
|
311-
| If you don't want to write Markdown here, you use a Markdown include.
311+
| If you don't want to write Markdown here, you can use a Markdown include.
312312
| You can also customize the Blade view if you want a more complex footer.
313313
| You can disable it completely by changing the setting to `false`.
314314
|
@@ -428,7 +428,7 @@
428428
|
429429
| Here you can configure settings for the built-in realtime compiler server.
430430
| The server also includes a magic dashboard feature that supercharges
431-
| your local development! This feature can alo be customised here.
431+
| your local development! This feature can also be customised here.
432432
|
433433
*/
434434

config/markdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
|
7272
| This feature allows you to use basic Laravel Blade in Markdown files.
7373
|
74-
| It's disabled by default since can be a security risk as it allows
74+
| It's disabled by default since it can be a security risk as it allows
7575
| arbitrary PHP to run. But if your Markdown is trusted, try it out!
7676
|
7777
| To see the syntax and usage, see the documentation:

docs/architecture-concepts/automatic-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Automatic Routing
1+
# Automatic Routing
22

33
>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.
44
@@ -57,7 +57,7 @@ But where it really shines is when you supply a route. This will then resolve th
5757
<x-link :href="Routes::get('index')">Home</x-link>
5858
```
5959

60-
You can of course, also supply extra attributes like classes:
60+
You can also supply extra attributes like classes:
6161

6262
```blade
6363
<x-link :href="Routes::get('index')" class="btn btn-primary">Home</x-link>

docs/creating-content/blog-posts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ image: image.jpg
205205

206206
#### Full URL
207207

208-
Full URL starting with `http(s)://`) or `//` (protocol-relative).
208+
Full URL starting with `http(s)://` or `//` (protocol-relative).
209209
The image source will be used as-is, and no additional processing is done.
210210

211211
```yaml

docs/creating-content/documentation-pages.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Hyde compiles your Markdown content into beautiful static HTML pages using a Tai
1414

1515
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.
1616

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).
1818

1919
### Best Practices and Hyde Expectations
2020

@@ -241,14 +241,14 @@ To quickly arrange the order of items in the sidebar, you can reorder the page i
241241
]
242242
```
243243

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.
245245

246246
### Setting Sidebar Group Labels
247247

248248
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.
249249

250250
```php
251-
// Filepath: config/docs.php
251+
// filepath: config/docs.php
252252
253253
'sidebar' => [
254254
'labels' => [
@@ -266,7 +266,7 @@ By default, each group will be assigned the lowest priority found inside the gro
266266
Just use the sidebar group key as instead of the page identifier/route key:
267267

268268
```php
269-
// Filepath: config/docs.php
269+
// filepath: config/docs.php
270270
'sidebar' => [
271271
'order' => [
272272
'readme',
@@ -347,7 +347,7 @@ If this setting is set to true, Hyde will output all documentation pages into th
347347
If you set this to false, Hyde will match the directory structure of the source files (just like all other pages).
348348

349349
```php
350-
// Filepath: config/docs.php
350+
// filepath: config/docs.php
351351
'flattened_output_paths' => true,
352352
```
353353

@@ -422,7 +422,7 @@ The feature is automatically enabled when you specify a base URL in the Docs con
422422
Here's an example configuration from the official HydePHP.com documentation:
423423

424424
```php
425-
// Filepath: config/docs.php
425+
// filepath: config/docs.php
426426
427427
'source_file_location_base' => 'https://github.com/hydephp/docs/blob/master/',
428428
```
@@ -432,7 +432,7 @@ Here's an example configuration from the official HydePHP.com documentation:
432432
Changing the label is easy, just change the following config setting:
433433

434434
```php
435-
// Filepath: config/docs.php
435+
// filepath: config/docs.php
436436
'edit_source_link_text' => 'Edit Source on GitHub',
437437
```
438438

@@ -441,7 +441,7 @@ Changing the label is easy, just change the following config setting:
441441
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'`
442442

443443
```php
444-
// Filepath: config/docs.php
444+
// filepath: config/docs.php
445445
'edit_source_link_position' => 'header',
446446
```
447447

docs/creating-content/static-pages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ navigation:
7878
7979
- `label` is the text that will be displayed in the navigation menu
8080
- `priority` is the order in which the page will appear in the navigation menu (`order` is also supported)
81-
- `hidden` will hide the page from the navigation menu (`visible`) is also supported, but obviously invert the value)
82-
- `group` will put the page in a dropdown menu with the specified group name (`category`) is also supported)
81+
- `hidden` will hide the page from the navigation menu (`visible` is also supported, but obviously invert the value)
82+
- `group` will put the page in a dropdown menu with the specified group name (`category` is also supported)
8383

8484
## Creating Blade Pages
8585

docs/digging-deeper/advanced-customization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mainly example driven, as it is assumed you have somewhat of an understanding of
1919

2020
Each page type is represented by a page model class. Each of those classes have static properties that store the source and output directories.
2121
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.
2323

2424
**This means that there are two options to change the source and output directories:**
2525
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
110110
### Route key impact
111111

112112
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.
115115
You can learn more about this in the [route key documentation](core-concepts#paths-identifiers-and-route-keys).
116116

117117
## Custom Source Root

docs/digging-deeper/advanced-markdown.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ These are also created by using a custom Hyde feature that turns code comments i
9595
Simply add a code comment with the path in the **first line** of a fenced code block like so:
9696

9797
````markdown
98-
// Filepath: _docs/advanced-markdown.md
98+
// filepath: _docs/advanced-markdown.md
9999
```php
100-
‎// Filepath: hello-world.php
100+
‎// filepath: hello-world.php
101101

102102
echo 'Hello World!';
103103
```
@@ -106,7 +106,7 @@ echo 'Hello World!';
106106
Which becomes:
107107

108108
```php
109-
// Filepath: hello-world.php
109+
// filepath: hello-world.php
110110

111111
echo 'Hello World!';
112112
```
@@ -131,9 +131,9 @@ If you have enabled HTML in Markdown by setting the `allow_html` option to true
131131
anything within the path label will be rendered as HTML. This means you can add links, or even images to the label.
132132

133133
````markdown
134-
// Filepath: <a href="https://github.com/hydephp/develop/blob/master/docs/digging-deeper/advanced-markdown.md" rel="nofollow noopener" target="_blank">View file on Github</a>
134+
// filepath: <a href="https://github.com/hydephp/develop/blob/master/docs/digging-deeper/advanced-markdown.md" rel="nofollow noopener" target="_blank">View file on Github</a>
135135
```markdown
136-
‎// Filepath: <a href="https://github.com">View file on Github</a>
136+
‎// filepath: <a href="https://github.com">View file on Github</a>
137137
```
138138
````
139139

docs/digging-deeper/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ arbitrary PHP code specified in Markdown to be executed. It's easy to enable how
438438
'enable_blade' => true,
439439
```
440440

441-
See the [Blade in Markdown](advanced-markdown#blade-support) documentation for more information on how to use this feature.
441+
See the [Blade in Markdown](advanced-markdown#using-blade-in-markdown) documentation for more information on how to use this feature.
442442

443443
## YAML Configuration
444444

0 commit comments

Comments
 (0)