Skip to content

Commit dc80beb

Browse files
Merge pull request #97 from TheDragonCode/1.x
Updated documentation for consistency and improved phrasing across topics
2 parents 8ea8f44 + 7f17c1e commit dc80beb

10 files changed

+52
-54
lines changed

docs/topics/advanced-usage.topic

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<chapter title="Root element" id="root_element">
3030
<tip>
3131
<p>
32-
By defending, the name of the root element is formed from the basic name of the feed class.
32+
By default, the name of the root element is derived from the base name of the feed class.
3333
</p>
3434

3535
<p>
@@ -44,7 +44,7 @@
4444
<code-block lang="php" src="advanced-element-root.php" include-lines="5-" />
4545

4646
<p>
47-
To disable the addition of the main element, specify its name as empty - <code>null</code> or
47+
To disable the addition of the root element, specify its name as empty <code>null</code> or
4848
<code>""</code>.
4949
</p>
5050

@@ -59,7 +59,7 @@
5959
<p>
6060
To add information to the beginning of the root element (if present) or without it,
6161
override the
62-
<code>info</code> method in the feed class and call the creation of an object that extend the
62+
<code>info</code> method in the feed class and create an object that extends the
6363
<code>DragonCode\LaravelFeed\Feeds\Info\FeedInfo</code> class:
6464
</p>
6565

@@ -73,7 +73,7 @@
7373
<code-block lang="xml" src="advanced-element-info.xml" />
7474

7575
<p>
76-
If it is necessary to change the procedure for the output of the root element relative to the
76+
If you need to change the order in which the root element is output relative to the
7777
information block, set the <code>beforeInfo</code> parameter in the <code>root</code> method:
7878
</p>
7979

@@ -135,7 +135,7 @@
135135
<link-summary>Indicates the applicable value "as it is"</link-summary>
136136

137137
<tip>
138-
Note, that the value of the <code>@value</code> field must be a string.
138+
Note that the value of the <code>@value</code> field must be a string.
139139
</tip>
140140

141141
<p>
@@ -152,7 +152,7 @@
152152
</chapter>
153153

154154
<chapter title="@cdata" id="_cdata">
155-
<link-summary>Allows the use of XML marking without transformation</link-summary>
155+
<link-summary>Allows the use of XML markup without transformation</link-summary>
156156

157157
<tip>
158158
It is also possible to wrap the value of a node into a CDATA section.
@@ -173,7 +173,7 @@
173173
</chapter>
174174

175175
<chapter title="@mixed" id="_mixed">
176-
<link-summary>Allows you to use XML marking directly into the structure of the document</link-summary>
176+
<link-summary>Allows you to use XML markup directly within the structure of the document</link-summary>
177177

178178
<p>
179179
To insert XML fragments “as is”, use the <code>@mixed</code> directive:
@@ -211,7 +211,7 @@
211211

212212
<chapter title="Location &amp; filename" id="location_and_filename">
213213
<p>
214-
By default, feeds will be stored in the <code>public</code> storage,
214+
By default, feeds are stored in <code>public</code> storage,
215215
and the file name will be automatically generated from the feed class name after
216216
<code>App\Feeds\</code> in <code>kebab-case</code> format.
217217
For example:
@@ -235,7 +235,7 @@
235235

236236
<chapter title="Chunk size" id="chunk_size">
237237
<p>
238-
Database queries use chunks, which are <code>1000</code> bytes by default.
238+
Database queries use chunks, which are <code>1000</code> items by default.
239239
You can change this by overriding the <code>chunkSize</code> method:
240240
</p>
241241

docs/topics/contributions.topic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<a href="https://www.php-fig.org/psr/psr-4/">PSR-4</a> autoloading standard.
3434
</p>
3535
<p>
36-
To apply the formatting of the code style, follow the console command:
36+
To apply code style formatting, run the following console command:
3737
</p>
3838
<code-block lang="bash">
3939
composer style
@@ -52,7 +52,7 @@
5252
</p>
5353

5454
<list>
55-
<li>Participants will be tolerant of opposing views.</li>
55+
<li>Participants should be tolerant of opposing views.</li>
5656
<li>Participants must ensure that their language and actions are free of personal attacks and disparaging
5757
personal remarks.
5858
</li>

docs/topics/create-feeds.topic

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
77
title="Create feeds" id="create-feeds" help-id="make-feeds;create-feeds;feeds">
88

9-
<link-summary>Instructions for creating and filling feed, feed items, and feed info classes</link-summary>
10-
<card-summary>Instructions for creating and filling feed, feed items, and feed info classes</card-summary>
11-
<web-summary>Instructions for creating and filling feed, feed items, and feed info classes</web-summary>
9+
<link-summary>Instructions for creating and populating the feed, feed item, and feed info classes</link-summary>
10+
<card-summary>Instructions for creating and populating the feed, feed item, and feed info classes</card-summary>
11+
<web-summary>Instructions for creating and populating the feed, feed item, and feed info classes</web-summary>
1212

1313
<show-structure depth="3" />
1414

@@ -19,7 +19,7 @@
1919
<a href="https://www.jetbrains.com/phpstorm/">PhpStorm</a>.
2020
</p>
2121

22-
<img src="laravel-idea.png" dark-src="laravel-idea_dark.png" alt="laravel idea" />
22+
<img src="laravel-idea.png" dark-src="laravel-idea_dark.png" alt="Laravel Idea" />
2323
</note>
2424

2525
<p>
@@ -35,65 +35,64 @@
3535
</p>
3636

3737
<p>
38-
Also, this console command can create classes of the element and information along with the feed class.
39-
To do this, use <code>--item</code> and <code>--info</code> parameters.
38+
This console command can also create the item and info classes along with the feed class.
39+
To do this, use the <code>--item</code> and <code>--info</code> options.
4040
</p>
4141

4242
<code-block lang="bash">
43-
# Create a feed class and information class
43+
# Create a feed class and info class
4444
%command-make% --info
4545

4646
# Create a feed class and item class
4747
%command-make% --item
4848

49-
# Create a feed class, item class and information class
49+
# Create a feed class, item class, and info class
5050
%command-make% --item --info
5151
</code-block>
5252

5353
<p>
5454
Shortcuts are also available:
5555
</p>
5656

57-
<code-block lang="bash">
57+
<code-block lang="bash">
5858
# Create a feed class and item class
5959
%command-make% -%command-shortcut-item%
6060

6161
# Create a feed class and info class
6262
%command-make% -%command-shortcut-info%
6363

64-
# Create a feed class, item class and information class
64+
# Create a feed class, item class, and info class
6565
%command-make% -%command-shortcut-info%%command-shortcut-item%
6666
</code-block>
6767

6868
<note>
6969
<p>
70-
When creating a feed, an operation/migration will also be created to add it to the database.
70+
When creating a feed, an operation or a migration will also be created to add it to the database.
7171
</p>
7272

7373
<p>
74-
If the project uses the
74+
If the project uses
7575
<a href="https://deploy-operations.dragon-code.pro">
7676
<format style="bold">Laravel Deploy Operations</format>
77-
</a>
78-
, then an operation class will be created, otherwise a migration class will be created.
77+
</a>, then an operation class will be created; otherwise, a migration class will be created.
7978
</p>
8079

8180
<p>
82-
This is necessary to add and manage information about feeds in the database.
81+
This is required to add and manage feed information in the database.
8382
</p>
8483
</note>
8584

86-
<chapter title="Filling feeds" id="fill_feeds">
85+
<chapter title="Populating feeds" id="fill_feeds">
8786
<chapter title="Feed" id="feed">
8887
<p>
89-
Fill in the main feed class. For example:
88+
Populate the main feed class. For example:
9089
</p>
9190

9291
<code-block lang="php" src="create-feeds-feed.php" include-lines="5-" />
9392

94-
<chapter title="Feed Item" id="feed_item">
93+
<chapter title="Feed item" id="feed_item">
9594
<p>
96-
Fill in the feed item class. For example:
95+
Populate the feed item class. For example:
9796
</p>
9897

9998
<code-block lang="php" src="generation-feed-item.php" include-lines="5-" />

docs/topics/generation.topic

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</code-block>
2222

2323
<p>
24-
As a result, all active feeds (<code>is_active = true</code>) will be launched from the
24+
As a result, all active feeds (<code>is_active = true</code>) will be executed from the
2525
<code>feeds</code> table (or the one you specified in the <code>%config-filename%</code> file).
2626
</p>
2727

@@ -33,7 +33,7 @@
3333
</p>
3434

3535
<p>
36-
However, instead of being launched for execution, such feeds will be marked with the
36+
However, instead of being executed, such feeds will be marked with the
3737
<code>SKIP</code> status.
3838
</p>
3939
</tip>
@@ -68,7 +68,7 @@
6868
<code-block lang="php" src="schedule-setup.php" include-lines="5-" />
6969

7070
<p>
71-
This will enable you to register calls to all active feeds according to the launch schedule you specified in the
71+
This will enable you to register calls to all active feeds according to the schedule you specified in the
7272
<code>expression</code> column of the database.
7373
</p>
7474
</chapter>

docs/topics/installation.topic

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535

3636
<warning>
3737
<p>
38-
<format style="bold">Before running migrations</format>
39-
, check the database connection settings in the
38+
<format style="bold">Before running migrations</format>, check the database connection settings in the
4039
<code>%config-filename%</code> file.
4140
</p>
4241
</warning>

docs/topics/introduction.topic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<title>📃 %instance%</title>
1111

1212
<description>
13-
Easy and fast way of exporting a large amount of data to feeds for marketplaces and other consumers.
13+
An easy and fast way to export large amounts of data to feeds for marketplaces and other consumers.
1414
</description>
1515

1616
<spotlight>

docs/topics/receipt-instagram.topic

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212

1313
<show-structure depth="3" />
1414

15-
<chapter title="Create files" id="create_files">
15+
<chapter title="Create the files" id="create_files">
1616
<code-block lang="bash">
1717
%command-make-simple% Instagram -%command-shortcut-item%
1818
</code-block>
1919
</chapter>
2020

21-
<chapter title="Filling the feed" id="filling_the_feed">
21+
<chapter title="Populate the feed" id="filling_the_feed">
2222
<code-block lang="php" src="receipt-instagram-feed.php" />
2323
</chapter>
2424

25-
<chapter title="Filling the feed item" id="filling_the_feed_item">
25+
<chapter title="Populate the feed item" id="filling_the_feed_item">
2626
<code-block lang="php" src="receipt-instagram-feed-item.php" />
2727
</chapter>
2828

docs/topics/receipt-sitemap.topic

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
title="Sitemap" id="receipt-sitemap" help-id="sitemap">
88

99
<link-summary>How to create a product sitemap feed</link-summary>
10-
<card-summary>Step-by-step guide for creating a product sitemap</card-summary>
10+
<card-summary>Step-by-step guide to creating a product sitemap</card-summary>
1111
<web-summary>Step-by-step guide to creating a product sitemap feed</web-summary>
1212

1313
<show-structure depth="3" />
@@ -16,11 +16,11 @@
1616
This recipe walks you through creating a product sitemap feed using Laravel Feeds. You will:
1717
- Generate the necessary classes
1818
- Implement the feed logic
19-
- Expose the files via the filesystem
20-
- Optionally reference the generated sitemap from a root sitemap.xml
19+
- Expose the files via the file system
20+
- Optionally reference the generated sitemap from a root sitemap.xml file
2121
</p>
2222

23-
<chapter title="Create files" id="create_files">
23+
<chapter title="Create the files" id="create_files">
2424
<p>
2525
Generate the feed and its item class using the following console command:
2626
</p>
@@ -29,16 +29,16 @@
2929
</code-block>
3030
</chapter>
3131

32-
<chapter title="Fill the feed" id="filling_the_feed">
32+
<chapter title="Populate the feed" id="filling_the_feed">
3333
<p>
3434
Implement the feed root element, attributes, query builder, output filename, and item mapping as shown below:
3535
</p>
3636
<code-block lang="php" src="receipt-sitemap-feed.php" />
3737
</chapter>
3838

39-
<chapter title="Fill the feed item" id="filling_the_feed_item">
39+
<chapter title="Populate the feed item" id="filling_the_feed_item">
4040
<p>
41-
Define the XML element name and map your model properties to the corresponding sitemap tags:
41+
Define the XML element name and map your model’s properties to the corresponding sitemap tags:
4242
</p>
4343
<code-block lang="php" src="receipt-sitemap-feed-item.php" />
4444
</chapter>
@@ -49,14 +49,14 @@
4949

5050
<chapter title="Links" id="links">
5151
<p>
52-
Add a filesystem disk that points to the directory containing your sitemaps in
52+
Add a file system disk that points to the directory containing your sitemaps in
5353
the <a href="https://github.com/laravel/laravel/blob/12.x/config/filesystems.php#L76-L78">config/filesystems.php</a> configuration file:
5454
</p>
5555

5656
<code-block lang="php" src="receipt-sitemap-links.php" include-lines="5-" />
5757

5858
<p>
59-
Then create the public symlink so the files are accessible in the browser:
59+
Then create the public symlink so the files are accessible in a browser:
6060
</p>
6161

6262
<code-block lang="bash">
@@ -77,7 +77,7 @@
7777

7878
<chapter title="Result" id="result">
7979
<p>
80-
A generated sitemap.xml for your products will look like this:
80+
The generated sitemap.xml for your products will look like this:
8181
</p>
8282
<code-block lang="xml" src="receipt-sitemap-feed.xml" />
8383
</chapter>

docs/topics/receipt-yandex.topic

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212

1313
<show-structure depth="3" />
1414

15-
<chapter title="Create files" id="create_files">
15+
<chapter title="Create the files" id="create_files">
1616
<code-block lang="bash">
1717
%command-make-simple% Yandex -%command-shortcut-info%%command-shortcut-item%
1818
</code-block>
1919
</chapter>
2020

21-
<chapter title="Filling the feed" id="filling_the_feed">
21+
<chapter title="Populate the feed" id="filling_the_feed">
2222
<code-block lang="php" src="receipt-yandex-feed.php" />
2323
</chapter>
2424

25-
<chapter title="Filling the feed info" id="filling_the_feed_info">
25+
<chapter title="Populate the feed info" id="filling_the_feed_info">
2626
<code-block lang="php" src="receipt-yandex-feed-info.php" />
2727
</chapter>
2828

29-
<chapter title="Filling the feed item" id="filling_the_feed_item">
29+
<chapter title="Populate the feed item" id="filling_the_feed_item">
3030
<code-block lang="php" src="receipt-yandex-feed-item.php" />
3131
</chapter>
3232

docs/topics/snippet-generate.topic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
is-library="true"
77
id="snippet-generate"
8-
title="Generate Command">
8+
title="Generate command">
99

1010
<snippet id="feed_generate">
1111
<p>

0 commit comments

Comments
 (0)